LinuxQuestions.org
Review your favorite Linux distribution.
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 12-07-2006, 04:48 PM   #1
emiphiste
LQ Newbie
 
Registered: Aug 2005
Location: Baltimore, Maryland
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22

Rep: Reputation: 15
qmake: command not found after apparently flawless Qt install


I've just recently installed qt-3.3 in order to run qmake on the raconfig2500.pro file for the rt2500 driver (obtained from serialmonkey), but even though the ./configure, make and make install steps appeared to run flawlessly for Qt, I'm still getting this message:

Code:
qmake -o Makefile raconfig2500.pro
bash: qmake: command not found
Thinking it might be looking for qmake in the wrong place, I put a symlink from /usr/home/<my username>/qt/qmake/qmake to /usr/bin/qmake. Nope. Still can't find the qmake command.

I have a symlink from /usr/home/<my username>/qt to /usr/local/qt.

I have the following established in .profile:
Code:
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export QTDIR PATH MANPATH LD_LIBRARY_PATH
Is there something I need to edit or change so the qmake command will be recognised? Any help would be greatly appreciated.
 
Old 12-08-2006, 10:35 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Does this work?
Code:
/usr/home/<my username>/qt/qmake/qmake/qmake -o Makefile raconfig2500.pro
 
Old 12-08-2006, 10:43 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
Quote:
Thinking it might be looking for qmake in the wrong place, I put a symlink from /usr/home/<my username>/qt/qmake/qmake to /usr/bin/qmake. Nope. Still can't find the qmake command.
The correct shoule be
Code:
ln -s /usr/home/<my username>/qt/bin/qmake to /usr/bin/qmake
if you've installed qt in your homedir.
To see if qmake is in your PATH, run:
Code:
which qmake
To see your PATH, run:
Code:
echo $PATH
 
Old 12-08-2006, 04:07 PM   #4
emiphiste
LQ Newbie
 
Registered: Aug 2005
Location: Baltimore, Maryland
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the responses.

Arow - I tried running the directory as the command itself, and that didn't work. Thank you, though.

Bathory - Here are the results of your suggestion:

Code:
[root@localhost emiphiste]# rm -rf /usr/bin/qmake
[root@localhost emiphiste]# ln -s /usr/home/emiphiste/qt/bin/qmake usr/bin/qmake
ln: creating symbolic link `usr/bin/qmake' to `/usr/home/emiphiste/qt/bin/qmake': No such file or directory
[root@localhost emiphiste]# which qmake
/usr/bin/
which: no qmake in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/emiphiste/bin)
[root@localhost emiphiste]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/emiphiste/bin
The thing is, I can't understand what it's telling me. I apologise. If someone could clarify, that would be wonderful.
 
Old 12-11-2006, 03:24 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
Quote:
ln: creating symbolic link `usr/bin/qmake' to `/usr/home/emiphiste/qt/bin/qmake': No such file or directory
What is telling you, is that there is no such file, or directory, which means that you didn't install qt in you homedir. Also the output of the which commands means that there is no qmake in your PATH. That's why you cannot
How did you installed qt? Did you compiled it from source, or you used a package from your distro?
 
Old 12-11-2006, 07:14 PM   #6
emiphiste
LQ Newbie
 
Registered: Aug 2005
Location: Baltimore, Maryland
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22

Original Poster
Rep: Reputation: 15
I compiled it from source, using the instructions within the install file. Kinda sad that I can mess something up even with explicitly written instructions

I'm trying to get it to work on Fedora 5, so I did try downloading the rpm first (I have to download it onto a flash drive and move between a computer that has internet and my own - I'm so used to using yum that it hurts), but that's what initially yielded the qmake: command not found. I thought doing it from source might give me a little more luck.

Guess it's back to the drawing board for me. :P
 
Old 12-13-2006, 07:16 PM   #7
livewire98801
Member
 
Registered: Jun 2004
Location: Seattle, WA
Distribution: Fedora 3/5, Mdk 10, FlavorOfTheWeek
Posts: 77

Rep: Reputation: 15
Quote:
Originally Posted by emiphiste
I compiled it from source, using the instructions within the install file. Kinda sad that I can mess something up even with explicitly written instructions

I'm trying to get it to work on Fedora 5, so I did try downloading the rpm first (I have to download it onto a flash drive and move between a computer that has internet and my own - I'm so used to using yum that it hurts), but that's what initially yielded the qmake: command not found. I thought doing it from source might give me a little more luck.

Guess it's back to the drawing board for me. :P
I shoulda never gotten you started on Linux, shoulda installed WinXP on that sad little box

Which didn't seem to be able to find qmake, did you run a 'locate' and see if there are any references to it at all? Maybe you had deeper problems installing than you thought. . .

For the record, my (FC5) server has qt but doesn't have qmake:
Code:
[livewire@lwserver ~]$ locate qmake
[livewire@lwserver ~]$ rpm -qa | grep qt
qt-3.3.7-0.1.fc5

I found this site when I did a google for qmake:
http://doc.trolltech.com/3.0/qmake-manual-2.html
Which indicates to me that you have to compile it from source.

This much you knew. My theory is that you need to remove the RPM _first_ then build qt.

Use "rpm -e --nodeps qt" if it gives you any grief.

Let me know how this goes, I don't want to break my server if it doesn't work ;-)
 
  


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
Help with 'qmake'; install a wireless driver jimbrook Linux - Wireless Networking 4 05-10-2005 05:03 PM
Help with 'qmake'; install a wireless driver jimbrook SUSE / openSUSE 2 05-09-2005 04:10 PM
Help with 'qmake'; install a wireless driver jimbrook Linux - Software 1 05-09-2005 12:37 PM
qmake not found ??? rooman Linux - General 0 11-01-2004 06:04 AM
qmake not found Mestax Linux - Newbie 2 09-06-2003 12:42 PM

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

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