mavigozler
February 8th, 2007, 05:16 PM
I have looked at a number of posts that report problems with executables finding their (shared) libraries, and I too am having a problem with this.
I have this open source scientific (bioinformatics) package that I downloaded and have been trying to build. The developer has also included a 'contrib' package which he assembled because it depends on a number of other libraries (BOOST, CGAL, XERCES, NETCDF, etc.), and the developer thought to make them all buildable in one go from a single configure/Makefile.
After building the contrib package, and installing QT3 through Synaptics, I then built the main package: autoconf, configure with some exceptional options passed to it, make, and then make install.
These processes run with being stopped by errors.
The final step is to do 'make test' to test the build. But when done, it stops with errors that It cannot find the dynamic link libraries (*.so) built in the contrib package and in the main package, which are kept in lib directories off the $HOME directory.
LD_LIBRARY_PATH is set, upon the instructions of the package developer, so that the linker can find these libraries, but it doesn't. The report is "no such file or directory" when looking for the *.so.
Now when I create a symbolic link (ln -s) to the missing libraries (determined by using 'ldd' on the executable to look for dependencies), and I put the link in /usr/lib, it finds the library but cannot open it, reporting "Error 40". More detail and the output of commands is given in the link below.
This detail includes:
the setting of the LD_LIBRARY_PATH (done in .bash_profile and then a re-login done) with a report of 'echo $LD_LIBRARY_PATH
the listing ('ls -alF') of the directories containing the libraries reported as 'not found' by 'ldd' on the executables
the output of 'ldd' on the executables in questionBefore coming here, I had already gone to the developer---who ran out of ideas after 5-6 cycles of email, and then to a couple of Usenet groups. I have posted this explanation with relevant output to comp.os.linux.development.apps, so if you would be willing to go here, (http://groups.google.com.tr/group/comp.os.linux.development.apps/msg/4fd4e12a18f82f4b?&hl=en) you can get more information.
I am stumped.
I returned to using a *nix-based system after a decade (in mid 1990s, I did a lot of C programming on a AT&T SVR4) and in mid 1980s played around with Bourne shell (sh) scripts on a Ultrix system. So it could be I have forgotten how the build process works.
I have this open source scientific (bioinformatics) package that I downloaded and have been trying to build. The developer has also included a 'contrib' package which he assembled because it depends on a number of other libraries (BOOST, CGAL, XERCES, NETCDF, etc.), and the developer thought to make them all buildable in one go from a single configure/Makefile.
After building the contrib package, and installing QT3 through Synaptics, I then built the main package: autoconf, configure with some exceptional options passed to it, make, and then make install.
These processes run with being stopped by errors.
The final step is to do 'make test' to test the build. But when done, it stops with errors that It cannot find the dynamic link libraries (*.so) built in the contrib package and in the main package, which are kept in lib directories off the $HOME directory.
LD_LIBRARY_PATH is set, upon the instructions of the package developer, so that the linker can find these libraries, but it doesn't. The report is "no such file or directory" when looking for the *.so.
Now when I create a symbolic link (ln -s) to the missing libraries (determined by using 'ldd' on the executable to look for dependencies), and I put the link in /usr/lib, it finds the library but cannot open it, reporting "Error 40". More detail and the output of commands is given in the link below.
This detail includes:
the setting of the LD_LIBRARY_PATH (done in .bash_profile and then a re-login done) with a report of 'echo $LD_LIBRARY_PATH
the listing ('ls -alF') of the directories containing the libraries reported as 'not found' by 'ldd' on the executables
the output of 'ldd' on the executables in questionBefore coming here, I had already gone to the developer---who ran out of ideas after 5-6 cycles of email, and then to a couple of Usenet groups. I have posted this explanation with relevant output to comp.os.linux.development.apps, so if you would be willing to go here, (http://groups.google.com.tr/group/comp.os.linux.development.apps/msg/4fd4e12a18f82f4b?&hl=en) you can get more information.
I am stumped.
I returned to using a *nix-based system after a decade (in mid 1990s, I did a lot of C programming on a AT&T SVR4) and in mid 1980s played around with Bourne shell (sh) scripts on a Ultrix system. So it could be I have forgotten how the build process works.