Hi all,
Please help me to solve this problem.
I want to change the default shared library path (/usr/lib/) iin my power pc linux. I dont have ldconfig command support. Please give me some other solution to do that.
Thanks in Advance
Remya
Hi all,
Please help me to solve this problem.
I want to change the default shared library path (/usr/lib/) iin my power pc linux. I dont have ldconfig command support. Please give me some other solution to do that.
Thanks in Advance
Remya
What you are asking to do is not easy. This involves REBUILDING YOUR ENTIRE SYSTEM. Many of the programs built on the system expect that, at least, the libc library is located under a specific location (usually /usr/lib). To change this, you'd need to build a new system making sure to set the path variable in ./configure to wherever you wanted it. Next, download all the source packages and recompile _ALL_ your software as the ones on your system will not work with the new library path.
So, what I'm saying is your question was not specific enough. Please explain what you are attempting to do.
That's not true. Generally, the paths used in configure are to determine where to put things after the build. Runtime linking is done by the runtime linker, ld.so. The library path is not hardcoded by programs -- or at least, not normally (and it should not be).
You can add to and remove paths used by the runtime linker with ldconfig, which evidentally the OP has heard of this. ldconfig is part of the glibc package, so at one time or another it must have been installed. It is also required just to install a normal distro package, so it would be very strange if it were "not available".
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge