LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Upgrade qt3 -> qt4. Symlinks still point to qt3 (http://www.linuxquestions.org/questions/linux-software-2/upgrade-qt3-qt4-symlinks-still-point-to-qt3-560033/)

alar 06-07-2007 04:48 PM

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

studioj 06-07-2007 09:45 PM

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


All times are GMT -5. The time now is 12:08 PM.