REE and ruby PATH problem

17 views
Skip to first unread message

tispratik

unread,
Jun 7, 2010, 2:19:08 AM6/7/10
to Ruby on Rails: Talk
I have ruby normal edition installed in /usr/bin
REE in /opt/ruby-enterprise-1.8.7-2010.01/bin
I have all my application gems installed in /opt/ruby-
enterprise-1.8.7-2010.01/bin
but still when i run any gem related command, say "sudo bluepill
status", it looks for the executable in normal ruby edition instead of
REE

Any ideas?

ubuntu > echo $PATH
/opt/ruby-enterprise-1.8.7-2010.01/bin
/usr/local/sphinx/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin

ubuntu > bluepill
You must run bluepill as root.

ubuntu > sudo bluepill status
sudo: bluepill: command not found

ubuntu > which bluepill
bluepill is /opt/ruby-enterprise-1.8.7-2010.01/bin/bluepill

ubuntu > whereis bluepill
bluepill: /opt/ruby-enterprise-1.8.7-2010.01/bin/bluepill

ubuntu > ruby -v
ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770,
Ruby Enterprise Edition 2010.01

ubuntu > rails -v
Rails 2.3.5

ubuntu > gem -v
1.3.5


ubuntu > gem list
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
blankslate (2.1.2.3)
bluepill (0.0.38)
daemons (1.0.10)
eventmachine (0.12.10)
fastthread (1.0.7)
mysql (2.8.1)
passenger (2.2.14)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
state_machine (0.9.2)
thin (1.2.7)

ubuntu > /usr/bin/gem list
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
rubygems-update (1.3.7)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

Ivan Nastyukhin

unread,
Jun 7, 2010, 2:24:13 AM6/7/10
to rubyonra...@googlegroups.com
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /usr/bin/ruby
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/gem /usr/bin/gem
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rake /usr/bin/rake


Ivan Nastyukhin






--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


tispratik

unread,
Jun 7, 2010, 2:49:22 AM6/7/10
to Ruby on Rails: Talk
more information:

ubuntu > gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux]
- INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/lib/
ruby/gems/1.8
- RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
- EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8
- /home/pratik/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-ri --no-rdoc"
- :sources => ["http://gems.rubyforge.org", "http://
gems.github.com"]
- REMOTE SOURCES:
- http://gems.rubyforge.org
- http://gems.github.com

tispratik

unread,
Jun 7, 2010, 2:56:29 AM6/7/10
to Ruby on Rails: Talk
Thanks Ivan, but it still dosent work :(

ubuntu > sudo bluepill status
sudo: bluepill: command not found

-Pratik

On Jun 7, 1:24 am, Ivan Nastyukhin <dieinz...@me.com> wrote:
> sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /usr/bin/ruby
> sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/gem /usr/bin/gem
> sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rake /usr/bin/rake
>
> Ivan Nastyukhin
> dieinz...@me.com
> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.> To post to this group, send email torubyonr...@googlegroups.com.> To unsubscribe from this group, send email torubyonrails-t...@googlegroups.com.

tispratik

unread,
Jun 7, 2010, 3:16:11 AM6/7/10
to Ruby on Rails: Talk
Also notice that the gem environment does not reflect the REE version
of Ruby,

RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux]

Frederick Cheung

unread,
Jun 7, 2010, 4:02:37 AM6/7/10
to Ruby on Rails: Talk


On Jun 7, 7:19 am, tispratik <tispra...@gmail.com> wrote:
> I have ruby normal edition installed in /usr/bin
> REE in /opt/ruby-enterprise-1.8.7-2010.01/bin
> I have all my application gems installed in /opt/ruby-
> enterprise-1.8.7-2010.01/bin
> but still when i run any gem related command, say "sudo bluepill
> status", it looks for the executable in normal ruby edition instead of
> REE
>
> Any ideas?
>
sudo will set up its own environment (including its own PATH). You
should be able to set things up so that it includes /opt/ruby-
enterprise-1.8.7-2010.01/bin though

Fred

Sav

unread,
Jun 7, 2010, 2:34:17 AM6/7/10
to Ruby on Rails: Talk
try check
sudo echo $PATH
sudo which bluepill

firman syah

unread,
Jun 7, 2010, 2:59:17 AM6/7/10
to rubyonra...@googlegroups.com
sudo /opt/ruby-enterprise-1.8.7-2010.01/bin/bluepill

To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.

Sergey Varaksin

unread,
Jun 7, 2010, 3:39:27 AM6/7/10
to Ruby on Rails: Talk
maybe `sudo echo $PATH`

tispratik

unread,
Jun 7, 2010, 10:43:34 AM6/7/10
to Ruby on Rails: Talk
ubuntu > whereis gem
gem: /usr/bin/gem1.8 /usr/bin/gem /opt/ruby-enterprise-1.8.7-2010.01/
bin/gem

As Ivan suggested, i think its a rubygems problem. I havent installed
rubygems in the REE. Currently it is installed only in normal ruby.
I will install rubygems in REE and uninstall from normal ruby and then
check. Basically keeping only REE.

Frederick Cheung

unread,
Jun 7, 2010, 11:04:38 AM6/7/10
to Ruby on Rails: Talk
The REE installer installs rubygems for you (and your whereis output
shows that)

Fred
Reply all
Reply to author
Forward
0 new messages