Fix hardcoded dynamic linking for executable

I have an executable file called reg with the following shared library dependencies: [terminal]$ ldd ./reg linux-vdso.so.1 => (0x00007ffc40d90000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003be0c00000) /usr/dep/packages/opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_intel_lp64.so => not found When executing the binary I get the following: [terminal]$ ./reg ./reg: error while loading shared libraries: /usr/dep/packages/opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_intel_lp64.so: cannot open shared object file: No such file or directory. The … Read more

skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

I am using ubuntu 11.10 64bit, skype was working however after running sudo apt-get autoremove skype is throwing skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory How can I fix this? Answer Looks like you’re missing a library file. The program apt-file can be used to … Read more

How should I fix libraries that can’t be found because of multiarch naming?

I’ve run into this problem a few times now. I have some program that is looking for a library and can’t find it, even though it is in /usr/lib/x86_64-linux-gnu. Maybe this a flaw in the way the dependent program was written. I don’t know much about this, but I would expect the dependent program to … Read more

undefined reference to `GDALAllRegister’ [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Ask Ubuntu. Closed 8 years ago. Improve this question I have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below … Read more

Can not run evince. Says shared library is missing [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Ask Ubuntu. Closed 7 years ago. Improve this question When trying to start evince Ubuntu 12.04 responds me: % evince evince: error while loading shared libraries: libSM.so.6: cannot open shared object file: … Read more

How can I run an c/c++ program that use GNU Scientific Library (GSL)?

I’m trying to run 2 simple examples in c/c++ using the GNU Scientific Library. That are the codes: 1st: An Example Program #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf (“J0(%g) = %.18e\n”, x, y); return 0; } 2nd: Example programs for matrices #include <stdio.h> … Read more

How do I find what library was compiled with lto 4.0 instead of 4.1?

All of a sudden I’ve been getting the following error (something probably updated my gcc or something): lto1: fatal error: bytecode stream generated with LTO version 4.0 instead of the expected 4.1 However, I’m not exactly sure which library is causing it. How would I find out? Answer AttributionSource : Link , Question Author : … Read more