LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-21-2006, 01:38 PM   #1
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
'error while loading shared libraries'


hello, im having a problem making a program work on my linux system, and im not sure what do next.

the program is 'xchm-1.3', a chm reader.

with these dependancies..

'chmlib-0.37.4'
'wxWidgets-2.6.2'

i built the 3 programs from source.

i started with 'chmlib', and that seems to have compiled ok.

i then built 'wxWidgets' (configured for GTK install) which also compiled ok, but which then gave me this message 'on certain platforms (eg linux) you'll now have to run ldconfig if you installed a shared library and also modify the LD_LIBRARY_PATH (or equivalent) enviroment variable.' , im not sure how to do this.

i then compiled 'xchm', and tried to run the program by typing 'xchm' from a commandline, but i get this error message 'xchm : error while loading shared libraries: libwx_gtk2_xrc-2.6.so.0 : cannot open shared object file :no such file or directory.'

i see that this is related to the wxWidgets files, but im not sure how to resolve the problem.

Last edited by soldan; 04-21-2006 at 01:40 PM.
 
Old 04-21-2006, 03:03 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
'on certain platforms (eg linux) you'll now have to run ldconfig if you installed a shared library and also modify the LD_LIBRARY_PATH (or equivalent) enviroment variable.'
You need to add the path to the wxWidgets Library to /etc/ld.so.conf. Normally, if you installed from a package the libs would be in /usr/lib, but if since you installed from source, they may be elsewhere. Check /usr/local/lib for instance...

Make sure the path to the libs is in /etc/ld.so.conf, then run ldconfig thusly (as root):
Code:
# ldconfig
simple. This will add the directories in ld.so.conf to the cache that is searched for shared libraries.

HTH...
 
Old 04-21-2006, 04:39 PM   #3
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Original Poster
Rep: Reputation: 15
the libraries were in /usr/local/lib, and i added that path to /etc/ld.so.conf, and now i can view .chm files, thanks bulliver
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 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
Open Source Consulting | Domain Registration