Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up on mac #19

Open
gsambrotta opened this issue Feb 17, 2014 · 2 comments
Open

Set up on mac #19

gsambrotta opened this issue Feb 17, 2014 · 2 comments

Comments

@gsambrotta
Copy link
Member

Since I can't really contribute on Github yet I will open a issue about the step I'm doing to install it on mac.

Mac installation with postgres.app

Requirement:

  • Xcode
  • homebrew

in case you need one:
• brew update
Than run:
• brew install postgresql
and finally:
gem install pg

Now you should be able to run:
bundle
rails s

@carolinagc
Copy link
Contributor

Did you do "gem install pg" or finally did you
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config

to use postgress.app in Mac ?

@gsambrotta
Copy link
Member Author

I did just "gem install pg" but change the directory path is something that you definitively need to do if you are using Mac and postgress.app
I already did it for another project so maybe is the reason why I didn't need it again on my Mac.

Anyway as the postgres.app documentation say:

Go ahead and add the /bin directory that ships with Postgres.app to your PATH (preferably in .profile, .bashrc, .zshrc, or the like to make sure this gets set for every Terminal session):

PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"

Once your path is correctly set up, you should be able to run psql without a host.

I would say you need to run this before "gem install pg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants