tag:help.rubygems.org,2010-01-19:/discussions/problems/314-problems-with-rubygems-on-ubuntu-karmicRubyGems.org: Discussion 2018-10-18T19:50:59Ztag:help.rubygems.org,2010-01-19:Comment/28925762010-09-08T23:00:14Z2017-10-23T01:30:12ZProblems with rubygems on Ubuntu Karmic<div><p>I have installed rubygems from the tar file on the rubygems project page.</p>
<p>I test it by:</p>
<pre>
<code>root@bostrom:~# gem list
*** LOCAL GEMS ***</code>
</pre>
<p>When I try to install anything:</p>
<pre>
<code>root@bostrom:~# gem install gemcutter
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): http://localhost:4001</code>
</pre>
<p>Woops! Now I try:</p>
<pre>
<code>root@bostrom:~# gem --debug install gemcutter
Exception `NameError' at /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `NoMethodError' at /usr/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational
Exception `Gem::LoadError' at /usr/local/lib/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception `URI::InvalidURIError' at /usr/lib/ruby/1.8/uri/common.rb:436 - bad URI(is not URI?): http://localhost:4001
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): http://localhost:4001
/usr/lib/ruby/1.8/uri/common.rb:436:in `split'
/usr/lib/ruby/1.8/uri/common.rb:485:in `parse'
/usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb:210:in `get_proxy_from_env'
/usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb:66:in `initialize'
/usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb:44:in `new'
/usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb:44:in `fetcher'
/usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb:53:in `initialize'
/usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb:38:in `new'
/usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb:38:in `fetcher'
/usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb:108:in `find_gems_with_sources'
/usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb:205:in `find_spec_by_name_and_version'
/usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb:237:in `install'
/usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb:119:in `execute'
/usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb:116:in `each'
/usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb:116:in `execute'
/usr/local/lib/site_ruby/1.8/rubygems/command.rb:270:in `invoke'
/usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb:134:in `process_args'
/usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb:104:in `run'
/usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
/usr/bin/gem:21</code>
</pre>
<p>I think I am dealing with two problems here. I think I need more info on configuring rubygems, but I don't know where to look. I also don't understand why rubygems is looking for port 4001 (which is not open in my /etc/services file).</p>
<p>I am simply trying to install Jekyll on Ubuntu Karmic 9.10, but I would like RoR and RMagick to work also.</p>
<p>Can anyone help?</p>
<p>Thank you very much,</p>
<p>Mike</p></div>Mike Burketag:help.rubygems.org,2010-01-19:Comment/28925762010-09-08T23:04:47Z2010-09-08T23:04:48ZProblems with rubygems on Ubuntu Karmic<div><p>Whoa! That is the strangest looking post I've ever seen. I copied and pasted from my terminal to the message box.</p>
<p>Perhaps someone could suggest a setting for the forum so that I can make it more readable in the future.</p>
<p>Thanks,</p>
<p>Mike</p></div>Mike Burketag:help.rubygems.org,2010-01-19:Comment/28925762010-09-09T00:16:06Z2010-09-09T00:16:06ZProblems with rubygems on Ubuntu Karmic<div><p>It appears that you have RubyGems configured to use a proxy server at localhost port 4001.<br />
</p>
<p><code>gem help env</code> explains how RubyGems finds proxy servers in your environment.</p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/28925762010-09-09T01:31:23Z2010-09-09T01:31:26ZProblems with rubygems on Ubuntu Karmic<div><p>You rock!</p>
<p>I had installed anon-proxy and forgot about it. I had an environment variable in my profile and so ... gem now works.</p>
<p>Thanks,</p>
<p>Mike</p></div>Mike Burke