LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-11-2009, 04:05 AM   #1
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Rep: Reputation: 0
How to install shared library on Centos 5.2


Hi!

So, I am using Centos 5.2, and I installed all of the available gnome and gnome development libraries available via the "add software" menu item. Still, when running some programs, I get the following error message:

"error while loading shared libraries: libzvt.so.2: cannot open shared object file: No such file or directory"

If I understood it correctly, libzvt.so.2 is part of some gnome libs... Could someone tell me where to find and how to install them?

Thanks!
 
Old 02-11-2009, 04:26 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
It's part of gnome-libs-devel

Cheers
 
Old 02-11-2009, 07:16 AM   #3
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks! But how do I proceed with the installation?

yum install gnome-libs-devel

doesn't work...
 
Old 02-11-2009, 08:30 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
If yum doesn't work, then download the package locally and use rpm to install.

Last edited by bathory; 02-11-2009 at 08:36 AM.
 
Old 02-11-2009, 08:38 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
On my Centos 5.2 box I get
Code:
$ yum whatprovides libzvt.so.2
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * kbs-CentOS-Extras: centos.karan.org
 * rpmforge: ftp-stud.fht-esslingen.de
 * base: mi.mirror.garr.it
 * updates: mi.mirror.garr.it
 * addons: mi.mirror.garr.it
 * kbs-CentOS-Testing: centos.karan.org
 * extras: mi.mirror.garr.it
781 packages excluded due to repository priority protections
gnome-libs.i386 : The main GNOME1 libraries
Have you gnome-libs installed? What does "doesn't work" mean? Can you post the exact error message (if any)?
 
Old 02-12-2009, 03:17 AM   #6
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I tried " yum whatprovides libzvt.so.2" on my computer, and I got:

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* updates: ftp.halifax.rwth-aachen.de
* centosplus: centos.bio.lmu.de
* addons: ftp.halifax.rwth-aachen.de
* extras: centos.bio.lmu.de
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
No Matches found

Any ideas?
 
Old 02-12-2009, 03:28 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by Dtbzz View Post
Excluding Packages from CentOS-5 - Base
Your configuration excludes the Base repository for some reason. Check the file /etc/yum.repos.d/CentOS-Base.repo and see if the base repository is enabled. Also check under /etc/yum/pluginconf.d if you have some specific configuration (for example the priorities configuration) that prevents the Base repo to be used.

Anyway, the package gnome-libs.i386 is provided by the centos.karan.org repository for my system. You can eventually install this repo and do the search again.

Useful additional repositories for Centos are listed here.
 
Old 02-12-2009, 07:03 AM   #8
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
I followed the instructions provided by:

http://wiki.centos.org/AdditionalRes...s%2FCentOSPlus

in order to install Reiserfs support on the computer. If I understand them correctly, they don't exclude the Centos-Base-Repository, but for the sake of completness, I'll post my centos-base.repo:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel kernel-devel kernel-PAE-*
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
includepkgs=kernel* jfsutils reiserfs-utils
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


And my yum.conf:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d



The installation of the centos.karan.org repo did not change anything, either
 
Old 02-12-2009, 08:04 AM   #9
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by Dtbzz View Post
The installation of the centos.karan.org repo did not change anything, either
This is really strange. Apart the problem with the Base repository, you can try to manually download the gnome-libs package and install using
Code:
yum localinstall gnome-libs-1.4.2-5.el5.kb.i386.rpm
Here is the direct link for downloading: http://centos.karan.org/el5/extras/t...l5.kb.i386.rpm (provided that your architecture is i386, that is 32-bit). At least it should resolve the issue with the missing shared library!
 
Old 02-16-2009, 02:34 AM   #10
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry, this does not work, either - here is the output:

yum localinstall gnome-libs-1.4.2-5.e15.kb.i386.rpm
Loading "fastestmirror" plugin
Setting up Local Package Process
Loading mirror speeds from cached hostfile
* kbs-CentOS-Misc: centos.karan.org
* base: centos.intergenia.de
* updates: centos.intergenia.de
* centosplus: centos.intergenia.de
* addons: ftp.halifax.rwth-aachen.de
* extras: centos.intergenia.de
kbs-CentOS-Misc 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
centosplus 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Cannot open file: gnome-libs-1.4.2-5.e15.kb.i386.rpm. Skipping.
Nothing to do

Any ideas left? Anyway, thanks already for the help!
 
Old 02-16-2009, 02:52 AM   #11
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by Dtbzz View Post
Cannot open file: gnome-libs-1.4.2-5.e15.kb.i386.rpm. Skipping.
Nothing to do
You sure the downloaded file is in the directory where you run the yum command? Has it exactly that name? The error above means "file not found".
 
Old 02-16-2009, 03:13 AM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Dtbzz

By any chance are you running the 64bit version of Centos?

Edit: What specific programs are you trying to run that are asking for libzvt?

Last edited by lazlow; 02-16-2009 at 03:29 AM.
 
Old 02-16-2009, 09:11 AM   #13
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
It's a software that someone in our institute programmed, apparently for an older version of gnome? And no, it's 32 bit Centos and the installation worked fine this time, thanks. Now I just have to resolve the dependencies
 
Old 02-16-2009, 09:29 AM   #14
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Is there another way of finding out which package I have to download in order to resolve the dependencies besides

Code:
yum whatprovides *
?
 
  


Reply

Tags
centos, libraries


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 12:15 PM
F8 install 'exec of anaconda failed: accessing corrupted shared library' terry-duell Fedora 8 02-15-2008 12:13 AM
How do I install a shared library? NichA Linux - Newbie 2 08-04-2007 07:30 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-05-2007 12:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 05:20 AM


All times are GMT -5. The time now is 05:01 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration