[LRUG] Ruby environment under Solaris

Riccardo Tacconi rtacconi at gmail.com
Mon Mar 21 09:05:23 PDT 2011


Thank you Jared,

About the user's gem directory (without using sudo) the sys admin suggested:

  I’ve created /gems with all the current gems in it.

  Try setting up

  ENV['GEM_PATH'] = '/gems/1.8’

 On your apps and

 export GEM_PATH=/gems/1.8


Exporting an environment path in a Rails app? I have never seen something
like that but the idea, in the end, it is to use a path where I have
permissions. Of course I need sudo to update Passenger and MySql (although
they might be stored in /gems) too.


On 21 March 2011 16:53, Jared Patterson <Jared.Patterson at betfair.com> wrote:

> Hey Riccardo,
>
>
>
> To allow you to update your own gems using sudo, just ask your admin to add
> something like the following into ‘/etc/sudoers’, which is based on your
> username:
>
>
>
> riccardo  ALL=(ALL) NOPASSWD: /usr/bin/gem *
>
>
>
> Ofcourse, being Solaris, you will need to check where the gem binary
> resides, (which gem) should do the trick. Also, if sudo was installed with
> the solaris package, the sudoers file is likely to be in
> ‘/opt/sfw/etc/sudoers’.
>
>
>
> Incase you cant locate it, trying using truss to find it (as root):
>
>
>
> truss –o /tmp/truss.out sudo ls
>
> grep sudoers /tmp/truss.out
>
>
>
> you should see something like:
>
> open("/opt/sfw/etc/sudoers", O_RDONLY) = 4
>
>
>
>
>
> Cheers
>
>
>
> *Jared Patterson*
>
> Unix Engineer
>
> IS Unix Frontend – Product Delivery
>
>
>
> Office: +44 (0) 20 8834 6506
>
> Yahoo IM: patterson.jared84
>
> *Betfair. The World’s Biggest Betting Community.*
>
> Betfair Limited | Winslow Road | Hammersmith Embankment | London | W6 9HP
>
> Registered in England and Wales under company number 5140986
>
>
>
>
>
>
>
>
>
>
>
> *From:* chat-bounces at lists.lrug.org [mailto:chat-bounces at lists.lrug.org] *On
> Behalf Of *Riccardo Tacconi
> *Sent:* 21 March 2011 15:33
> *To:* London Ruby Users Group
> *Subject:* [LRUG] Ruby environment under Solaris
>
>
>
> Hi,
>
> I am not the sys admin but a developer having my apps in a Solaris
> environment without root privileges. Now we have a new server, but in the
> previous one the admin install multiruby and I was able to update the gems
> and even update Passenger and Mysql gem via sudo. In the new environment
> there is not multiruby and not the same sys admin and I would like to be
> able to manage my gems. To you have any suggestions. I know about rvm (I use
> it in my Mac) but it has issues on Solaris since it uses GNU commands. Do
> you have any simple solution, easy to configure that might work under
> Solaris?
>
> --
> Riccardo Tacconi
> Ruby on Rails and PHP development - System Administration
> VIRTUELOGIC LIMITED
>
> http://github.com/rtacconi
> http://riccardotacconi.blogspot.com
> http://twitter.com/rtacconi
> http://www.linkedin.com/in/riccardotacconi
>
> ________________________________________________________________________
> In order to protect our email recipients, Betfair Group use SkyScan from
> MessageLabs to scan all Incoming and Outgoing mail for viruses.
>
> ________________________________________________________________________
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>


-- 
Riccardo Tacconi
Ruby on Rails and PHP development - System Administration
VIRTUELOGIC LIMITED

http://github.com/rtacconi
http://riccardotacconi.blogspot.com
http://twitter.com/rtacconi
http://www.linkedin.com/in/riccardotacconi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20110321/435ae5dc/attachment-0003.html>


More information about the Chat mailing list