problem when : ruby script/server

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
=> 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

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

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

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

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

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

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.

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

Hi,

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

http://guides.rubyonrails.org/getting_started.html

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

any more ideas ?

Dani.

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…

Hi Kannan,

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

Regards,
Dani

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.

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

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)

http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/

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

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.

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

Thank you all.

UFFFFF, I have managed installing Ruby 1.9.2 & Rails 3 on windows.
The following links has helped:
http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/
and
http://johnivanoff.blogspot.com/2010/09/ruby-192-rails-3-clean-install-on.html

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