i am trying to install LibraryFind and i was successfull in many aspects until i reached the step where i have to run my application. i enter the following command and i get these results.
r
oot@ubuntu:/home/administrator/Desktop/trunk# ruby script/server
=> Booting WEBrick...
=> Rails 2.2.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2011-08-24 02:01:55] INFO WEBrick 1.3.1
[2011-08-24 02:01:55] INFO ruby 1.8.7 (2010-08-16) [i686-linux]
[2011-08-24 02:01:55] 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 `creat开发者_开发百科e_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/administrator/Desktop/trunk/vendor/rails/railties/lib/webrick_server.rb:56:in `new'
from /home/administrator/Desktop/trunk/vendor/rails/railties/lib/webrick_server.rb:56:in `dispatch'
from /home/administrator/Desktop/trunk/vendor/rails/railties/lib/commands/servers/webrick.rb:66
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/administrator/Desktop/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /home/administrator/Desktop/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/administrator/Desktop/trunk/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /home/administrator/Desktop/trunk/vendor/rails/railties/lib/commands/server.rb:49
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/server:3
it seems im either missing a library or i am having a problem in my configurat
There is another instance of webrick running of the port 3000. Use the command
ps aux | grep webrick
To verify it. And then kill it.
EDIT:
The ps command shows you a list of the current running programs of your machine. Each program on a unix-like machine comes with a PID number associated with it. In your case, the other running instance has a pid = 12288. So you can use:
kill 12288
To kill the other instance of the server.
精彩评论