2022 Developer Survey is open! Take survey.

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
0 answers
26 views

errno vs errors returned by library functions [migrated]

For errno, there are a bunch of library functions, like strerror(), etc. to convert or print the error code. But what about the error codes returned by library functions? E.g. write() will return ...
user avatar
  • 411
0 votes
0 answers
14 views

./libcogconfig_jni.so: error while loading shared libraries: ./libz.so.1: file too short

I am working on a CentOS 7 workstation. I installed Cognos. However, the following error is reported: [root@ecs-30 bin64]# ldd libcogconfig_jni.so ./libcogconfig_jni.so: error while loading shared ...
user avatar
0 votes
1 answer
94 views

Specify which libstdc++ to use

I want to make use of a more recent GCC version. Therefore, I compiled GCC 10 and installed it into a non-standard directory /software/gcc10/. So far so good. However, I am faced with problems when I ...
user avatar
  • 605
0 votes
1 answer
333 views

How do you reload .so files (dynamic libraries) in Linux?

I don't remember the command anymore, but in basically every Linux distro there's a command for reloading .so files and other libraries. How's it called? It's something similar to ld I think. I tried ...
user avatar
0 votes
0 answers
19 views

Why I can execute files without execution permission if I use ld-2.31.so? [duplicate]

I am a bit shocked about this discover. If I don't have execution permission on a file, say, foo... I can still execute it with: /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ./foo (ld-linux-x86-64.so.2 ...
user avatar
  • 211
0 votes
1 answer
56 views

SDL Error while building libgraph-1.0.2 on Debian 11

When I run make I get this output That says that it cannot link SDL: /usr/bin/ld: .libs/text.o:/home/mint/libgraph-1.0.2/grtext.h:77: multiple definition of `InternalFont'; .libs/libgraph.o:/home/mint/...
user avatar
  • 1
0 votes
1 answer
62 views

/usr/lib vs /etc/ld.so.conf.d

TL;DR Why is it better to place a symlink to a shared library at /etc/lib(64)/ or why is it better to create a *.conf file in /etc/ld.so.conf.d/ .conf file Assuming i have my custom binary at /opt/...
user avatar
  • 5
2 votes
2 answers
4k views

opt/lampp/bin/httpd: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

I use Arch Linux (x86_64) I updated my repositories today with the following command Sudo Packman -Syu But the xampp program no longer runs Stopping all servers... Restarting all servers... Starting ...
user avatar
0 votes
0 answers
433 views

Undefined symbol after updating thc-hydra

I was using hydra without any issues until I decided to update it. Right now when I'm trying to run hydra I'm getting this error: hydra: symbol lookup error: /lib/x86_64-linux-gnu/libmongoc-1.0.so.0: ...
user avatar
  • 1
1 vote
0 answers
105 views

Assertion 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at ../src/basic/time-util.c:55, function now(). Aborting

As per this naswer I have tried to fix a failed libc6 and libcrypto update. I created a link where it seemed appropriate by mounting my SD card onto /media on another PC changed directory to /media/...
user avatar
  • 237
1 vote
1 answer
504 views

After libc6 upgrade `sudo: account validation failure, is your account locked?` - What can I do before I switch off and repair from live CD

I have tried to install some packages (apache mariaDB) and something went wrong from my sudo apt install apache2 mariadb-server apt-transport-https At the end there was an error Checking init scripts.....
user avatar
  • 237
1 vote
1 answer
659 views

Why is libjpeg.so.8 missing from Debian?

Debian 10, but same issue applies to Debian 11. Trying to run a certain binary (gaming), I get complaints about libjpeg.so.8 missing. apt-file search libjpeg.so.8 gives no results. However I can see ...
user avatar
  • 321
0 votes
0 answers
32 views

Error while compiling GMT(generic mapping tool on centos7) with GDAL

I am having the following error while compiling GMT with GDAL and I am unable to figure out the root cause of it. GDAL has been compiled from the source (following this link). Dependencies too has ...
user avatar
0 votes
0 answers
104 views

Undefined reference to libraries while building

I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm Here'...
user avatar
0 votes
0 answers
63 views

OpenSSL Library issues

Any tasks I attempt to perform on my Ubuntu Server 18.04 machine which involve SSL negotiation fail with various errors. For example: # speedtest-cli Retrieving speedtest.net configuration... Cannot ...
user avatar
0 votes
1 answer
92 views

Why can't autoconf find `libtcmalloc`?

I'm trying to compile a complex numerical simulation software. After running autoconf and then ./configure ... (with some other flags), I see the following in the output: checking for malloc in -...
user avatar
0 votes
0 answers
29 views

Binary who use library [duplicate]

is it possible to know from which binary a particular library is used? I would like to delete a file.so but i don't know if it's used by a program?!
user avatar
  • 1
0 votes
2 answers
28 views

linux binary must recognize and use local library for it

How do we have our own linux binary recognize and use its library/deps. in local library i.e. in /usr/local/lib as we install it itself in /usr/local/bin ?
user avatar
0 votes
0 answers
56 views

Access Input Control

I am currently trying to get into writing something like an autoclicker. I work on a openSUSE Leap with KDE environment and program in c++ or FORTRAN or python. In order to do so I need access to ...
user avatar
1 vote
0 answers
124 views

External extractor '7z' error when extract F/W image use Binwalk

Got error when tried to extract compressed F/W image use Binwalk 2.3.3: WARNING: Extractor.execute failed to run external extractor '7z e -y '%e'': 'module' object has no attribute 'DEVNULL', '7z e -y ...
user avatar
  • 437
1 vote
1 answer
157 views

"file too short" error for library in CentOS 8

I got an error in CentOS 8: eror while loading libraries: /lib64/libgpm.so.2: file too short How can we fix this? I tried to install it several times but, it gives the same error
user avatar
0 votes
1 answer
128 views

Installing library to subdirectory within /usr/local/lib?

I have a large library of my own with many components or "submodules" (similarly to how boost has many components) which I am setting up install rules for within CMake. Let's say my library ...
user avatar
0 votes
0 answers
61 views

how to compile and run on different Linux (Debian) versions

Compiled on debian 10 with gcc 8.3 : root@debian:/home/mongo# ldd /home/mongo/build/opt/mongo/db/mongod linux-vdso.so.1 (0x00007ffe9f1c0000) libcurl.so.4 => /lib/x86_64-linux-gnu/...
user avatar
0 votes
1 answer
111 views

How to determine FFTW version?

The C library FFTW ("Fastest Fourier Transform in the West") provides subroutines for calculating discrete Fourier transforms (DFTs). How do I determine what version of FFTW I have on my ...
user avatar
  • 14.3k
1 vote
1 answer
208 views

How to Resolve "error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory" on Ubuntu 20.04

I installed Swift for Ubuntu using the latest toolchain available. At the time of writing, that version is 5.4.3. I downloaded it from https://swift.org/download/#releases I installed many ...
user avatar
0 votes
0 answers
389 views

Compile error DSO missing from command line

I am trying to install TraceR, and I am getting the following error. make[1]: Leaving directory `/g/g92/bhowmik1/installTF/TraceR/tracer/elements' mpicxx -g `otf2-config --ldflags` p2p-events.o coll-...
user avatar
  • 35
