LinuxQuestions.org
Visit Jeremy's Blog.
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 11-30-2004, 06:19 AM   #1
shy
Member
 
Registered: Dec 2002
Location: Russia
Distribution: ASP linux
Posts: 94

Rep: Reputation: 15
What program can be used to view/convert *.chm (win help) files? SOLVED


Hi.

Is it possible to view windows help files (*.chm) under linux, and what can be used to do it? Or maybe convert them to any other viewable format (pdf, html or whatever)?

Last edited by shy; 12-11-2004 at 07:48 AM.
 
Old 11-30-2004, 11:11 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I don't know of any programs as most don't need Windows help files in Linux. Is there a reason for this? Have you tried to just view them in a text editor?
 
Old 11-30-2004, 11:32 AM   #3
shy
Member
 
Registered: Dec 2002
Location: Russia
Distribution: ASP linux
Posts: 94

Original Poster
Rep: Reputation: 15
Some piece of documentation was given to me in this format, and I have to read it
This is a binary file so a text editor is useless...

Is it possible with wine? I thought viewing a help file is some inner windows feature so maybe wine fails here...
 
Old 11-30-2004, 01:21 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by shy
Some piece of documentation was given to me in this format, and I have to read it
This is a binary file so a text editor is useless...

Is it possible with wine? I thought viewing a help file is some inner windows feature so maybe wine fails here...
If its a binary file.. I would think your screwed.. you'll need whatever program Microsoft uses to view help files, which I believe is built into Explorer
 
Old 12-03-2004, 08:31 AM   #5
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
There is xchmviewer, or you can use IE in Wine
 
Old 12-03-2004, 10:13 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
i think he means try this: http://xchm.sourceforge.net/

or you can use this if you don't have the libraries installed required for xchm:
http://archmage.sourceforge.net/

which you can use to decompile the chm file into regular html file(s). there are rpms available. also what you'll need to do is to edit the archmage script (get's installed in /usr/bin) and change the first line of the script to:

#!/usr/bin/python2.2

since the chm.py module is installed in python2.2's libraries in /usr/lib/python2.2

after converting, go to destination directory and open up index.html.

Last edited by megaspaz; 12-03-2004 at 10:47 AM.
 
Old 01-10-2005, 04:21 AM   #7
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Rep: Reputation: 15
xCHM

is there any other programm for this job, because in xCHM you cant copy nor select text from .chm files?
 
Old 01-10-2005, 04:56 AM   #8
Bonch
Member
 
Registered: Oct 2004
Location: Estonia
Distribution: Debian - sarge
Posts: 38

Rep: Reputation: 15
Finally I have got it!

Good news for those why read .chm files under linux, there is a tool - HelpExplorer-2.1 from KAMA Software. It works just like the same tools in windows!
 
Old 01-10-2005, 07:33 AM   #9
nIMBVS
LQ Newbie
 
Registered: Sep 2003
Location: Romania
Distribution: Linux Mint
Posts: 29

Rep: Reputation: 21
Here is the recipe I use to extract the files from .chm help files:

- download chmlib
- extract:
Code:
tar zxf chmlib-0.35
- configure:
Code:
./configure
- make:
Code:
make
- make install (or checkinstall for those of you who want to be able to uninstall easy):
Code:
make install
or
Code:
checkinstall
- compile example programs (this is the scope of all this... in the example programs there is one which extracts the files from .chm):
Code:
make examples
After you make examples in the directory of chmlib will be the executable extract_chmLib . This is the thing you need. It extracts the html and images from .chm and makes a browsable site out of the .chm which you will be able to see with any browser.

That's it. This is what I use and I'm very happy with it. No stupid bloated X programs for which you need 1000 libraries to make them work. Easy and simple.

Last edited by nIMBVS; 01-11-2005 at 12:28 PM.
 
Old 01-30-2005, 05:13 PM   #10
boopers
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
Quote:
After you make examples in the directory of chmlib will be the executable extract_chmLib .
I get this error:
Code:
./extract_chmLib: error while loading shared libraries: libchm.so.0: cannot open shared object file: No such file or directory
libchm.so.0 is in my /usr/local/lib directory and I'm trying to execute it as root so I don't know why I'm getting the error
 
Old 01-30-2005, 08:32 PM   #11
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
probably because /usr/local/lib isn't in your searchable path. I know redhat doesn't put /usr/local in the searchable path
path and there's probably a few other distros that don't either.

the quick down and dirty way to fix your problem is to probably create a symlink in /usr/lib to that file in /usr/local/lib.

Code:
]# ln -s /usr/local/lib/libchm.so.0 /usr/lib/libchm.so.0
you need to do this as root.
 
Old 01-30-2005, 08:51 PM   #12
boopers
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by megaspaz
probably because /usr/local/lib isn't in your searchable path. I know redhat doesn't put /usr/local in the searchable path
path and there's probably a few other distros that don't either.

the quick down and dirty way to fix your problem is to probably create a symlink in /usr/lib to that file in /usr/local/lib.

Code:
]# ln -s /usr/local/lib/libchm.so.0 /usr/lib/libchm.so.0
you need to do this as root.
That worked like a champ thanks!

Also chmlib works great too. I'm happy
 
Old 01-30-2005, 08:58 PM   #13
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
glad everything worked out for ya.
 
Old 09-17-2005, 05:38 AM   #14
kb_ganesh
Member
 
Registered: Jun 2005
Posts: 42

Rep: Reputation: 15
great!! thanks a ton!!

this worked like a charm!! i have been looking for something like this for a loooooong time..thanks!!
 
Old 10-06-2005, 02:00 AM   #15
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi
another way to do it: open Konqueror, right click on the file; select "preview with KChmPart".
It works in my case...

Regards
 
  


Reply


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
linux program to convert rm (real player) audio files to mp3 format des-traction Linux - Software 2 03-31-2009 07:04 PM
Program to read *.chm files minm Linux - Newbie 5 03-25-2006 02:20 AM
cannot view CHM files, in KDE 3.4.1 irfanhab Slackware 2 08-03-2005 12:29 PM
Any program that can convert mp3 files to wma? josh_hd_new Linux - Newbie 1 01-21-2005 02:03 AM
How to view CHM files ? saudoi Linux - Software 1 08-03-2004 03:10 AM

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

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