Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

rake is using default ruby on Mountain Lion #35

Open
pencilcheck opened this issue May 16, 2013 · 2 comments
Open

rake is using default ruby on Mountain Lion #35

pencilcheck opened this issue May 16, 2013 · 2 comments

Comments

@pencilcheck
Copy link

I am using ruby from homebrew, but during the task, it says there is no xcodeproj gem from system built ruby gem; however, I have prepand /usr/local/bin at the beginning of my PATH. Is there a way to use homebrew ruby from the correct path instead of the system ruby?

@charlescui
Copy link

+1

I don't know how to rake this project.

My computer show this error.

saimatoMacBook-Pro:mobiruby-ios cuizheng$ gem list|grep -i nokogiri
nokogiri (1.5.9, 1.5.6, 1.5.5, 1.5.0)
saimatoMacBook-Pro:mobiruby-ios cuizheng$ GEM_HOME=/Library/Ruby/Gems/1.8 GEM_PATH=/Library/Ruby/Gems/1.8 sudo /usr/bin/gem install nokogiri rake
Password:
ERROR:  Error installing nokogiri:
    nokogiri requires Ruby version >= 1.9.2.
Successfully installed rake-10.1.0
1 gem installed
saimatoMacBook-Pro:mobiruby-ios cuizheng$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]

@charlescui
Copy link

@pencilcheck

I fix the error.

Change bin/build-exports.rb to your local ruby and gem path.

saimatoMacBook-Pro:mobiruby-ios cuizheng$ cat bin/build-exports.rb

#!/Users/cuizheng/.rvm/rubies/ruby-1.9.3-p194/bin/ruby

ENV['GEM_HOME'] = ENV['GEM_PATH'] = "/Users/cuizheng/.rvm/gems/ruby-1.9.3-p194"

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

No branches or pull requests

2 participants