LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-04-2007, 03:39 AM   #1
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Rep: Reputation: 16
Unable to install QT4+ on Mandriva 2007.0 free


Thanx in advance.
I have tried to install QT4.2.2 on Mandriva 2007 free,but the system shows that it is already installed. But when I start and application that requires QT4+, It doesn't run and sends a message asking for QT4.
Can somebody help me here please? I'd appreciate it.
Thank you again.
 
Old 01-04-2007, 03:47 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Did you install the qt4 devel packages?
 
Old 01-05-2007, 04:23 AM   #3
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
i installed qt4.2.2 and followed all the instructions. but when i got to this:
" In order to use Qt, some environment variables needs to be
extended.

PATH - to locate qmake, moc and other Qt tools

This is done like this:

In .profile (if your shell is bash, ksh, zsh or sh), add the
following lines:

PATH=/usr/local/Trolltech/Qt-4.2.2/bin:$PATH
export PATH
I couldn't find the file .profile. I made a search but nothing.
can somebody help me here?
 
Old 01-05-2007, 05:01 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Mandriva already has qt4 packages in its software repositories, so why don't you use those instead of compiling from source? Search for qt4 in the software installation tool and install the packages you need (remember to also install libqt4-devel if you want to compile apps that reply on qt4).
 
Old 01-05-2007, 05:33 PM   #5
tytower
Member
 
Registered: Jun 2006
Location: Oz
Distribution: Mandriva 10.0,10.1,10.2,2006,Mepis 6.0,Opensuse10.2,Puppy 2.14
Posts: 250

Rep: Reputation: 30
Quote:
Originally Posted by zouzou85
i installed qt4.2.2 and followed all the instructions. but when i got to this:
" In order to use Qt, some environment variables needs to be extended.
PATH - to locate qmake, moc and other Qt tools
This is done like this:
In .profile (if your shell is bash, ksh, zsh or sh), add the
following lines:
PATH=/usr/local/Trolltech/Qt-4.2.2/bin:$PATH
export PATH
I couldn't find the file .profile. I made a search but nothing.
can somebody help me here?
ensure show hidden files is ticked in Konqueror . File is probably .bash_profile
which on my Mepis leads to .bash_rc. Probably put it in here
What you are doing is adding QT4's path to the existing $PATH variable and the machine should now find your QT4 fies

Last edited by tytower; 01-05-2007 at 05:43 PM.
 
Old 01-05-2007, 06:31 PM   #6
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
The software installation tool was the first place I looked at, but i didn't find any Qt4. I only found libqt4.
I would appreciate it if you tell me where to find the RPM of QT4.
Thank you so much for your help

Last edited by zouzou85; 01-05-2007 at 06:33 PM.
 
Old 01-05-2007, 06:44 PM   #7
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tytower
ensure show hidden files is ticked in Konqueror . File is probably .bash_profile
which on my Mepis leads to .bash_rc. Probably put it in here
What you are doing is adding QT4's path to the existing $PATH variable and the machine should now find your QT4 fies

Thank you, It is actually .bash_profile. I was looking for just .profile.
the path in .bash_profile is as follows:

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

Should i write it as this:

PATH=$PATH:$HOME/bin /usr/local/Trolltech/Qt-4.2.2/bin:$PATH

export PATH
unset USERNAME

Or do i have to do it differently?
Thanx again.

Last edited by zouzou85; 01-05-2007 at 06:52 PM.
 
Old 01-06-2007, 03:02 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by zouzou85
The software installation tool was the first place I looked at, but i didn't find any Qt4. I only found libqt4.
I would appreciate it if you tell me where to find the RPM of QT4.
Thank you so much for your help
The packages are in the Mandriva software repos (in the repo called main). I have just searched for qt4 and found packages such as libqt4, qt4-common, qt4-assistant, qt-designer etc.
 
Old 01-06-2007, 01:02 PM   #9
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by reddazz
The packages are in the Mandriva software repos (in the repo called main). I have just searched for qt4 and found packages such as libqt4, qt4-common, qt4-assistant, qt-designer etc.
I did just that, but the machine uses qt3 instead of qt4. And when I use an externalRPM (from other websites) it says that it is installed.

Is it anything i am doing wrong?
 
Old 01-07-2007, 03:33 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by zouzou85
I did just that, but the machine uses qt3 instead of qt4. And when I use an externalRPM (from other websites) it says that it is installed.

Is it anything i am doing wrong?
If its a qt3 app, then it will look for qt3 and not qt4. Most KDE apps still use qt3 instead of qt4. Can you give an example of the apps you are trying to install?
 
Old 01-07-2007, 07:33 AM   #11
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by reddazz
If its a qt3 app, then it will look for qt3 and not qt4. Most KDE apps still use qt3 instead of qt4. Can you give an example of the apps you are trying to install?
I am trying to install Vivia and Manslide from www.kde-apps.org. they both requires QT4+. I wanted to say that even after installing the packages you told me to, the machine is still using qt3 instead of qt4.
sorry for the confusion.
thanx
 
Old 01-07-2007, 02:55 PM   #12
tytower
Member
 
Registered: Jun 2006
Location: Oz
Distribution: Mandriva 10.0,10.1,10.2,2006,Mepis 6.0,Opensuse10.2,Puppy 2.14
Posts: 250

Rep: Reputation: 30
PATH=$PATH:/bin /usr/local/Trolltech/Qt-4.2.2/bin
export PATH

PATH picks up the old path
: appends what follows to path
/bin /usr/local/Trolltech/Qt-4.2.2/bin should be where it is installed but check this is where it is in fact put. I thought /local/ had been dropped
 
Old 01-07-2007, 08:52 PM   #13
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Original Poster
Rep: Reputation: 16
thanx alot Tytower. it worked finally.
thanks again
 
  


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 install and run mysql in mandriva 2007 free m22linux Mandriva 13 02-18-2007 07:47 PM
Problems installing kdm with fresh install of Mandriva 2007.0 Free NobeyamaGP Mandriva 5 01-29-2007 02:48 PM
Mandriva 2007 Free won't install GRUB FlamingBee Mandriva 6 01-03-2007 03:52 PM
"Unable to mount compressed loopback" error during installation of Mandriva 2007 Free keith11 Mandriva 1 12-29-2006 02:30 PM
pcmcia and mandriva 2007 free bungle3 Mandriva 2 10-16-2006 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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