osx - Ruby 2.3.0 gem pg version 0.18.4 install error El Capitan -


after "bundle install", keep getting error many times.

errno::eacces: permission denied @ rb_sysopen - /users/daisukeishii/tasca-     io/vendor/bundle/ruby/2.3.0/gems/pg-0.18.4/.gemtest  error occurred while installing pg (0.18.4), , bundler cannot continue. make sure `gem install pg -v '0.18.4'` succeeds before bundling. 
  • gem install pg keeps giving same error -ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15] -psql (postgresql) 9.5.0 -mac el capitan -i checked related posts in stackoverflow not solve this.
  • tried uninstall/install postgresql through brew.
  • tried uninstall/install ruby

do have idea solve this?

i had problems installing pg gem , me did trick:

archflags="-arch x86_64" gem install pg 

however, looking @ error message seems not having write permissions gem directory. maybe have tried install gem root sudo gem install pg , left behind directory under home directory having root owner instead of regular user.

remove directory using:

sudo rm -rf /users/daisukeishii/tascaio/vendor/bundle/ruby/2.3.0/gems/pg-0.18.4 

and try installing again using archflags above.

note post has sort of copy paste problem in path path in example might not correct.


Comments

Popular posts from this blog

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -

javascript - jQuery: Add class depending on URL in the best way -