Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qmake installed but not linked - Using Brew - Mac

I have installed Qmake using brew.

brew install qt

The results which the terminal brings is:

Warning: qt-4.8.6 already installed, it's just not linked

This is a problem with brew to install correct the things? because I am having the same "not linked" problem with PostgreSQL.

Thks

I found the problem:
The Brew can't write to the folder /usr/local/lib/
So I used the command: sudo chown -R $USER /usr/local/lib

I found a similar error here: Brew doctor says: "Warning: /usr/local/include isn't writable."
But this problem was with another folder permission.

like image 949
burunoh Avatar asked Jul 01 '14 13:07

burunoh


People also ask

Where is QMake installed Mac?

Qmake is at /usr/local/opt/qt/bin .

Where is QT installed Mac?

By default, Qt is configured for installation in the /usr/local/Trolltech/Qt-4.8. 5 directory, but this can be changed by using the -prefix option. Type ./configure -help to get a list of all available options.


1 Answers

The Brew can't write to the folder

/usr/local/lib/

So I used the command:

sudo chown -R $USER /usr/local/lib

After need uninstall and install qt again. (If you run reinstall the problem will continuous)

brew uninstall qt

brew install qt

I found a similar error here: Brew doctor says: “Warning: /usr/local/include isn't writable.” But this problem was with another folder permission.

like image 78
burunoh Avatar answered Oct 11 '22 16:10

burunoh