ruby on rails - Bundle install issue - gemspecs installed read only root - and then cannot be read by bundler? -


i'm trying run "bundle install" install required gems rails project. wasn't issue - new machine i'm working on... i've been installing ruby (1.9.3 545) rails etc. , @ point of bundle install.

some sample output below (some gemspecs snipped out keep quote short!):

[shall@mars2-stream14 qa_web]$ bundle install /usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>': seems ruby installation missing psych (for yaml output). eliminate warning, please install libyaml , reinstall ruby. fetching gem metadata https://rubygems.org/......... fetching additional metadata https://rubygems.org/.. using rake 10.2.2 using i18n 0.6.9 installing json 1.8.1  errno::eacces: permission denied - /usr/local/lib/ruby/gems/1.9.1/specifications/json-1.8.1.gemspec error occurred while installing minitest (5.3.2), , bundler cannot continue. make sure `gem install minitest -v '5.3.2'` succeeds before bundling. [shall@mars2-stream14 qa_web]$ ls -l /usr/local/lib/ruby/gems/1.9.1/specifications/ total 44 -rw-r--r-- 1 root root  154 apr 14 11:05 bigdecimal-1.1.0.gemspec -rw-r--r-- 1 root root  142 apr 14 11:05 json-1.5.5.gemspec -rw------- 1 root root 1355 apr 14 12:55 json-1.8.1.gemspec -rw-r--r-- 1 root root  150 apr 14 11:05 minitest-2.5.1.gemspec -rw-r--r-- 1 root root  154 apr 14 11:05 rdoc-3.9.5.gemspec 

clearly (or @ least, understand it) bundler sudoing create gemspec files - creating them 600 permissions - trying read these files subsequent installs - , failing. can sudo chmod 644 files... try again next step - cannot right?

anyone care suggest why files installed 600 bundler?

i've seen similar issues on - seem relating folder permissions, , not being able create file. can create them - can't read them afterwards!

thanks!

you need pay attention on line

make sure `gem install minitest -v '5.3.2'` succeeds before bundling 

so install gem first, run command

gem install minitest -v '5.3.2' 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -