Forum: Ruby on Rails can't start script/server as other user than root

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pascal F. (Guest)
on 2007-06-04 16:27
(Received via mailing list)

iam on gentoo linux since a few weeks. today i checked out a ror
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 F.
James M. (Guest)
on 2007-06-04 17:12
(Received via mailing list)
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
to execute ruby?

 - James M.
Pascal F. (Guest)
on 2007-06-04 17:24
(Received via mailing list)
hi james,

as root:
laptux mopslunch # which 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
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 F. (Guest)
on 2007-06-04 19:16
(Received via mailing list)
i deleted /usr/local/bin/ruby and created a symlink from /usr/bin/ruby
to /usr/local/bin/ruby
it fixed the problem :)
This topic is locked and can not be replied to.