Michael Greenly wrote:
> Yes Rails applications can be sensitive to the version of Ruby, Rails or
> Gems installed
> 
> Telling us what error you got would help.
> 
> On Dec 27, 2007 9:11 AM, Snoop1990 Snoop1990 <snoopy1990 / googlemail.com>




Ok, I use my first one, this application run on Freebsd without any 
errors! I copied the hole directory and now try to start the internal 
web server webrick and get this :

$ ./script/server
./script/../config/boot.rb:18:in `require': no such file to load -- 
rubygems (LoadError)
  from ./script/../config/boot.rb:18
  from ./script/server:2:in `require'
  from ./script/server:2

I thought maybe Rails does not work, so I started a new projekt with the 
"rails <projectname>" command and launched the internal webserver inside 
this new project. It works but it looks a bit different during the boot 
process:

$ ./script/server
=> Booting WEBrick...
=> Rails application started on http://127.0.0.1:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-12-27 16:42:12] INFO  WEBrick 1.3.1
[2007-12-27 16:42:12] INFO  ruby 1.8.6 (2007-06-07) [i486-linux]
[2007-12-27 16:42:12] WARN  TCPServer Error: Address already in use - 
bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already 
in use - bind(2) (Errno::EADDRINUSE)
  from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
  from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
  from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
  from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'
  from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
  from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
  from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
  from 
/home/Share/www/snoop/blog/vendor/rails/railties/lib/webrick_server.rb:58:in 
`new'
  from 
/home/Share/www/snoop/blog/vendor/rails/railties/lib/webrick_server.rb:58:in 
`dispatch'
  from 
/home/Share/www/snoop/blog/vendor/rails/railties/lib/commands/servers/webrick.rb:59
  from 
/home/Share/www/snoop/blog/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in 
`require'
  from 
/home/Share/www/snoop/blog/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in 
`require'
  from 
/home/Share/www/snoop/blog/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in 
`new_constants_in'
  from 
/home/Share/www/snoop/blog/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in 
`require'
  from 
/home/Share/www/snoop/blog/vendor/rails/railties/lib/commands/server.rb:39
  from ./script/server:3:in `require'
  from ./script/server:3

Booting on freebsd, the first application:
%./script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options





-- 
Posted via http://www.ruby-forum.com/.