LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2004, 02:38 PM   #1
Nizzuri
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
xchm problem


Hi

I have a .chm file i want to view and so i decided to install xchm. I read the information on the site and downloaded CHMLIB and wxGTK. I extracted the folder in each download and then ran './configure', then 'make' and finally 'make install' from the console. As far as i know this should mean i can now install xchm. I downloaded xchm and again ran '.,/configure' then 'make' and then 'make install'. Once that was complete i assumed i would just be able to run an exe file to get the program running. The documentation indicated that i should type 'xchm' which i did; however i was presented with the following message:

"xchm: error while loading shared libraries: libwx_gtk-2.4.so: cannot open shared object file: No such file or directory"


I have hunted around for ages trying to get a solution the closest i have come is a thread on another forum in which someone said they recieved the following message:

"xchm: error while loading shared libraries: libchm.so.0: cannot open shared object file: No such file or directory"

Another user told them to:

"Go edit your /etc/ld.so.conf file. Make sure the line
/usr/local/lib
is present in the file (if it isn"t add it manually).
The run ldconfig as root.
Then you should be set. Just run xchm."

I don't know if this is what i have to do and even if it is i have no idea what to do.

Any assistance would be greatly appreciated.

Thanks
 
Old 08-15-2004, 04:17 PM   #2
Nizzuri
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I just figured it out.
 
Old 08-15-2004, 06:14 PM   #3
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
Can you please post what you did to figure it out...I was having the exact same problem. Did you edit your /etc/ld.so.conf file?

 
Old 08-15-2004, 09:33 PM   #4
Nizzuri
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
'libwx_gtk-2.4.so' should be in: '/usr/local/lib'. That being the case go to: '/etc'. In that folder you will find the 'ld.so.conf' file. Edit that file by adding (without the appostophes) '/usr/local/lib' below any of the text that already exists in said file then save it.

Now open up your terminal and go to '/etc'. type: 'su' and enter your root password. Then type 'ldconfig'.

Now go to '/usr/local/bin' and type 'xchm'. It should now run.

Last edited by Nizzuri; 08-15-2004 at 09:34 PM.
 
Old 08-16-2004, 09:00 AM   #5
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
I got rid of that error by doing what you suggested, but I have another error which I think is due to an error when I compile the source. I get the following error with the "make" command:

Quote:
g++ -W -Wall -o xchm chmapp.o chmfile.o chmframe.o chmfshandler.o chminputstream.o contenttaghandler.o chmfontdialog.o chmsearchpanel.o chmhtmlwindow.o chmfinddialog.o chmindexpanel.o chmlistctrl.o -L/usr/local/lib -pthread -lwx_gtk2u-2.4 -lchm
/usr/local/lib/libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_detach'
/usr/local/lib/libwx_gtk2u-2.4.so: undefined reference to `_gtk_accel_group_attach'
/usr/local/lib/libwx_gtk2u-2.4.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[2]: *** [xchm] Error 1
make[2]: Leaving directory `/home/brad/download/xchm-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brad/download/xchm-0.9.3'
make: *** [all] Error 2
.

Anyone have any experience with the above type of error?

 
Old 08-16-2004, 10:49 PM   #6
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
I'll post this for all who have had the same problem:

xchm doesn't like version glib2 or gtk2. When I installed with versions 1.2.10 of these libraries, everything worked fine.

 
  


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
Anyone using xchm on Slackware? JockVSJock Slackware 19 02-08-2006 06:00 PM
xchm problem kb_ganesh Red Hat 0 07-24-2005 01:23 AM
xchm: Text display failure kaon Linux - Software 1 06-15-2005 10:45 AM
xchm 0.9.6-1 displaying gibberish? nagromo Linux - Software 0 12-19-2004 04:43 PM
xchm problem Nizzuri Linux - Software 1 08-15-2004 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 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