LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 01-14-2007, 04:08 PM   #1
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Rep: Reputation: 15
dependencies non-sense


I got an update for Hydrogen that requires libQtGui.so.4. So does the dosbox emulator that I want to try.

I tried finding the library as RPM but I ended up with a pair of RPMs that each required the other as a dependency!

So I went all the way to the top and got the entire qt4-x11 suite directly from Trolltech's site.

I left it compiling for hours. I checked afterwards to make sure the notorious library was installed. It is in
/usr/local/Trolltech/Qt-4.2.2/lib/libQtGui.so.4 .

However the update of Hydrogen still fails because it finds no installable provider for that library. I assume that the dosbox will fail to operate too ( I installed this one through YaST Software manager from packman-bremen and ignored the dependency, planning to figure it out later ).



Is there a way to show them the path to the library? Is there a specific path that this library is expected to be found in? Maybe I could create a link there to the library?


Thanks
 
Old 01-14-2007, 04:43 PM   #2
The Headacher
Member
 
Registered: Jan 2007
Distribution: Vector Linux
Posts: 90

Rep: Reputation: 15
Don't you think it might be easier to build Hydrogen yourself rather than messing around with something as vital as QT?
 
Old 01-14-2007, 04:52 PM   #3
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Err-- I don't think dosbox needs QT?? (Well, at least mine doesn't...)

Also, if you want to install your applications using RPMs, but have not installed their dependencies via RPM, I doubt it will work!
If your libraries are in /usr/local then your Package manager doesn't know and doesn't care about them.

So, if you still want to follow your path further, then you also have to compile Hydrogen from the sources.

Look in /usr/local/Trolltech/Qt-4.2.2 if there is a ./bin directory which provides some sort of tool which returns the ./include and ./lib directories and other flags for the compiler

You have to tell the dynamic linker to look into these new directories:

* Append /usr/local/Trolltech/Qt-4.2.2/lib to LD_LIBRARY_PATH
* Put /usr/local/Trolltech/Qt-4.2.2/lib into /etc/ld.so.conf and run ldconfig

Good luck
 
Old 01-14-2007, 05:25 PM   #4
iHaterRegistering
LQ Newbie
 
Registered: Sep 2006
Distribution: open SuSE 10.1
Posts: 14

Rep: Reputation: 0
Install smart
then open a terminal and issue
sudo smart install hydrogen
No not that smart, this smart;
http://susewiki.org/index.php?title=...ackage_Manager
 
Old 01-14-2007, 06:05 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,063
Blog Entries: 4

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
To install 2 rpms that have each other as dependencies, do this:
Code:
rpm -Uvh rpm1.rpm rpm2.rpm
and they will install.

Or use a package manager
 
Old 01-15-2007, 02:17 AM   #6
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
1) Build Hydrogen myself? yeah I guess Ican do that. I like RPMs because they are a lot faster and fix dependencies themselves. I kinda hate them for the same reason too. They are too isolated from the rest of the system...

2) I won't install the RPMs that require each other. First because I no longer need them, and second because, if they mess up qt3 along the way, then I might end up with no KDE anymore and I just reinstalled my system two days ago because KDE went to hell for an unknown reason.

3) Indeed dosbox doesn't require this library. The front end for it does.

4) Smart? Hmmm, I still need the RPM for Hydrogen don't I?


I think I'll try FnordPerfect's solution... I expect more applications to require qt4 as time passes by. If it fails I'll go with clean compilation.
 
Old 01-15-2007, 02:50 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
RPM (and most package managers) do not see anything compiled from source. If you install an RPM, various information about it is stored in the rpm database, but this does not happen when you compile a package from source. Suse has qt4 rpms which you can install through YAST. Qt4 and qt3 can happily coexist on any distro, so installing qt4 rpms won't mess up your qt3 installation.

FnordPerfects solution won't work if you still want to install Hydrogen from an rpm because of the reasons just mentioned above (unless you use force and nodeps), but compiling from source after following his directions may work.
 
Old 01-15-2007, 03:04 AM   #8
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
EDIT: So I did post a reply here... I thought it got lost and retyped it.




I had looked for qt4 RPMs and came up with nothing useable or was redirected back to trolltech. Obviously I didn't look in the right place? I'll snoop around again.

Last edited by scorpion_gr; 01-15-2007 at 03:09 AM.
 
Old 01-15-2007, 03:41 AM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
Quote:
Originally Posted by scorpion_gr
EDIT: So I did post a reply here... I thought it got lost and retyped it.




I had looked for qt4 RPMs and came up with nothing useable or was redirected back to trolltech. Obviously I didn't look in the right place? I'll snoop around again.
If you are using SUSE as your profile suggests, qt4 rpms are already available using the Software Manager in YAST.

Last edited by reddazz; 01-15-2007 at 08:59 AM.
 
Old 01-16-2007, 03:45 AM   #10
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
I normally use YaST indeed. But there are no qt4 packages on either packman.ui-bremen/suse/10.1 or suse/update/10.1 (whatever the exact urls are). I have looked at laest twice.

What other sources should I add?

EDIT: Oh, yeah there is the plain qt package that is version 4.1 and I have already installed it, but it doesn't provide the libraries libQt3Support.so.4 (required by the rpm that contains libQtGui.so.4) and libQtGui.so.4 (that is what I'm looking for).


I think I'm gonna go with the dual rpm installation.

Last edited by scorpion_gr; 01-16-2007 at 04:32 AM.
 
Old 01-16-2007, 04:29 AM   #11
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
The dual installation of the RPMs I got from pbone went well, as did the installation of the updates.


Thank you all!
 
  


Reply

Tags
dependencies, qt4


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
This just doesn't make any sense! FreezEy Debian 8 04-18-2006 08:35 PM
kernel: st0: Error with sense data: Current st09:00: sense key N da_kidd_er Linux - Hardware 0 12-16-2004 10:51 PM
Sense Data aikempshall Slackware 0 04-16-2004 04:41 AM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM
I should have more sense mgbgt LinuxQuestions.org Member Intro 1 07-03-2003 06:56 PM


All times are GMT -5. The time now is 12:17 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration