3

I was doing an exercise from the ruby on rails tutorial which involves installing postgresql. Following the instructions from a rails cast linked in the tutorial, I did

brew install postgresql

This errored. On searching online, found a thread on a forum which suggested doing

brew unlink ossp-uuid && brew link ossp_uuid

I don't know what this is achieving. The command failed (I think the first part succeeded). The error:

Could not symlink file: /usr/local/Cellar/ossp-uuid/1.6.2/share/man/man3/uuid.3 /usr/local/share/man/man3 is not writable. You should change its permissions.

What is this about? Why do we need to create this symbolic link?

Thanks in advance!

3 Answers 3

6

You don't need sudo to work with brew read here.

The main problem is your own permission on /usr/local folder to execute these actions.Try this (make sure that you login as administrator role):

sudo chmod go+w /usr/local

Then try again:

brew unlink ossp-uuid && brew link ossp-uuid

and:

brew install postgresql

Sign up to request clarification or add additional context in comments.

Comments

-2

You likely need to use sudo before the command.

Alternatively, postgres can be installed from an installer from their site: Mac OS X installer

2 Comments

Did not try sudo. But used the installer instead. That worked. Thanks!
You shouldn't use sudo to brew install with Homebrew.
-2

Postgresql is already installed on Lion.

2 Comments

This is true for OS X Lion Server, but not for Lion client.
Yea, but I wanted to install a newer version.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.