From: "R.. Kumar 1.9.1 OSX" Date: 2010-08-20T19:38:54+09:00 Subject: RVM macruby install procedure needs improvement I could be doing something wrong, but this is how it went. 1. I try installing "rvm install macruby-head" (I have not yet installed llvm since i am not sure what version to use) 2. I get an error about not having LLVM. I go through source and find a README.rdoc file which gives me the correct LLVM version. ( svn co -r 106781 https://llvm.org/svn/llvm-project/llvm/trunk llvm-trunk) *Now this could have been on the Macruby install page to make things easier*. I install LLVM. (It installs in /usr/local .. i don't have this in path since i use macports) 3. Now the README.rdoc wants me to do "rake" and "sudo rake install". I do rake, but then remember that RVM does not want me to do sudo at all. 4. So I resume: rvm install macruby-head It prompts me for sudo password in order to do a "sudo rake install". Here's the error i get: /Users/rahul/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception) from /Users/rahul/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in `
' (WHy is it complaining about **1.9.1** inside 1.9.2 ???) When i do "sudo rake install" myself, i get the same error. 5. So now I do just "rake install". Seems to go well. installing rdoc installing binary commands installing command scripts installing library scripts installing headers installing manpages installing data files installing extension objects installing extension scripts installing Xcode 3.x templates installing Xcode templates installing samples installing framework /Users/rahul/.rvm/src/macruby-head/lib/fileutils.rb:1420:in `fu_each_src_dest0:': Permission denied - (../../../Library/Frameworks/MacRuby.framework/Versions/Current/usr/bin/macgem, /usr/local/bin/macgem) (Errno::EACCES) from /Users/rahul/.rvm/src/macruby-head/lib/fileutils.rb:342:in `symlink:' from /Users/rahul/.rvm/src/macruby-head/instruby.rb:3:in `
' rake aborted! Command failed with status (1): [./miniruby instruby.rb --make="/usr/bin/ma...] Oops. It needs sudo access, but in sudo access it won't have access to my RVM ruby!!! 6. So now i don't have any executables. I use mdfind and find that these executable seem to be lying around: ls /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/bin/ macgem* macrake* macri* macruby_deploy* macrubyc* rb_nibtool* macirb* macrdoc* macruby* macruby_select* macrubyd* So perhaps I need to just copy these into /usr/local/bin. Or somewhere into RVM. Could someone clarify what i should do now. Where did I go wrong ? Why is rvm install failing ? thanks. -- Posted via http://www.ruby-forum.com/.