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!

Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
septerr
  • 6,445
  • 9
  • 50
  • 73

3 Answers3

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

Fabian Zeindl
  • 5,860
  • 8
  • 54
  • 78
anguu
  • 121
  • 2
  • 5
-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

wadesworld
  • 13,535
  • 14
  • 60
  • 93
-2

Postgresql is already installed on Lion.

Idaho
  • 1,355
  • 1
  • 9
  • 10