LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-11-2006, 03:49 AM   #1
Paulsrud
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Rep: Reputation: 15
Problem with QT 4 installation


I use Ubuntu dapper, and I need QT 4 in order to install another application I want. I tried
Code:
qmake -v
which returned nothing. So I downloaded qt-x11-opensource-src-4.1.4 from their website. unpacked and did the usual

Code:
./configure
make
make install
that took alot of time. and now for the problems.
I tried
Code:
qmake -v
,
and tried to install the other app with qmake, but It doesn't recognize the qmake command.
Install says I need to extend environment variables.
So, I added
Code:
PATH=/usr/local/Trolltech/Qt-4.1.4/bin:$PATH
            export PATH
To /etc/.profile.
And tried again.
But no luck there either. Now I don't know what to do really.
I have also tried to apt-get it instead but couldn't find it., and searched for a answers
Help please.
 
Old 08-11-2006, 04:02 AM   #2
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
Quote:
Originally Posted by Paulsrud
So, I added
Code:
PATH=/usr/local/Trolltech/Qt-4.1.4/bin:$PATH
            export PATH
To /etc/.profile.
The correct file is /etc/profile (without the dot). For testing purposes you can also execute the named commands on the console (in which case they only effect the console they were executed in).

Also, what do you mean by qmake -v not returning anything and your app not recognizing qmake? Please post the exact commands you used and the ouput you get.
 
Old 08-11-2006, 06:57 AM   #3
Paulsrud
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by psisquare
The correct file is /etc/profile (without the dot). For testing purposes you can also execute the named commands on the console (in which case they only effect the console they were executed in).

Also, what do you mean by qmake -v not returning anything and your app not recognizing qmake? Please post the exact commands you used and the ouput you get.
Sorry It was infact /etc/profile without dot i used, I put the PATH line in there as root. but I don't if it did it.
With that done, trying to install a app as it says i should with qmake, or just typing qmake it looks like this.

Code:
qmake
bash: qmake: command not found
 
Old 08-11-2006, 07:52 AM   #4
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
Have you checked that /usr/local/Trolltech/Qt-4.1.4/bin actually exists?
Also try find /usr/local -name qmake; if that turns up another directory, put that one into /etc/profile instead of the above.

If the find command doesn't - well - find anything, qt isn't installed properly. At least, not under /usr/local.
In that case, I'd suggest installing QT via Ubuntu's package manager. You have to activate the universe repository; the package you need is libqt4-dev.
 
Old 08-11-2006, 08:30 AM   #5
Paulsrud
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Usr/local/Trolltech/Qt-4.1.4/bin exist, but does not contain any file named qmake. Which it should, right? find /usr/local -name qmake didn't get any results.
Can i just try to reinstall it using synaptic, do i need to delete previous installation?
 
Old 08-11-2006, 09:31 AM   #6
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
Quote:
Originally Posted by Paulsrud
Can i just try to reinstall it using synaptic, do i need to delete previous installation?
Well, technically you don't have to delete the previous installation, but for the sake of keeping the system clean (and not wasting disk space) I'd remove /usr/local/Trolltech as well as the entry in /etc/profile.
 
Old 08-11-2006, 06:03 PM   #7
Paulsrud
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Thank you very much. Now it works.
 
  


Reply



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
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 10:32 PM
Installation problem mocuZ Linux - Software 1 07-23-2006 02:54 AM
Installation problem manomohan Fedora 3 09-08-2005 01:02 AM
Installation Problem anzan Linux - Newbie 1 05-15-2004 07:29 AM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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