Operating System - Linux
1825001 Members
2660 Online
109678 Solutions
New Discussion юеВ

Re: how to install ldconfig

 
SOLVED
Go to solution
Mohan_24
Honored Contributor

how to install ldconfig

HI,

I think ldconfig is not install on of our linux EL server.
(rpm -qa | egrep "ldconfig" doesnt result anything).
so now I need to install ldconfig on the linux box.

can someone please help give me detail step on how to download and install ldconfig on linux.
Please also help on how to install libstdc++-2.9 on this platform.

(uname -a results -
Linux tnvavg0pr01 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:34:58 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux)

Thanks in advance
Mohan
15 REPLIES 15
Ivan Ferreira
Honored Contributor
Solution

Re: how to install ldconfig

I think that ldconfig is installed as part of the glibc package, you can do:

# rpm -qil glibc |grep ldconfig

All RPM packages are installed with rpm -ivh or rpm -Uvh. The rpm program will warn you about problems or conflicts that could occur when installing a package.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Gopi Sekar
Honored Contributor

Re: how to install ldconfig


Looks like you are using RHEL 3 x86_64 version (correct me if i am wrong)

ldconfig is by default installed with glibc, i really doubt your system is installed without glibc(which is the core)

the RPM's should be part of your distribution CD list.
Never Never Never Giveup
Mohan_24
Honored Contributor

Re: how to install ldconfig

hi guys,
thanks for quick replies.
I will check these things and will revert to you ASAP.
can you Please also temm me how to install libstdc++-2.9 on this platform and do I need to install anything before installing libstdc++-2.9??

thanks
mohan
Mohan_24
Honored Contributor

Re: how to install ldconfig

ivan,
rpm -qil glibc |grep ldconfig
/sbin/ldconfig
/sbin/ldconfig

so looks like I have ldconfig on my system.
thanks for help again.


Ivan Ferreira
Honored Contributor

Re: how to install ldconfig

You can use redhat-config-packages (GUI) to install packages and dependencias, so you need to find where the libstdc package is navigating trhough the sections, select it and the installed will guide you.

Doing it by hand is more complex. You should find the rpm on the distribution CD. Try to install with rpm -ivh and then you will get a list of packages that should be installed also. Install everything as indicated.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Gopi Sekar
Honored Contributor

Re: how to install ldconfig


you can use RH package management utility to install the package of your choice, it will take care of dependencies if any required.

otherwise installing RPM on your own is simple by 'rpm -ivh '
Never Never Never Giveup
Stuart Browne
Honored Contributor

Re: how to install ldconfig

Lets just go over something here 'cause people seem to be getting a bit off track.

ldconfig is supplied by the package 'glibc'.

A RH3 system *WILL NOT FUNCTION* without this package installed, thus every RH3EL system will have 'ldconfig'.

To be a bit more broad, every RH system since v8 (and all Fedora distributions, hell all Linux distributions younger than 5 years old) will have the 'glibc' package, and thus 'ldconfig'.

The most likely thing that happened is that our user here didn't have the correct PATH setting (i.e. with '/sbin', did you 'su', but not 'su -' perhaps?) or was trying to run it as a non privileged user.

As only a privileged user should have access to update the library cache of which 'ldconfig' rebuilds, this is perfectly normal.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: how to install ldconfig

*re-reads the thread*

...

*sigh*

Sorry, missed the 2nd question.

A RH3 system should have access to 'libstdc++-3.2' packages on the install media (or via 'up2date'). Is this insufficient?

'libstdc++' will need 'rpm-libs' and 'glibc' packages installed.
One long-haired git at your service...
Mohan_24
Honored Contributor

Re: how to install ldconfig

HI Guys,

Could you please aslo pont me to a site I can download libstdc++-2.9 etc for Linux ES 3 please (2.4.21-20.ELsmp)

mohan
Mohan_24
Honored Contributor

Re: how to install ldconfig

HI guys,

I have downloaed libstdc++-2.92.tar.gz.
now how do i install it. I get Makefile's after extracting the file.
Do I have to use make? or something else.
Sorry, very new to linux.
Please help.
mohan
Gopi Sekar
Honored Contributor

Re: how to install ldconfig


un tar the tar.gz file and go to that new directory, from there do 'configure --prefix=/usr' which will configure the make files according to your system.

