I have an issue moving a compiled application to another box because of shared library location change

Posted on 2008-09-30
Last Modified: 2012-05-05
I have a C++ application compiled on Linux Redhat 4.0. This application when moved to a different box, it doesn't run due to shared library path issues.

The old path of the library is


The new path is


my $LD_LIBRARY_PATH env is

[pinlc114] msUnTest> echo $LD_LIBRARY_PATH

Here is the output

[pinlc114] msUnTest> ldd alltests => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a95557000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a9581f000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a95b18000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a95d1d000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a96096000) (0x0000002a9634a000) (0x0000002a96aca000) (0x0000002a96bde000)
        /vobs/atsedssv2/vendor/oracle.rh4/lib// => not found => /opt/atse/sandbox/vendor/oracle.rh4/lib/ (0x0000002a97054000) => /opt/atse/sandbox/vendor/oracle.rh4/lib/ (0x0000002a9727b000)
        /vobs/atsedssv2/vendor/oracle.rh4/lib// => not found => /opt/atse/sandbox/vendor/oracle.rh4/lib/ (0x0000002a985e7000) => /opt/atse/sandbox/vendor/oracle.rh4/lib/ (0x0000002a98a8a000) => /lib64/tls/ (0x00000035a7100000) => /usr/lib64/ (0x00000035a6500000) => /lib64/tls/ (0x00000035a6700000) => /lib64/ (0x00000035a6100000) => /usr/lib64/ (0x00000035a6f00000) => /lib64/tls/ (0x00000035a6300000) => /lib64/ (0x0000002a9ce94000) => /lib64/tls/ (0x00000035a5e00000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a9cfa0000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a9d11d000) => /opt/atseintl/ACE-GNU/ACE_wrappers_OCI_1.3a_p16/lib/ (0x0000002a9d239000) => /lib64/ (0x00000035ac200000) => /usr/lib64/ (0x0000002a9d35b000)
        /lib64/ (0x00000035a5c00000)
[pinlc114] msUnTest> alltests
alltests: error while loading shared libraries: /vobs/atsedssv2/vendor/oracle.rh4/lib// cannot open shared object file: No such file or directory
[pinlc114] msUnTest>
Question by:EmadGirgis
1 Comment
LVL 39

Accepted Solution

itsmeandnobodyelse earned 500 total points
ID: 22612851
I have less experience with linux, but the following article may answer your questions:

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now