Pascal Friederich
2007-Jun-04 12:26 UTC
can''t start script/server as other user than root
hi, iam on gentoo linux since a few weeks. today i checked out a ror project and wanted to start the webbrick server. when i "ruby script/server" with another user than "root" it tells me: "./script/../config/boot.rb:18:in ''require'' : no such file to load -- rubygems (LoadError)" as root everything works fine. iam stuck... :( oh and another problem, when i just try "script/server" without "ruby" in front of the command it tells me "bash: script/server: /usr/bin/env: bad interpreter: permission denied" any ideas? :) Pascal Friederich --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What do you get from (first as root, then as pascalf - or any other user) which ruby ls -l `which ruby` Is root using the same ruby as your users? Do other users have permission to execute ruby? - James Moore --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pascal Friederich
2007-Jun-04 13:24 UTC
Re: can''t start script/server as other user than root
hi james, as root: laptux mopslunch # which ruby /usr/bin/ruby laptux mopslunch # ls -l /usr/bin/ruby lrwxrwxrwx 1 root root 6 May 31 17:45 /usr/bin/ruby -> ruby18 as user: paukul@laptux ~/Rails_Workspaces/mopslunch $ which ruby /usr/local/bin/ruby paukul@laptux ~/Rails_Workspaces/mopslunch $ ls -l /usr/local/bin/ruby -rwxr-xr-x 1 root root 1322089 31. Mai 16:19 /usr/local/bin/ruby ok i see, two different versions?! but.. why? and how to fix? thanks in advance, pascal On 4 Jun., 15:11, "James Moore" <jamesthepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What do you get from > > (first as root, then as pascalf - or any other user) > which ruby > ls -l `which ruby` > > Is root using the same ruby as your users? Do other users have permission > to execute ruby? > > - James Moore--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pascal Friederich
2007-Jun-04 15:16 UTC
Re: can''t start script/server as other user than root
i deleted /usr/local/bin/ruby and created a symlink from /usr/bin/ruby to /usr/local/bin/ruby it fixed the problem :) thanks On 4 Jun., 15:24, Pascal Friederich <pau...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> hi james, > > as root: > laptux mopslunch # which ruby > /usr/bin/ruby > laptux mopslunch # ls -l /usr/bin/ruby > lrwxrwxrwx 1 root root 6 May 31 17:45 /usr/bin/ruby -> ruby18 > > as user: > paukul@laptux ~/Rails_Workspaces/mopslunch $ which ruby > /usr/local/bin/ruby > paukul@laptux ~/Rails_Workspaces/mopslunch $ ls -l /usr/local/bin/ruby > -rwxr-xr-x 1 root root 1322089 31. Mai 16:19 /usr/local/bin/ruby > > ok i see, two different versions?! but.. why? and how to fix? > > thanks in advance, > > pascal > > On 4 Jun., 15:11, "James Moore" <jamesthepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > What do you get from > > > (first as root, then as pascalf - or any other user) > > which ruby > > ls -l `which ruby` > > > Is root using the same ruby as your users? Do other users have permission > > to execute ruby? > > > - James Moore--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---