Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

brew link mysql did not complete

For some some reason brew does not link mysql and it complains about permission. I chmod the folder to 777 but I am still having the same issues

  laptop$ brew install mysql  

Error:

 mysql-5.5.27 already installed, it's just not linked   laptop$ brew link mysql   Linking /usr/local/Cellar/mysql/5.5.27... Warning: Could not link mysql.  

Unlinking...

    Error:     Could not symlink file: /usr/local/Cellar/mysql/5.5.27/lib/plugin     /usr/local/lib is not writable. You should change its permissions. 
like image 517
tawheed Avatar asked Oct 10 '12 05:10

tawheed


2 Answers

I figured what the problem was. It was issues with premission and I basically did this

sudo chown -R $(whoami) /usr/local/lib/ 
like image 100
tawheed Avatar answered Oct 14 '22 18:10

tawheed


I believe You should:

sudo chmod 775 /usr/local/lib/ 

and make sure You are member of the file's group.

like image 26
Klāvs Taube Avatar answered Oct 14 '22 20:10

Klāvs Taube