# problem when : ruby script/server

**URL:** <https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177>\
**Category:** rubyonrails-talk\
**Created:** [September 6, 2010, 10:13pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177 "2010-09-06T22:13:36Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 6, 2010, 10:13pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/1 "2010-09-06T22:13:36Z")

</div>

Hi; Now I have tried the following, installed ruby 1.8.7 (2010-08-16) [i386-mingw32] rails 2.3.8 when I start the server --\> ruby script/server, I get the following eeror:

C:\Rails\demo\>ruby script/server =\> Booting WEBrick =\> Rails 2.3.8 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000) =\> Call with -d to detach =\> Ctrl-C to shutdown server [2010-09-06 23:53:31] INFO WEBrick 1.3.1 \<---------------- [2010-09-06 23:53:31] INFO ruby 1.8.7 (2010-08-16) [i386-mingw32] \<------ [2010-09-06 23:53:31] INFO WEBrick::HTTPServer#start: pid=1420 port=3000 \<---

and when I go to localhost:3000 (browser), I get the welcome screen, but selecting the “About your application’s environment”, I get an error also. What is it, I can solve it.

Thanky,

Dani

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 6, 2010, 10:47pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/2 "2010-09-06T22:47:16Z")

</div>

can you put some log data from what happens when you open About your application’s environment?

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 8:50am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/3 "2010-09-07T08:50:00Z")

</div>

radhames brito wrote:

> can you put some log data from what happens when you open About your application’s environment?

Thank yo for your response. I'm using windows xp (but treid also with Linux/Ubuntu), ruby 1.8.7 (2010-08-16) [i386-mingw32] rails 2.3.8 gem 1.3.7 and when I start the server (ruby script/server) I get the above mentioned issue.

I have treid also ruby 1.9.2 and rails 3.0.0, but then when runing 'ruby setup.rb', I get: C:/rubygems-1.3.7/lib/rubygems/source\_index.rb:68:in installed\_spec\_directories': undefined method `path' for Gem:Module (NoMethodError)

about tow weeks ago I was successfull with installing ruby 1.8.7 rails 2.3.8. But since rails 3.0.0 has been released I have no success to install. I'm not sure whether it has anything to do with the release of rails 3.0.0 (any modification of the repositories containing the kits ?), it is only an assumption.

I have no clue what to do, and can't go on with my work. HELP !.

Thanks,

Dani

---

<div class="post-metadata">

**Author:** ![Kannan](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@Kannan](https://discuss.rubyonrails.org/u/Kannan)\
**Post date:** [September 7, 2010, 8:55am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/4 "2010-09-07T08:55:45Z")

</div>

Dear Dani, I think your database was not configured correctly. You are using sqlite or other databases???

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 9:13am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/5 "2010-09-07T09:13:16Z")

</div>

Hi Kannan,

Are you refering to the ruby 1.8.7/rails 2.3.8 issue or ruby 1.2.9/rails 3.0.0 ?

Always sqlite3.

With Ruby 1.9.2 and rails 3.0.0, I had to modify Gemfile with the following: gem 'sqlite3-ruby', '1.2.5', :require =\> 'sqlite3' instead of gem 'sqlite3-ruby', :require =\> 'sqlite3'

If I don't modify the gmfile I get: 'require': no such file to load -- sqlite3/sqlite3\_native (LoadError)

for 1.8.7/2.3.8 I didn't have to do anything. 1.8.7/2.3.8 worked for me in the past, but now not anymore.

Dani

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 9:15am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/6 "2010-09-07T09:15:50Z")

</div>

By the way, I'm following: 'Ruby on Rails Tutorial' book/PDF of Michael Hartl.

---

<div class="post-metadata">

**Author:** ![Kannan](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@Kannan](https://discuss.rubyonrails.org/u/Kannan)\
**Post date:** [September 7, 2010, 9:25am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/7 "2010-09-07T09:25:55Z")

</div>

Dear Dani,

If you use Rails 3.0 version, all of the supported gems for Rails should be upgraded. Otherwise, it will lead issues. Better, you use Ruby 1.9.2, Rails 3.0 (with corresponding versions of supporting gems of Rails 3.0)… If versions of two packages differs means it leads issue.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 9:32am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/8 "2010-09-07T09:32:34Z")

</div>

Hi Kannan,

yes, as I have mentioned, I'M using the latest - Ruby 1.9.2, Rails 3.0.0, gem 1.3.7. I have mentioned ruby 1.8.7 and rails 2.3.8, just to say that both are not working.

I can't get Ruby 1.9.2/Rails 3.0.0/gem 1.3.7 to work - see above issues described.

Thank you.

Dani

---

<div class="post-metadata">