once it gets completed successfully, run make and make install. do ldconfig and you should be fine.

if configure throws any requirements download and install them first. if make fails, do post the make error and we will try to diagnoise it.

Hope this helps,
Gopi
Never Never Never Giveup
DickyM
Occasional Advisor

Re: how to install ldconfig


HI Gopi,

Getting following error

[root@abc libstdc++-2.92]# configure --prefix=/usr
-bash: configure: command not found
[root@abc libstdc++-2.92]# ./configure --prefix=/usr
loading cache ./config.cache
configure: error: can not find install-sh or install.sh in ./.. ././..
-----

ll
-rw-rw-r-- 1 msp msp 9252 Apr 6 2001 acconfig.h
-rw-rw-r-- 1 msp msp 58111 Apr 6 2001 acinclude.m4
-rw-rw-r-- 1 msp msp 63324 Apr 6 2001 aclocal.m4
-rw-rw-r-- 1 msp msp 67979 Apr 6 2001 ChangeLog
-rw-rw-r-- 1 msp msp 360259 Apr 6 2001 ChangeLog-2000
-rw-r--r-- 1 root root 1 Jul 7 16:15 confdefs.h
drwxrwxr-x 4 msp msp 4096 Apr 6 2001 config
-rw-r--r-- 1 root root 0 Jul 7 16:15 config.cache
-rw-rw-r-- 1 msp msp 19701 Apr 6 2001 config.h.in
-rw-r--r-- 1 root root 127 Jul 7 16:15 config.log
-rwxrwxr-x 1 msp msp 491617 Apr 6 2001 configure
-rw-rw-r-- 1 msp msp 770 Apr 6 2001 configure.host
-rw-rw-r-- 1 msp msp 9977 Apr 6 2001 configure.in
-rw-rw-r-- 1 msp msp 2981 Apr 6 2001 configure.target
drwxrwxr-x 4 msp msp 4096 Apr 6 2001 docs
drwxrwxr-x 9 msp msp 4096 Apr 6 2001 include
drwxrwxr-x 2 msp msp 4096 Apr 6 2001 libio
drwxrwxr-x 2 msp msp 4096 Apr 6 2001 libmath
drwxrwxr-x 2 msp msp 4096 Apr 6 2001 libsupc++
-rw-rw-r-- 1 msp msp 4637 Apr 6 2001 Makefile.am
-rw-rw-r-- 1 msp msp 15451 Apr 6 2001 Makefile.in
-rwxrwxr-x 1 msp msp 1343 Apr 6 2001 mkc++config
-rwxrwxr-x 1 msp msp 15428 Apr 6 2001 mkcheck.in
-rwxrwxr-x 1 msp msp 3024 Apr 6 2001 mkcshadow
-rwxrwxr-x 1 msp msp 2668 Apr 6 2001 mkinclosure
-rwxrwxr-x 1 msp msp 9023 Apr 6 2001 mknumeric_limits
-rw-rw-r-- 1 msp msp 15948 Apr 6 2001 porting.texi
-rw-rw-r-- 1 msp msp 3810 Apr 6 2001 README
drwxrwxr-x 2 msp msp 4096 Apr 6 2001 src
-rw-rw-r-- 1 msp msp 4672 Apr 6 2001 tests_flags.in
drwxrwxr-x 17 msp msp 4096 Apr 6 2001 testsuite
Gopi Sekar
Honored Contributor

Re: how to install ldconfig


u r sure u have downloaded the tar.gz completely? while extracting (tar -zxvf ) does it give any error message?

looks like some files are missing!!. try downloading the file again from a reliable source and try again. You can also try downloading the latest version of it, it looks like you are having very old version (2001 dated)

Hope this helps,
Gopi
Never Never Never Giveup
Mohan_24
Honored Contributor

Re: how to install ldconfig

hi gopi,

Can you please point me to a URL I can download the working libstdc++-2.9 from PleasE?

Sorry, I posted earlier entry from my frinds ID.

thanks
Mohan
Gopi Sekar
Honored Contributor

Re: how to install ldconfig

Check this home page of libstdc++

http://gcc.gnu.org/libstdc++/index.html

Download the latest version and compile for your system. I believe it is currently 3.1.

Also the page has links to documentation which details how to do installation.

Hope this helps,
Gopi
Never Never Never Giveup