RubyGems & RUBY EXECUTABLE

79 views
Skip to first unread message

Christian Fürst

unread,
Nov 9, 2009, 8:46:45 AM11/9/09
to rubyonra...@googlegroups.com
Hi folks,

I Have a problem depending on RubyGems.

I have installed ruby 1.8.7 with macports.

which ruby
/opt/local/bin/ruby

ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]

Now my rubygems says:

which gem
/usr/bin/gem

gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287)
[universal-darwin9.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/fuerst/.gem/ruby/1.8
-
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/


so it still holds the default ruby by osx in RUBY EXECUTABLE path. How
can i change this path?
However when i select this "ruby 1.8.7" platform in netbeans project
config for a RailsApp it says:
<RubyGems are not installed for this platform>

i think im doin something horribly wrong. Please Help me :-)

Thanx!
--
Posted via http://www.ruby-forum.com/.

Frederick Cheung

unread,
Nov 9, 2009, 9:04:58 AM11/9/09
to Ruby on Rails: Talk


On Nov 9, 1:46 pm, Christian Fürst <rails-mailing-l...@andreas-s.net>
wrote:

> so it still holds the default ruby by osx in RUBY EXECUTABLE path. How
> can i change this path?
> However when i select this "ruby 1.8.7" platform in netbeans project
> config for a RailsApp it says:
> <RubyGems are not installed for this platform>
>
> i think im doin something horribly wrong. Please Help me :-)
>

You have 2 different ruby installs, but only the system provided one
has rubygems installed. Since your two installs are distinct you need
to install rubygems in your macports installed one too.

Fred
> Thanx!
> --
> Posted viahttp://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages