Hi,
I installed RUBY & RUBYGEM but GEM does not work.
I can not run "gem server" or install RUBY package.
"gem list --local" return:
*** LOCAL (GEMS) ***
minitest (1.6.0)
rake (0.8.7)
rdoc (2.5.8)
"gem env" return:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.10
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [arm-linux-eabi]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- arm-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
"gem --debug server" return:
Exception `NameError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::ServerCommand
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
ERROR: Loading command: server (LoadError)
no such file to load -- socket
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/webrick/httputils.rb:11:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/webrick/config.rb:13:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/webrick.rb:14:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/server.rb:1:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/commands/server_command.rb:2:in `<top (required)>'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:183:in `rescue in load_and_instantiate'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:176:in `load_and_instantiate'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:103:in `[]'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:159:in `find_command'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:146:in `process_args'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
/usr/bin/gem:21:in `<main>'
Exception `NameError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::ServerCommand
Exception `NameError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:179 - uninitialized constant Gem::Commands::ServerCommand
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::ServerCommand
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177:in `const_get'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177:in `load_and_instantiate'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:103:in `[]'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:159:in `find_command'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:146:in `process_args'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
/usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
/usr/bin/gem:21:in `<main>'
"gem --debug install ..." return:
Exception `NameError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247 - Could not find psych (>= 1.2.1, ~> 1.2) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8]
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- psych
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- psych
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- socket
Exception `LoadError' at /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:62 - no such file to load -- socket
/usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- socket (LoadError)
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/net/protocol.rb:21:in `<top (required)>'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/net/http.rb:28:in `<top (required)>'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:56:in `initialize'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:41:in `new'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:41:in `fetcher'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:66:in `initialize'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `new'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `fetcher'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:110:in `find_gems_with_sources'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:228:in `find_spec_by_name_and_version'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:259:in `install'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:121:in `block in execute'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `each'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `execute'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `process_args'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
from /usr/bin/gem:21:in `<main>'
What can I do to run GEM ?