Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Nov 04, 2009 3:34 pm 
Offline
Senior Newbie

Joined: Mon Jan 12, 2009 5:01 pm
Posts: 17
OK, I just installed Ruby EE on my new linode.

I am using Ubuntu 9.10 and it didn't have Ruby previously.

I have the following setup as my PATH in ~/.profile (both for my login account AND root)

/opt/ruby-enterprise-1.8.7-2009.10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

When I am root OR my login account (cbmeeks), I can:

ruby -v
at the command line and it works.

However, if I:
sudo ruby -v
I get a command not found?
The same is true for any bin in that /opt/ruby-.../bin folder.

sudo <any other command> works just fine which makes me think the path is not being loaded with SUDO.

I can:
sudo /opt/ruby-enterprise-1.8.7-2009.10/bin/ruby -v
just fine.

Any tips? I've even rebooted the server.

Thanks!

_________________
http://BitCircle.com


Top
   
 Post subject:
PostPosted: Wed Nov 04, 2009 6:22 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Possibly due to the feature of sudo being compiled with either --env_reset or --with-secure-path. You should be able to get around the first with sudo -E (and SETENV in /etc/sudoers), and the latter by adding a line to your .bashrc, such as in this example.


Top
   
 Post subject:
PostPosted: Wed Nov 04, 2009 7:21 pm 
Offline
Senior Newbie

Joined: Mon Jan 12, 2009 5:01 pm
Posts: 17
Thanks. I will give that a shot.

_________________
http://BitCircle.com


Top
   
 Post subject:
PostPosted: Wed Nov 04, 2009 8:35 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
cbmeeks wrote:
http://BitCircle.com


Now *that* is a clean, simple web page design.

James


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 9:00 am 
Offline
Senior Newbie

Joined: Mon Jan 12, 2009 5:01 pm
Posts: 17
lol.

Yeah, sorry. I have several domains. Part of the reason I was having trouble was that I reloaded my linode and decided to setup all of my virtual servers using Sinatra and serve my main app (coming soon) with Rails.

BitCircle.com now points to the correct virtual host. Using Sinatra now. :-)

Pretty sweet actually.

_________________
http://BitCircle.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group