Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Oct 23, 2004 9:13 am 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
Hi,

First off I'm doing this on a server at home, not on my linode.

Background:
I'm installing a package under Redhat 9 and have failed dependancies of libiconv.so.2 and libsablot.so.0

I've found the maintainer sites and downloaded what they have in rpm format and installed. However when I run the application it complains about an undefined reference. (This is not the problem)

So I rpm -e the packages and complie and install from source. RPM still complains about the dependancies, but if I rpm -i -f, the package installs and works fine.

Question:
So the question is how do you get rpm to recognise that the dependancies are satisfied with tar.gz complied source?

I'm assuming it's using its own database that indicates the packages have never been installed. I've looked at the man page for rpm but I can't see the answer (doesn't mean it's not there)

I've run ldconfig -v after the libs were installed (but don't know if I needed to)

Any help much appreciated,
Mark


Top
   
 Post subject:
PostPosted: Sat Oct 23, 2004 9:17 am 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
You'll have to find a working rpm for the sources you compiled or make one yourself.


Top
   
 Post subject:
PostPosted: Sat Oct 23, 2004 4:04 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
To be honest, I'm not sure how the rpm database works, but I know that it has an option you can use to rebuild the database. I'm not sure what it rebuilds it from, though, so that probably isn't the answer.

Good luck with whatever you find, though.


Top
   
 Post subject:
PostPosted: Sat Oct 23, 2004 6:43 pm 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
The rpm database is in /var/lib/rpm
The directory itself is a Berkeley DB database.

All the information is in the "Packages" file : if you lose this, say goodbye to your rpm database.

When you use "rpm --rebuilddb" the other files in the directory which are merely index for some rpm properties are scraped and recomputed from the content of Packages.

The only way to make rpm understands that some lib is installed is to update this database, you could do it manually by understanding the layout of the db and updating it directly but the only sane way to do this is to install a rpm providing the lib you want to install.


Top
   
 Post subject:
PostPosted: Sat Oct 23, 2004 11:17 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
Turns out after much searching that all the sablotron rpms have been compiled --enable-javascript and this is where my initial problem lies.

The answer is to install sablotron-1.0.1-2.i386.rpm and then make install the tar.gz file without enabling javascript.

This keeps the rpm database happy and fixes the undefined symbol: JS_PropertyStub error that made me compile in the first place.

Thanks for your help,
Mark


Top
   
 Post subject:
PostPosted: Sun Oct 24, 2004 3:12 pm 
Offline
Junior Member

Joined: Thu Oct 07, 2004 6:47 pm
Posts: 47
The clean way is to download the src.rpm of the rpm you installed, install it, change the spec file in /usr/src/redhat/SPECS to fit your needs and launch a rpmbuild -ba <specfile> : you'll have a proper installable rpm.

Now your rpm database is slightly out of sync, nothing really armful, but for example you won't be able to detect changes in sablotron's file by running rpm -V.


Top
   
 Post subject:
PostPosted: Sun Oct 24, 2004 11:05 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
gyver wrote:
The clean way is to download the src.rpm of the rpm you installed, install it, change the spec file in /usr/src/redhat/SPECS to fit your needs and launch a rpmbuild -ba <specfile> : you'll have a proper installable rpm.


I tried that and had errors I didn't understand / couldn't fix. I don't consider myself up to the level of modifying spec files.

I originally tried rpmbuild -ta file.tar.gz but it complained things were missing, that I didn't know how to fix. The source just complied and worked.

I've sent info I found on the web about the linking of the js library when using salbotron to the coders of the third party package.

Hopefully they can make the necessary changes (which I didn't really understand, but they should) and the problem will then go away.

In the end I just want a proceedure to install this software that a 4 year old could follow. While no compiling would be nice, It's just not there yet.

Thanks again,
Mark.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group