Questions tagged [libraries]

A library is a collection of functionality that programs can use. They can be dynamically loaded by a program, or they may be compiled into the program.

Filter by
Sorted by
Tagged with
0
votes
0answers
41 views

Crash of a 32-bit program in Debian 10 64-bit

Introduction I'm using Debian 10 - 64 bit and I'm trying to start a 32bit program but it keeps crashing due to incomprehensible reasons (for me). I searched on internet for almost a week! But I ...
23
votes
2answers
4k views

Why doesn't the Linux kernel have optimized functions like glibc does (e.g., memchr, strchr)?

When I try to implement the C string library myself, I found that glibc and the Linux kernel have a different way to implement some functions. For instance, glibc memchr and glibc strchr use some ...
1
vote
2answers
56 views

Compiling GCC against a custom built GLIBC

I was trying to compile GCC 9.2 against a custom built GLIBC 2.30. I have installed GLIBC in a non-standard location. Then I have followed these steps to compile GCC: sfinix@multivac:~$ GLIBCDIR=/...
1
vote
1answer
34 views

32-bit version of udev and usb library in ubuntu

I had a project which uses libudev and libusb libraries. Operating System: Ubuntu 18.04 64-bit Initially the application was 64-bit, so there was no issue. Now, there is a new requirement of ...
1
vote
0answers
23 views

Are dependencies suffixed with -dev on linux only required during compilation, or are they required to run the program too?

One of the libraries that I am using to build a program on Linux (Ubuntu) says it requires the following dependencies to be installed: libgl1-mesa-dev libxi-dev libxcursor-dev libxrandr-dev ...
1
vote
1answer
143 views

What is libstdc++.so.6 and GLIBCXX_3.4.20?

I am looking for some simple answers in order to understand some of these concepts. I am trying to install a R library which is failing with the error: /lib64/libstdc++.so.6: version ``GLIBCXX_3.4.20'...
0
votes
0answers
85 views

What does the error “undefined reference to 'dlopen'” mean?

When I want to compile my c-file I get these messages: undefined reference to 'dlopen' undefined reference to 'dlsym' In some other posts about this topic the solution was to add -ldl to the linker ...
4
votes
1answer
412 views

Do all c programs need to load a library?

With a program like int main() { return 0; } and you statically link, will some library on your system be linked into the final binary. and you dynamically link, will a library be loaded when it'...
0
votes
0answers
13 views

Problem Finding CUDA Library in Make

I'm trying to use make to install a package in my LAMMPS build. When I run the command make -lib-gpu args="-b" I get the result: /usr/bin/ld: cannot find -lcuda And makefails. When I run ld -lcuda --...
0
votes
1answer
23 views

How to read library documentation downloaded as a package (package-doc)

I am coding Qt GUI application for cryptography and want to use OpenSSL library calls for my application logic. Thats why i downloaded libssl-dev and libssl-doc packages via Synaptic package manager (...
1
vote
0answers
20 views

How to link to a numbered shared library?

This is the command I am running arm-linux-gnueabihf-gcc -Wall -Wl,--verbose -mthumb -mthumb-interwork -D_REENTRANT -oTestRun11 ./main.c -ldl -lpthread -lRTU_Module Which gives in the printout ...
0
votes
1answer
148 views

libcrypto version not found, despite version being on my system

I'm trying to run some software, but I am getting this error message: ImportError: /usr/lib/libcrypto.so.10: version `libcrypto.so.10' not found (required by /home/jessica/project/lib/libgdal.so.20) ...
0
votes
0answers
85 views

How many memory segments?

I'm having trouble interpreting the output of a pmap command. I want to see how many memory segments are added to the process when one of the libraries (libupper/librot13) implementing a transform is ...
2
votes
1answer
8 views

hide old libraries from linux system without root access

I have access to an old cluster for computations. The Operating system of the cluster is very old and outdated. Some of my codes need new libraries like glibc-2.14 or higher to run. I found junest ...
0
votes
0answers
13 views

Trace library on Fedora

I cannot get useful information from ltrace on Fedora 30, for example: ltrace -f hostname my.host.name [pid 32164] +++ exited (status 0) +++ However it works on Debian 9: # ltrace hostname ...
1
vote
1answer
51 views

How do library files (*.so) resolve shared dependencies?

If I invoke the following command: ldd mylib.so this then yields something along the lines of: libopencv_features2d.so.4.1 => /usr/local/lib/libopencv_features2d.so.4.1 (0x00007f83dee6b000) If ...
0
votes
0answers
47 views

SmartCard Driver problems for Mac OS Mojave 10.14.6

I have tried a few different devices to authenticate with a CompanyCard (id Bridge), last attempt I bought the ACR39U-N1 PocketMate II Smart Card Reader. Information: Mac OS Mojave 10.14.6 Drivers ...
6
votes
1answer
190 views

Determining the regular expression library supplied by the system

I was attempting to use the following regexp in less yesterday: ^\+1[[:space:]]*$, which worked for me in grep. This didn't work in less, so I checked the manpage to see what it does support, and ...
0
votes
0answers
22 views

File extensions for intermediate files needed for static / shared libraries

I have a library which until now was just a static library. The file naming scheme that I used was the following: foo.c -> foo.s -> foo.o bar.c -> bar.s -> bar.o }-> libfoobar.a Now ...
1
vote
1answer
94 views

