Macos – Qmake installed but not linked – Using Brew – Mac

homebrewmacosqmakeqt

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.

Best Answer

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.