**Author:** ![Kannan](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@Kannan](https://discuss.rubyonrails.org/u/Kannan)\
**Post date:** [September 7, 2010, 9:44am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/9 "2010-09-07T09:44:38Z")

</div>

Hi,

Try this tutorial… This is awesome and its specifically wrote for Rails 3.0

[http://guides.rubyonrails.org/getting\_started.html](http://guides.rubyonrails.org/getting_started.html)

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 10:18am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/10 "2010-09-07T10:18:49Z")

</div>

thank you. tried this also, in fact same instaructions as in the mentioned book which is up-to-date.

any more ideas ?

Dani.

---

<div class="post-metadata">

**Author:** ![Kannan](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@Kannan](https://discuss.rubyonrails.org/u/Kannan)\
**Post date:** [September 7, 2010, 10:48am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/11 "2010-09-07T10:48:17Z")

</div>

Hi,

I feel, it may be a path problem for gem. Rails is not recognising the path info of sqlite gem. In windows i dont know about the path issues. In ubuntu, You installed gem with sudo permission??? If not try with sudo permission.

sudo gem install “gem\_package”

otherwise

Give path info to system for local gem directory

export PATH=$PATH:~/location\_where\_gem\_installed

Then rails will find the location of your sqlite gem package…

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 11:01am UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/12 "2010-09-07T11:01:50Z")

</div>

Hi Kannan,

Ok, thank you, I'll try this today evening. I'll let you know the outcome.

Regards, Dani

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 7, 2010, 2:25pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/13 "2010-09-07T14:25:05Z")

</div>

If you cant solve this in any way the last radical thing you can do is move to linux and user RVM. It make using multiple ruby versions a dream.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 5:47pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/14 "2010-09-07T17:47:10Z")

</div>

Hi Kannan, Well, I have updated the path with the location of the rubygems without any change.

Hi Brito, That what I thought too, I have tried to install rvm under ubuntu, I must say, I did not succeed with it, somehow the installation instructions are not clear how exactly can this be done. Do you have any description how to install it that might help me. Thank you.

Dani

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 6:01pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/15 "2010-09-07T18:01:06Z")

</div>

Dani Dani wrote:

> Hi Kannan, Well, I have updated the path with the location of the rubygems without any change.
> 
> Hi Brito, That what I thought too, I have tried to install rvm under ubuntu, I must say, I did not succeed with it, somehow the installation instructions are not clear how exactly can this be done. Do you have any description how to install it that might help me. Thank you.
> 
> Dani

I found this link enormously helpful (mainly because I use Ubuntu 10.04)

> **[How to install RVM on Ubuntu 10.04](http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/)**
>
> I’ve heard people describe frustrations they had in getting Rails 3 setup on Ubuntu 10.04 with Ruby 1.9.2. I’m going to outline the steps I’ve taken to do this. Let’s get started installing RVM. It should be noted that I

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 7, 2010, 9:11pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/16 "2010-09-07T21:11:09Z")

</div>

the only thing a bit hard about it is editing the rc file, tell me what linux you have and what shell i will see how i can guide you to install RVM

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 7, 2010, 9:40pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/17 "2010-09-07T21:40:04Z")

</div>

radhames brito wrote:

> the only thing a bit hard about it is editing the rc file, tell me what linux you have and what shell i will see how i can guide you to install RVM

To create one in Ubuntu, just a simple

sudo gedit .bashrc

in a command window from your home folder will create one, ready for editing as the rvm install instructions mention.

---

<div class="post-metadata">

**Author:** ![radhames\_brito](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@radhames\_brito](https://discuss.rubyonrails.org/u/radhames_brito)\
**Post date:** [September 7, 2010, 9:48pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/18 "2010-09-07T21:48:25Z")

</div>

if you are using bash, 😉 is he? are you ? im i ? is linux , you never know

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [September 8, 2010, 10:16pm UTC](https://discuss.rubyonrails.org/t/problem-when-ruby-script-server/54177/19 "2010-09-08T22:16:04Z")

</div>

Thank you all.

UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows. The following links has helped:

> **[Running Rails 3 on Windows - Accidental Technologist](https://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/)**
>
> Tweet Well, the long-awaited release of Ruby on Rails 3 is now out and all of the Mac and Linux junkies are busy gem-installing the latest version of the framework.? What about all the lonely Windows developers out there looking through their windows...

and

> **[Ruby 1.9.2 Rails 3, A Clean Install on Windows XP](http://blog.johnivanoff.com/2010/09/ruby-192-rails-3-clean-install-on.html)**
>
> Down loaded rubyinstaller-1.9.2-p0.exe from http://rubyinstaller.org/ and installed it. (this will remove any previously installed gems) C:...

with the combination of the two I did it !.

BUT, I will also try the next to install also on linux (ubuntu).

I just don't understand why it should be that difficult to install rails.

I hope this one will help all windows users.

Dani