0 votes
1 answer
96 views

How to find all possible locations for libraries and header files on any distro?

I found that the location of libraries and header files are very different on different distributions. For Example on Fedora you have /usr/lib64/libbfd.a while on Ubuntu you have /usr/lib/x86_64-linux-...
user avatar
  • 687
0 votes
0 answers
73 views

Emacs 27.1 freshly compiled on RHEL8 starts up, but gives "failed to open swrast" error

I just have compiled GNU Emacs on RHEL8 (version message "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2021-09-07". When I start it up (as X11 app without any ....
user avatar
  • 315
0 votes
0 answers
315 views

Installing the latest version of libpcap & libpcap-dev

In my docker container I run the following command to install the pcap lib: apt-get install -y libpcap-dev When I run apt list --installed I see this weird output: libpcap-dev/oldstable,now 1.8.1-6 ...
user avatar
0 votes
1 answer
90 views

What are Linux system libraries?

When I look around the web for information about the architecture of Linux, many articles say one component is what is known as "System Libraries" but I'm unable to find an explanation of ...
user avatar
  • 1
0 votes
1 answer
30 views

Is it safe to delete library source directory after library install?

I've downloaded some library archived source files, extracted it in some-library directory, and then installed it with standard Autotools procedure as specified by library README file: ./configure ...
user avatar
0 votes
0 answers
57 views

Which order are libraries searched for in LD_LIBRARY_PATH

If I have a library that can be found in two directories listed in LD_LIBRARY_PATH, when resolving libraries at runtime which one is used - the first one or the second one?
user avatar
  • 414
1 vote
0 answers
148 views

Error using glib2 from yum: "libgio-2.0.so.0: undefined symbol: g_free"

I am trying to build all of the dependencies for Weasyprint 52.5 for AWS Lambda. Despite being a python library, Weasyprint has a large number of OS dependencies. I'm creating a lambda layer by ...
user avatar
  • 111
0 votes
0 answers
108 views

/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found - CentOS 7

I am trying to run a binary application but it fails to run with 'GLIBCXX_3.4.26' not found error. uname-a: Linux myDesktop 5.13.8-1.el7.elrepo.x86_64 #1 SMP Tue Aug 3 12:51:23 EDT 2021 x86_64 x86_64 ...
user avatar
0 votes
0 answers
26 views

How to install GLUT for C#?

So, I'm in the process of learning new programming languages, and I want to use C# with GLUT, but everything on the web is from 5 years ago, so will you please help me? Unix or Linux: Linux ...
user avatar
  • 1
1 vote
1 answer
135 views

OpenAL error: 40964 when running an executable

I recently installed the missing libraries for an executable, but I have problems when I run it. It doesn't sound and these are the errors I get when I run it from the terminal. OpenAL error: 40964 (...
user avatar
  • 33
2 votes
1 answer
434 views

Why are the pkg-config commands in the makefile not being recognized when I run the script?

I am trying to run make for an open-source project on my Debian virtual machine but I do not understand why the commands based on pkg-config are not being recognized. One of the commands is as follows:...
user avatar
  • 247
0 votes
0 answers
223 views

How to `pyenv install` in NixOS?

The original problem: $ pyenv install Downloading Python-3.8.10.tar.xz... -> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz Installing Python-3.8.10... BUILD FAILED (NixOS 21.05....
user avatar
  • 46.9k
0 votes
1 answer
47 views

unable to start wireshark

I have a system that runs ARCO linux (Arch based). I've used it to run wireshark just fine previously. I then wanted to use an older version of wireshark, and went and got the sources for wireshark-2....
user avatar
  • 1,937
0 votes
1 answer
168 views

ldd shows libstdc++ not found but for clang its available, how is this possible?

I run Fedora 34, how is this possible (ldd shows libstdc++ not found but for clang its available): $ ldd /opt/toolchains/gcc-rl78/bin/rl78-elf-gcc linux-gate.so.1 (0xf7f7d000) ...
user avatar
0 votes
0 answers
216 views

Issue with a lot of programs: error while loading shared libraries: libsrt.so.1.4: cannot open shared object file

I am using arch and I think this happened after a btrfs root snapshot restore, but I am not sure. /etc/ld.so.conf.d/ consists of fakeroot.conf and openmpi.conf. My /usr/local/lib is empty, however: ls ...
user avatar
  • 101
0 votes
0 answers
24 views

Using the wrong libstdc++ file

I have downloaded the package luxafor-cli and I keep getting this error when trying to run it. Error: /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (...
user avatar
  • 1
0 votes
1 answer
107 views

Matlab QT libraries prevent programs from running

I have matlab on my machine with Compiler toolbox. In order for compiler code to work, it needs access to libraries. They are supposed to be saved in LD_LIBRARY_PATH So I adjusted my .bashrc to ...
user avatar
  • 441
0 votes
1 answer
77 views

How do dynamic library's code know within what process it's called?

If I understood correctly, the one dylib instance is stored in one memory segment when loaded, then it becames shared and not copied between multiple processes virtual memories that need it. But how ...
user avatar
  • 103
2 votes
1 answer
45 views

When building/running a program, how do to tell the dynamic linker where to find the appropriate libraries? [closed]

I am trying to install and run the program Dsuite. To do so, I had to install a newer version of gcc locally (as I do not have root/super user privileges.) I did this with the following commands. cd /...
user avatar
2 votes
1 answer
83 views

Why does this SO (shared object) end in .3gf?

On ubuntu trusty tahr, when I install libblas3 from the repository, it installs a file at /usr/lib/libblas.so.3gf. Under focal fossa, it behaves differently and installs under /usr/lib/x86_64-linux-...
user avatar
  • 123
0 votes
1 answer
360 views

ldconfig does not include libs in /usr/lib/x86_64-linux-gnu

I need to use swrast_dri.so for Flutter but ldconfig is not locating it nor than others libs in /usr/lib/x86_64-linux-gnu. Here my x86_64-linux-gnu.conf file: # Multiarch support /usr/local/lib/x86_64-...
user avatar
0 votes
0 answers
85 views

Utility or library to send virtual keypress, incl modifiers and function keys on Wayland

I want to make something akin to virtual keyboard, capable of sending virtual keypress of a full keyboard including the modifiers and function keys, but I have never done anything similar to this so I ...
user avatar
  • 2,192
1 vote
1 answer
558 views

"symbol lookup error: /usr/lib/x86_64-linux-gnu/libnssutil3.so undefined symbol: PR_GetEnvSecure"

I'm in puppy linux (Tahr), installed Discord and tried to run it with sudo discord First the problem was that i didn't have the libnss3.so library. Installed it. Then I needed the libnssutil3.so ...
user avatar
1 vote
1 answer
30 views

Linux collect CPU time per shared library file

Is there a way to -in the background- collect cumulative cpu time stats per shared library? Without modifying applications or libraries? Ideally a solution that'll (also) work on arm (Jetson / Pi). ...
user avatar
  • 111

1
2 3 4 5
11