LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2008, 05:43 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
library problem


Hi,

We have recovered one of our system.Its RedHat Linux 4.0 EL update 5. Everything looks fine. Just one error we keep getting for few commands like w , df , top etc.


[root@y ~]# w
w: error while loading shared libraries: libproc-3.2.3.so: cannot open shared object file: No such file or directory

[root@y ~]# top
top: error while loading shared libraries: libproc-3.2.3.so: cannot open shared object file: No such file or directory

The library libproc-3.2.3.so exists in /lib64.

Probably the system is looking for this library under /lib instead of /lib64.

Any words of suggestions??

Thanks in advance.
 
Old 03-06-2008, 06:31 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
As a suggestion try re-installing the rpm package which contains libproc-3.2.3.so library;

rpm -Uvh procps-3.2.3-8.6.x86_64.rpm

Warning: You may have still undiscovered issues about 'missing libraries' with other tools.
 
Old 03-06-2008, 06:51 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
i wish to share something here,

[root@y ~]# ldd `which w`
linux-gate.so.1 => (0xffffe000)
libproc-3.2.3.so => not found
libc.so.6 => /lib/i686/libc.so.6 (0xf7eb2000)
/lib/ld-linux.so.2 (0x0056b000)

[root@y ~]# ldd `which top`
linux-gate.so.1 => (0xffffe000)
libproc-3.2.3.so => not found
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x04fc9000)
libc.so.6 => /lib/i686/libc.so.6 (0xf7eb2000)
/lib/ld-linux.so.2 (0x0056b000)

[root@y ~]# ldd `which uptime`
linux-gate.so.1 => (0xffffe000)
libproc-3.2.3.so => not found
libc.so.6 => /lib/i686/libc.so.6 (0xf7eb2000)
/lib/ld-linux.so.2 (0x0056b000)

Did you notice error with libproc.....thats the problem. Its in /lib64 and maybe system is looking it into /lib. ....How do I make the system look for those libraries in /lib64 and not in /lib?
 
Old 03-06-2008, 07:08 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The problem is not with where the library is located, the libproc-3.2.3.so is in the correct location and if the procps libraries is properly registered with the system then it would be found and used. I'm running CentOS5 64-bit which is newer and since the procps package is properly installed and registered I see for example;

Code:
$ ldd `which uptime`
        linux-vdso.so.1 =>  (0x00007fff429fe000)
        libproc-3.2.7.so => /lib64/libproc-3.2.7.so (0x0000003f7fe00000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003f80600000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003f7f600000)
So the problem is with your restore effort, it looks like you choose/did something incorrectly, perhaps you restored from a 32-bit image/system on a 64-bit system?? Or used a 64-bit restore image/system on a 32-bit system??

You should check;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" procps
uname -a

Perhaps you really need to [re]install the 32-bit version of procps judging from you posted output.
 
Old 03-06-2008, 07:21 AM   #5
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
You are dead right!!

See here,

[root@y ~]# rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" procps
procps-3.2.3-7EL.i386

[root@y ~]# uname -a
Linux caregistry 2.6.9-55.ELlargesmp #1 SMP Fri Apr 20 16:46:56 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux


So will it solve the prurpose if we simply install procps for 64-bit or 32-bit ??
 
Old 03-06-2008, 07:36 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes one should install the 64-bit version, you may have to remove the 32-bit version first or use the --force switch to install; rpm -Uvh procps-3.2.3-8.6.x86_64.rpm --force

You should also check which other 32-bit libraries are installed instead of the 64-bit version or if your missing the 64-bit version altogether. This will create a list of the installed packages for review, it is OK to have both the 32-bit and 64-bit library rpm packages installed in most cases. The list will be long but it will give you a reference to use and is easier then reading the screen;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" | sort > Installed.txt

Quote:
linux-gate.so.1 => (0xffffe000)
libproc-3.2.3.so => not found
libc.so.6 => /lib/i686/libc.so.6 (0xf7eb2000)
/lib/ld-linux.so.2 (0x0056b000)
Also verify that you have the proper 64-bit version of the glibc rpm package installed. And it may be a good idea to re-install the kernel.

.

Last edited by Lenard; 03-06-2008 at 07:46 AM.
 
Old 03-06-2008, 08:09 AM   #7
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
#rpm -ivh procps-3.1.2.3-7EL.x86_64.rpm

warning: procps-3.1.2.3-7EL.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
libc.so.6()(64bit) is needed by procps-3.2.3-7EL.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by procps-3.2.3-7EL.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by procps-3.2.3-7EL.x86_64
libc.so.6(GLIBC_2.3.4)(64bit) is needed by procps-3.2.3-7EL.x86_64
libncurses.so.5()(64bit) is needed by procps-3.2.3-7EL.x86_64
Suggested resolutions:
glibc-2.3.4-2.36.x86_64.rpm
ncurses-5.4-13.x86_64.rpm


Shall I use -f option to forcibly install?
 
Old 03-06-2008, 09:31 AM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Nope, install all three packages at the same time try the following command;

rpm -Uvh procps-3.1.2.3-7EL.x86_64.rpm ncurses-5.4-13.x86_64.rpm glibc-2.3.4-2.36.x86_64.rpm --aid

This should take care of any additional dependencies for glibc and ncurses.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Qt library problem karfei00 Linux - Newbie 0 06-14-2004 03:08 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM
Shared library problem (BIG problem) jlg Slackware 1 03-25-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration