LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2007, 05:48 PM   #1
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
Upgrade qt3 -> qt4. Symlinks still point to qt3


I seem to have solved a major sound prob by installing ALSA OSS.
Now I want to install Last.fm
Last.fm wants :
the Qt4 toolchain. Running "qmake -v" should identify as
version 4.x.x.

[root@bilbo bin]# qmake -v
Qmake version: 1.07a (Qt 3.3.4)
Qmake is free software from Trolltech AS.

Alrighty then...
[root@bilbo base]# cd /var/cache/yum/base
[root@bilbo base]# yum install qt4
Setting up Install Process
...
Running Transaction
Installing: qt4 ######################### [1/1]

Installed: qt4.i386 0:4.1.5-2.fc4
Complete!
______________

However, all of the /usr/bin symlinks still point to QT3...
Code:
lrwxrwxrwx  1 root root         29 Mar 11 21:17 qtrename140 -> ../lib/qt-3.3/bin/qtrename140
lrwxrwxrwx  1 root root         25 Mar 11 21:17 qt20fix -> ../lib/qt-3.3/bin/qt20fix
lrwxrwxrwx  1 root root         23 Mar 11 21:17 qmake -> ../lib/qt-3.3/bin/qmake
lrwxrwxrwx  1 root root         23 Mar 11 21:17 qm2ts -> ../lib/qt-3.3/bin/qm2ts
lrwxrwxrwx  1 root root         24 Mar 11 21:17 qembed -> ../lib/qt-3.3/bin/qembed
lrwxrwxrwx  1 root root         21 Mar 11 21:17 moc -> ../lib/qt-3.3/bin/moc
lrwxrwxrwx  1 root root         25 Mar 11 21:17 lupdate -> ../lib/qt-3.3/bin/lupdate
lrwxrwxrwx  1 root root         26 Mar 11 21:17 lrelease -> ../lib/qt-3.3/bin/lrelease
lrwxrwxrwx  1 root root         26 Mar 11 21:17 linguist -> ../lib/qt-3.3/bin/linguist
lrwxrwxrwx  1 root root         24 Mar 11 21:17 findtr -> ../lib/qt-3.3/bin/findtr
lrwxrwxrwx  1 root root         27 Mar 11 21:17 assistant -> ../lib/qt-3.3/bin/assistant
lrwxrwxrwx  1 root root         21 Mar 11 21:17 uic -> ../lib/qt-3.3/bin/uic
lrwxrwxrwx  1 root root         26 Mar 11 21:21 designer -> ../lib/qt-3.3/bin/designer
Hmmm there has to be a better way. Should I just delete them?
Re-point each and every one, she asked?
[root@bilbo cd /usr/lib
[root@bilbo lib]# ls -lrt
-- snippet --
Code:
lrwxrwxrwx    1 root root       17 Jun  7 17:47 libQtXml.so.4.1 -> libQtXml.so.4.1.5
lrwxrwxrwx    1 root root       17 Jun  7 17:47 libQtXml.so.4 -> libQtXml.so.4.1.5
lrwxrwxrwx    1 root root       18 Jun  7 17:47 libQtTest.so.4.1 -> libQtTest.so.4.1.5
lrwxrwxrwx    1 root root       18 Jun  7 17:47 libQtTest.so.4 -> libQtTest.so.4.1.5
lrwxrwxrwx    1 root root       17 Jun  7 17:47 libQtSql.so.4.1 -> libQtSql.so.4.1.5
lrwxrwxrwx    1 root root       17 Jun  7 17:47 libQtSql.so.4 -> libQtSql.so.4.1.5
lrwxrwxrwx    1 root root       21 Jun  7 17:47 libQtNetwork.so.4.1 -> libQtNetwork.so.4.1.5
lrwxrwxrwx    1 root root       21 Jun  7 17:47 libQtNetwork.so.4 -> libQtNetwork.so.4.1.5
lrwxrwxrwx    1 root root       18 Jun  7 17:47 libQtCore.so.4.1 -> libQtCore.so.4.1.5
lrwxrwxrwx    1 root root       18 Jun  7 17:47 libQtCore.so.4 -> libQtCore.so.4.1.5
Ah Ha! These are library files right? So if I run an ldconfig I should be able to update right?

So replaced qt-3.3 with qt4 in

[root@bilbo qt4]# cd /etc/ld.so.conf.d
[root@bilbo ld.so.conf.d]# vi qt-i386.conf

Replace:
/usr/lib/qt-3.3/lib
With:
/usr/lib/qt4/lib

Then did
[root@bilbo ld.so.conf.d]# ldconfig
[root@bilbo ld.so.conf.d]# qmake -v
Qmake version: 1.07a (Qt 3.3.4)
Qmake is free software from Trolltech AS.
[root@bilbo ld.so.conf.d]# sync
[root@bilbo ld.so.conf.d]# sync
[root@bilbo ld.so.conf.d]# sync
[root@bilbo ld.so.conf.d]# sync
[root@bilbo ld.so.conf.d]# sync
[root@bilbo ld.so.conf.d]# qmake -v
Qmake version: 1.07a (Qt 3.3.4)
Qmake is free software from Trolltech AS.
[root@bilbo ld.so.conf.d]#

----

Where did I go wrong?

---
Oh. I see that qt4 wants to be found in /usr/lib NOT /usr/lib/qt4/bin
Does that make a difference?

----
Nope.

---

Back to

Where did I go wrong?
I suppose I could manually do this. Sigh...

Methinks I'm missing something with ldconfig. This is most likely.
Can you see what?

Many thanks,
alar
 
Old 06-07-2007, 10:45 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
since it seems these packages want to install side by side then somehow they must work independantly.
they are also not compatable in any way so changing links to libs and everything using qt will be broken.

look and see if you don't have some executables somewhere as part of qt4 package called things like
moc-qt4, uic-qt4 and qmake-qt4 and junk like that.
mess with links to these called moc, uic and qmake.
it will be easy enough to put back if you want later.

make sure you don't overwrite your qt3 tools with links to qt4 tools though

Last edited by studioj; 06-07-2007 at 10:47 PM.
 
  


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
how to upgrade from qt3 to qt4 in fc3? dr_zayus69 Linux - Software 1 07-05-2006 02:52 AM
qt3 together with qt4 marekjs Slackware 2 06-28-2006 08:16 AM
qt3 or qt4 crAckZ Programming 1 09-06-2005 06:08 PM
Qt3 SpEcIeS Suse/Novell 3 04-22-2005 07:28 PM
About qt3... LI-6Y LUCY Programming 3 08-28-2003 10:45 AM


All times are GMT -5. The time now is 10:00 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 Google+: linuxquestions
Open Source Consulting | Domain Registration