LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-25-2006, 11:35 PM   #16
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15

Ok, thanks for spoonfeeding me.. ;-) but this is taken so much time..

I have been able to install all the packages. I had to install python2.4. However, python2.4-devel (sources) cannot find it. I have the rpm, but the message i get is the following:

Quote:
rpm -i ../python24-devel-2.4.2-2.i386.rpm
warning: ../python24-devel-2.4.2-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 95ccbcff
error: Failed dependencies:
python24 = 2.4.2-2 is needed by python24-devel-2.4.2-2.i386
[root@localhost gnochm-0.9.7]# whereis python
python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/local/bin/python2.4 /usr/local/bin/python /usr/local/lib/python2.4 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
And if I try to run gnochm, I get:

Quote:
[root@localhost gnochm-0.9.7]# /usr/bin/gnochm You do not have all of the required Python modules to run gnochm.
Check the gnochm README file for tips on how to fix this.
What follows is the error description highlighting the problematic module.

libchm.so.0: cannot open shared object file: No such file or directory
[root@localhost gnochm-0.9.7]#
Any idea?

tnx,
Fernando
 
Old 03-26-2006, 12:10 AM   #17
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
This is weird... after executing again ./configure, make, and make install for gnochm after running installation script for pychm, I get the following:

Quote:
[root@localhost gnochm-0.9.7]# gnochm
You do not have all of the required Python modules to run gnochm.
Check the gnochm README file for tips on how to fix this.
What follows is the error description highlighting the problematic module.

No module named chm
[root@localhost gnochm-0.9.7]#
... a different error (!)
 
Old 03-26-2006, 08:06 AM   #18
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It appears that you installed gnochm without making sure that pychm has been installed. Anyway it doesn't matter, we will focus on getting pychm installed and if successful gnochm will work. The way you are installing rpms can cause a lot of problems with dependencies. Fedora Core uses a package manager called yum which gets packages from Fedora internet sources and resolves dependencies automatically. So what you should do now, is make sure that python-devel is installed by doing
Code:
#rpm -qa | grep -i python-devel
If nothing is printed on your screen after you run this command and you are dropped to the prompt it means that you do not have python devel. To install it do
Code:
#yum install python-devel
Once thats done proceed with installing pychm. Pychm is not installed the same way as other packages. Instead of doing ./configure, make and make install, you have to switch to root and do
Code:
#python setup.py install
Hope everything works out.

Last edited by reddazz; 03-26-2006 at 08:11 AM.
 
Old 03-26-2006, 08:46 AM   #19
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
I didn't want to use rpm because of the problems I thought it may cause. As I understand, there is nothing better than compiling and linking the dist. directly. That or using yum, but yum didnt work. I ended up with the rpm because i couldnt find the pyhton-devel as a tar file.. Anyway, first thing i am doing this morning (still with my coffee) is the following:

Quote:
[fbarsoba@localhost ~]$ su
Password:
[root@localhost fbarsoba]# rpm -qa | grep -i python-devel
python-devel-2.4.1-2
[root@localhost fbarsoba]# rpm -qa | grep -i python
rpm-python-4.4.1-21
gnome-python2-gtkhtml2-2.10.0-2.1
python-ldap-2.0.6-4
libxml2-python-2.6.19-1
gnome-python2-bonobo-2.10.0-1
python-elementtree-1.2.6-4
gnome-python2-canvas-2.10.0-1
dbus-python-0.33-3
python-devel-2.4.1-2
python-2.4.1-2
gnome-python2-gnomevfs-2.10.0-1
gnome-python2-extras-2.10.0-2.1
gnome-python2-2.10.0-1
python-urlgrabber-2.9.6-1
python-sqlite-1.1.6-1
[root@localhost fbarsoba]# cd Desktop/pychm-0.8.2
[root@localhost pychm-0.8.2]# python setup.py install
running install
running build
running build_py
running build_ext
running install_lib
creating /usr/local/lib/python2.4/site-packages/chm
copying build/lib.linux-x86_64-2.4/chm/chm.py -> /usr/local/lib/python2.4/site-packages/chm
copying build/lib.linux-x86_64-2.4/chm/chmlib.py -> /usr/local/lib/python2.4/site-packages/chm
copying build/lib.linux-x86_64-2.4/chm/__init__.py -> /usr/local/lib/python2.4/site-packages/chm
copying build/lib.linux-x86_64-2.4/chm/extra.so -> /usr/local/lib/python2.4/site-packages/chm
copying build/lib.linux-x86_64-2.4/chm/_chmlib.so -> /usr/local/lib/python2.4/site-packages/chm
byte-compiling /usr/local/lib/python2.4/site-packages/chm/chm.py to chm.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/chm/chmlib.py to chmlib.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/chm/__init__.py to __init__.pyc
[root@localhost pychm-0.8.2]#
I am not trying anything else since I dont want to corrupt this step by step process..

tnx,
Fernando
 
Old 03-26-2006, 09:06 AM   #20
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Anyway It seems like pychm is now installed fine so hopefully gnochm should run now. I am not sure why your pychm was installed in /usr/local so if gnochm still can't find it, you may have to install pychm to /usr e.g.
Code:
#python setup.py install --prefix=/usr
 
Old 03-26-2006, 09:36 AM   #21
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
No success... here is the result of the test:

http://www4.ncsu.edu/~fbarsob/error4.txt

:-(
 
Old 03-26-2006, 09:58 AM   #22
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
So how come you ended up with two versions of python? Pychm is certainly installed fine from the output but I think you are causing some sort of conflict by having two versions of python on your machine. One version is installed in /usr and I guess thats the one that shipped with your distro and the other is in /usr/local meaning that it was installed by you or someone else who uses your system. We need to remove the version in /usr/local. What is the output of running
Code:
#rpm -qa | grep python
 
Old 03-26-2006, 11:04 AM   #23
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
This is the output:

[root@localhost fbarsoba]# rpm -qa | grep python
rpm-python-4.4.1-21
gnome-python2-gtkhtml2-2.10.0-2.1
python-ldap-2.0.6-4
libxml2-python-2.6.19-1
gnome-python2-bonobo-2.10.0-1
python-elementtree-1.2.6-4
gnome-python2-canvas-2.10.0-1
dbus-python-0.33-3
python-devel-2.4.1-2
python-2.4.1-2
gnome-python2-gnomevfs-2.10.0-1
gnome-python2-extras-2.10.0-2.1
gnome-python2-2.10.0-1
python-urlgrabber-2.9.6-1
python-sqlite-1.1.6-1
[root@localhost fbarsoba]#
 
Old 03-26-2006, 11:10 AM   #24
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ok, from the output, it seems like someone compiled python from source and it ended up in /usr/local. You will have to figure out how to uninstall that because it will keep interfering with some python packages. Usually you can use two or more versions of python, but its better to put them in their own special prefix e.g. /usr/local/python242 so that they don't clash with the version shipped by your distro.
 
Old 03-26-2006, 11:28 AM   #25
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Well, that was funny.. after doing
Quote:
#yum remove python
Lots of dependencies showed up and 131 elements where removed. Now, when i open a terminal, the whole graphic environment has changed..more like text terminal.. it looks like graphic libraries are not in the system anymore

For instamce, i use eclipse cdt, and this package has been removed when removing python.. No big deal since i can install python again. The result here:

http://www4.ncsu.edu/~fbarsob/error5.txt

Also, it seems no other version of python is in the system anymore.
Quote:
[root@localhost fbarsoba]# rpm -qa | grep python
[root@localhost fbarsoba]#
 
Old 03-26-2006, 11:35 AM   #26
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
In my post above, I mentioned that someone installed python from source into /usr/local. This will not show up in the rpm database so there is no point trying to remove it via rpm. If you look at the error4 link you posted above you will note that there are versions of python in /usr and /usr/local. If you then query python using rpm, it only shows one version as being installed via rpm, so this means that the other version was compiled from source.
 
Old 03-26-2006, 11:38 AM   #27
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Would checkinstall work in this case?
 
Old 03-27-2006, 12:44 AM   #28
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by fbarsoba
Would checkinstall work in this case?
I really don't know, but I suspect that it wouldn't if something is not done about the conflicting python installations.
 
Old 04-01-2006, 08:01 PM   #29
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,

Ok, I have FC5 installed ... spotless installation.. I followed the instructions on http://fedoranews.org/mediawiki/inde..._reader_on_FC4

And I get the following error:

Quote:
[fbarsoba@localhost ~]$ gnochm
You do not have all of the required Python modules to run gnochm.
Check the gnochm README file for tips on how to fix this.
What follows is the error description highlighting the problematic module.

libchm.so.0: cannot open shared object file: No such file or directory
[fbarsoba@localhost ~]$
which I guess is the problem referred in the web page as:
Quote:
Default install path for this bindings are in /usr/local/lib.
GnoCHM is picky about paths, so we need to set up a soft link to the library libchm.so.0. This is done by issuing the following command:

ln -s /usr/local/lib/libchm.so.0.0.0 /usr/lib/libchm.so.0
So, my /usr/local/lib directory says:

Quote:
[root@localhost lib]# pwd
/usr/local/lib
[root@localhost lib]# ls -l
total 192
-rw-r--r-- 1 root root 88728 Apr 1 20:41 libchm.a
-rwxr-xr-x 1 root root 807 Apr 1 20:41 libchm.la
lrwxrwxrwx 1 root root 15 Apr 1 20:41 libchm.so -> libchm.so.0.0.0
lrwxrwxrwx 1 root root 15 Apr 1 20:41 libchm.so.0 -> libchm.so.0.0.0
-rwxr-xr-x 1 root root 71038 Apr 1 20:41 libchm.so.0.0.0
[root@localhost lib]#
Everything seems ok now... any suggestions?

tnx,
Fernando
 
Old 04-01-2006, 08:08 PM   #30
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
So does gnochm work after creating the symlinks? If it does, then all is well. I am actually in the process of creating gnochm, pychm and libchm rpms for FC5. I have successfully completed libchm and pychm but hit a little snag in the build process of gnochm so I won't be finished until I manage to patch gnochm so that the build process works. I will post a link to the rpms once I have finished.
 
  


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
problems installing custom 2.6.14 kernel (for SATA problems) Ekkume Ubuntu 0 12-29-2005 02:39 PM
gnochm error - No module named gconf raghav Fedora 1 12-14-2005 09:26 AM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM
problems installing redhat 9; usb problems (I think) nhelseth Linux - Newbie 2 04-27-2004 04:17 PM
gnochm problems Lgoat Linux - Software 3 03-26-2004 05:45 AM

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

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