How I can get version from library for example libSDL2-image.so.0

I am trying to find a way to determine which version of SDL2-Image is installed on my system, but I have not found anything useful for a bash script. I tried with the following to find just the ...
1
vote
1answer
76 views

Where are static libraries used by gcc or g++ stored, and how are they identified?

I've been trying to determine if my Ubuntu (linux) system has -static libraries. When would they be located, and what suffix would identify them?
0
votes
0answers
45 views

CentOS 7: Why am I still getting this “built with.. but.. running with” error?

Presently I am getting the error: Application built with libpng-1.6.16 but running with 1.5.13 Upon getting this error I tried reinstalling* libpng1.6.16 from source per this guide, which seems to ...
1
vote
0answers
55 views

Difficulty with configuring paths before compiling

I'm running MacOS Mojave 10.14.2 with Homebrew and MacPorts installed; I'm attempting to install the dsniff suite via the command line, and I installed Xcode's command line tools for this purpose--I ...
3
votes
1answer
262 views

Does the kernel itself depend on the standard C libraries

I'm looking deeper into how Linux actually works, especially on embedded devices, with all the different components required to make a fully functional system. I understand that a standard C library ...
1
vote
0answers
141 views

Wireless Mouse doesn't work after upgrading packages - Debian

My wireless optical mouse has stopped working after upgrades performed with # apt-get upgrade. This is the output of # tail -f /var/log/syslog May 23 10:30:00 GaboPC /usr/lib/gdm3/gdm-x-session[596]...
0
votes
1answer
256 views

NixOS: Modifying config files on a buildFHSUserEnv environment

On NixOS, I'm using a FHS environment to supply libraries (unixODBC and sqlite-odbc) to libreoffice. { pkgs ? import <nixpkgs> {} }: ( pkgs.buildFHSUserEnv { name = "odbc-sqlite-libreoffice";...
0
votes
1answer
63 views

Installing gtkmm from source

I know that gtkmm can be installed using package manager, but here I am keen to install it from source. It requires me to install the Dependencies: libsigc++ 2.0 GTK+ 3.0 glibmm cairomm pangomm ...
0
votes
0answers
27 views

zlib error when compiling

