# Depot example doesn't work on my pc

**URL:** <https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217>\
**Category:** Rails\
**Created:** [January 29, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217 "2006-01-29T14:08:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matteo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f9ae1b/32.png) [@matteo](https://www.ruby-forum.com/u/matteo)\
**Post date:** [January 29, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217/1 "2006-01-29T14:08:39Z")

</div>

Hi everyone,  
I wrote a post last week, but unfortunatly I had no time to try.  
First of all I’d like to thank you, for every your answer, and  
then I’m sorry for the late of my answer. I REALLY appreciated them.  
So I did as you told me, but this problem is still on.

First of all, I changed the server script file as you told me, so I  
deleted the first line:  
#!/Users/dave/ruby1.8/bin/ruby  
and I wrote this one.  
#!/usr/bin/env ruby

But now when I’m running it I have some other problems:

matteod@bones:~/work/depot\_final$ ruby script/server  
./script/…/config/environment.rb:35:in `require’: no such file to load  
– rubygems (LoadError)  
from ./script/…/config/environment.rb:35  
from script/server:45

So I checked the 35 line in the environment.rb file and I have this line  
require ‘rubygems’

and the 45 line in the server file  
require File.dirname( **FILE** ) + “/…/config/environment”

I supposed the problem is about rubygem installation so I checked it.  
I’ve installed the rubygem in this folder.  
matteod@bones:/opt/rubygems-0.8.11/bin$ ls  
gem gem\_mirror gem\_server gemwhich generate\_yaml\_index.rb  
update\_rubygems

Is it right? What’s the matter now?  
Many thanks!  
Matteo.

---

<div class="post-metadata">

**Author:** ![matteo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f9ae1b/32.png) [@matteo](https://www.ruby-forum.com/u/matteo)\
**Post date:** [January 29, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217/2 "2006-01-29T19:37:56Z")

</div>

Matteo wrote:

> Hi everyone,  
> I wrote a post last week, but unfortunatly I had no time to try.  
> Which I think I missed, so apologies if I’m going over old ground…

> I’ve installed the rubygem in this folder.  
> matteod@bones:/opt/rubygems-0.8.11/bin$ ls  
> gem gem\_mirror gem\_server gemwhich generate\_yaml\_index.rb  
> update\_rubygems

My installed gem\_server script is in /usr/bin, on a Debian system. Did  
you run the /opt/rubygems-0.8.11/setup.rb file? If so, were there any  
errors?

---

<div class="post-metadata">

**Author:** ![matteo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f9ae1b/32.png) [@matteo](https://www.ruby-forum.com/u/matteo)\
**Post date:** [January 30, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217/3 "2006-01-30T22:17:11Z")

</div>

Alex Y. wrote:

> My installed gem\_server script is in /usr/bin, on a Debian system. Did  
> you run the /opt/rubygems-0.8.11/setup.rb file? If so, were there any  
> errors?

Many thanks! REALLY THANKS! I didn’t run the setup.rb file!  
Now it’s working! 🙂  
I made like it’s written in the guide:  
sudo gem install rails --include-dependencies

without running /opt/rubygems-0.8.11/setup.rb.

So I run it like you told me:  
sudo ruby setup.rb  
SO NOW IT’S WORKING!  
Maybe I read in wrong way the guide!  
THANKS AGAIN!  
M#

---

<div class="post-metadata">

**Author:** ![matteo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f9ae1b/32.png) [@matteo](https://www.ruby-forum.com/u/matteo)\
**Post date:** [January 30, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/depot-example-doesnt-work-on-my-pc/53217/4 "2006-01-30T22:20:33Z")

</div>

Matteo Dall’Osso wrote:

> without running /opt/rubygems-0.8.11/setup.rb.
> 
> So I run it like you told me:  
> sudo ruby setup.rb  
> SO NOW IT’S WORKING!  
> Maybe I read in wrong way the guide!  
> THANKS AGAIN!

No worries 🙂
