# Can't start script/server as other user than root

**URL:** <https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901>\
**Category:** Rails\
**Created:** [June 4, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901 "2007-06-04T14:27:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Post date:** [June 4, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901/1 "2007-06-04T14:27:30Z")

</div>

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 F.

---

<div class="post-metadata">

**Author:** ![Pascal\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Post date:** [June 4, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901/2 "2007-06-04T15:12:38Z")

</div>

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 M.

---

<div class="post-metadata">

**Author:** ![Pascal\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Post date:** [June 4, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901/3 "2007-06-04T15:24:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pascal\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Post date:** [June 4, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901/4 "2007-06-04T17:16:56Z")

</div>

i deleted /usr/local/bin/ruby and created a symlink from /usr/bin/ruby  
to /usr/local/bin/ruby  
it fixed the problem 🙂  
thanks