I am trying to install pythia package coming with POWHEG-BOX on Fedora 27. When running make main-PYTHIA-lhef it writes: pwhg_io_interface.f:214: undefined reference to `gzputc' and so on. It ...
3
votes
1answer
344 views

Where is libsystemd.so located on ARM devices?

I have an ARM Tinkerboard running Debian 9.8 (Stretch). Systemd version is 232. I'm working on a program that can be run from userland or as a daemon. If it is run as a daemon, then dlopen and dlsym ...
17
votes
1answer
2k views

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

I have a binary executable named "alpha" that requires a linked library (libz.so.1.2.7) which is placed at /home/username/myproduct/lib/libz.so.1.2.7 I export the same to my terminal instance before ...
0
votes
1answer
98 views

Zypper completely not working

I've experienced a sudden error when trying to run zypper by any form: zypper: symbol lookup error: /usr/lib64/libzypp.so.908: undefined symbol: gzdopen Not very sure how to fix that, since the ...
0
votes
0answers
43 views

Qgis and qtdesigner4: /lib64/libQtWebKit.so.4: undefined symbol

I am trying to launch two programs but there is a problem with /lib64/libQtWebKit.so.4 qgis: qgis: symbol lookup error: /lib64/libQtWebKit.so.4: undefined symbol: ...
1
vote
0answers
23 views

Managing libraries

After a new installation of Debian, I'm looking for a way to separate files created from new packages from my main system. I want to do this to avoid bloating the size of my drive with unnecessary ...
1
vote
0answers
152 views

Getting relocation error on Ubuntu 18.04 for wkhtmltopdf tool

My project need a tool called wkhtmltopdf on Ubuntu. I have installed it successfully. It's displaying proper version with command wkhtmltopdf --version. When java code tries to access this tool, ...
0
votes
1answer
34 views

Libness3-dev what is this and the dev at the end

So I just installed Linux mint 18 yes 18 not 19 and ran sudo apt-get update also ran sudo apt-get update Firefox and I run these commands I got errwith the repository’s then running the second command ...
1
vote
1answer
40 views

Is it Conventional to put libraries and include into standard directories like /usr/lib/ after installing a package with Make

After installing mesa-12.0.0, I have the library and header files in ~/Downloads/mesa-12.0.0/lib ~/Downloads/mesa-12.0.0/include Is it better to simply add the path to LD_LIBRARY_PATH or should ...
2
votes
0answers
104 views

cannot find libarary error

I am trying to install a software "W" which requires some non standard packages like "XYZ". I am installing XYZ as instructed in the related site using the following commands ./configure -C make ...
2
votes
0answers
48 views

Upgrading Python3 Without Breaking Access to lib Folder

Upgrading Python3 package is always a big pain for me. Every time I upgrade from one version, e.g. 3.7.0, to another, e.g. 3.7.1, my python script loses access to my /usr/local/lib/python3.7/site-...
0
votes
1answer
64 views

Tricky issue with stata and libpng

I use stata 14 in Linux mint 19.3. For some reason stata has a problem with the libpng included in Linux mint 19. To fix that, I followed a fix that installs an older version of libpng (see here) to ...
3
votes
1answer
141 views

List all 32 Bit packages on a Gentoo System

How can I get a list of all installed 32 Bit packages on a Gentoo Linux system?
0
votes
1answer
195 views

Rebuild from src.rpm using new version

This is a follow up to my previous question regarding Building QuantLib on Amazon Linux. I followed the instructions in the answer posted by MLu: Download the source RPM (QuantLib-1.4-7.el7.src.rpm) ...
1
vote
1answer
127 views

Building QuantLib on Amazon Linux

I am trying to get QuantLib version 1.13 running on Amazon Linux. I found some .rpm files at https://pkgs.org/download/QuantLib, although there is an up to date .rpm for Fedora, there isn't one for ...
0
votes
1answer
429 views

The same curl binary shows different version of openssl on 2 different servers

so I have built curl (possibly incorrectly) on debian 9 x64, and after curl -V command I can see that it uses the new version: OpenSSL/1.1.0f After that, I copied the very same library into ...
0
votes
1answer
83 views

Weird problem with CUDA installation

I am experiencing a rather unusual problem with my CUDA installation on Linux Mint 18.3. After a clean reboot, running deviceQuery as a standard user: optirun ./deviceQuery returns FAIL, but if I do: ...
0
votes
1answer
2k views

How to run programs with ld-linux.so?

The dynamic linker can be run either indirectly by running some dynamically linked program or shared object (in which case no command-line options to the dynamic linker can be passed and, in the ELF ...
5
votes
3answers
11k views

Set LD_LIBRARY_PATH correctly

I am using Docker with image of Ubuntu 16.04. I am using this docker to run: Import C++ classes in python with the help of boost.python Import matlab's python package in python with the help Matlab ...
1
vote
1answer
262 views

Undefined symbols : how do I figure dependency resolution?

I am trying to figure out how to handle the lack of dependency resolution in Slackware. I installed Gnumeric from slackware.pkgs.org, but it won't run with a number of ** (gnumeric:10645): ...
4
votes
3answers
2k views

Centos 7, I thought “yum install ___” was supposed to get all the dependencies, too?

I want to install Trillian onto my CentOS 7 box. I went to www.trillian.im/get/linux/6.1/linux.html and downloaded the rpm package trillian-6.1.0.5-1.fc25.x86_64.rpm. It was my understanding that ...
1
vote
0answers
970 views

Cannot install libgstreamer-0.10 [duplicate]

I' using Debian 9 Cannot install libgstreamer-0.10.so I tried sudo apt-get install libgstreamer0.10-0 Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
0answers
253 views

install vips library in openbsd

On OpenBSD, I need to install sharp, which require the vips library. When I use a prebaked vips tarball, <stephane@bandersnatch.22decembre.eu:/usr/local/src/libvips/vips-8.7.0> ./configure ...

1 2 3 4 5 10