qmake: command not found after apparently flawless Qt install
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22
Rep:
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.
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:
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22
Original Poster
Rep:
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.
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?
Distribution: Fedora Core 5, Ubuntu 6.06 (Breezy), testing Solaris 10
Posts: 22
Original Poster
Rep:
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.