ruby - fork: Resource temporarily unavailable when calling rvm from a shell script, but rvm works fine by itself -
i want switch between different projects, , 1 part of changing rubies , gemsets via rvm
. rvm works great me itself, when put call shell script, get:
fork: resource temporarily unavailable
here's output rvm info. let me know if there's other info can give useful.
$ rvm info ruby-1.9.2-p136@pax-arachnae: system: uname: "darwin savoy.local 10.6.0 darwin kernel version 10.6.0: wed nov 10 18:13:17 pst 2010; root:xnu-1504.9.26~3/release_i386 i386" bash: "/bin/bash => gnu bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)" rvm: version: "rvm 1.0.9 wayne e. seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" ruby: interpreter: "ruby" version: "1.9.2p136" date: "2010-12-25" platform: "x86_64-darwin10.6.0" patchlevel: "2010-12-25 revision 30365" full_version: "ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]" homes: gem: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae" ruby: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136" binaries: ruby: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136/bin/ruby" irb: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136/bin/irb" gem: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136/bin/gem" rake: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae/bin/rake" environment: path: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae/bin:/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@global/bin:/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136/bin:/users/rfzabick/.rvm/bin:/usr/local/bin:/applications/emacs.app/contents/macos:/applications/macvim.app/contents/macos:/usr/local/mysql/bin:/developer/usr/bin:/users/rfzabick/.ec2/ec2-api-tools-1.3-62308/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/x11/bin:/applications/google chrome.app/contents/macos" gem_home: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae" gem_path: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae:/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@global" bundle_path: "/users/rfzabick/.rvm/gems/ruby-1.9.2-p136@pax-arachnae" my_ruby_home: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136" irbrc: "/users/rfzabick/.rvm/rubies/ruby-1.9.2-p136/.irbrc" rubyopt: "" gemset: "pax-arachnae"
i use rvm in shell scripts , works fine. 1 thing might explain why you're unable to, version old. current version 1.2.8, , you're on 1.0.9.
rvm updates often, it's idea update every couple weeks @ least. in current rvm we'd use rvm head
update, i'm not sure same in 1.0.9. if not try rvm update
.
Comments
Post a Comment