tag:help.rubygems.org,2010-01-19:/discussions/problems/11760-sudo-gem-install-rails-showing-unnecessary-errors
RubyGems.org: Discussion
2013-11-11T21:26:50Z
tag:help.rubygems.org,2010-01-19:Comment/29875543
2013-11-08T15:49:57Z
2013-11-08T15:49:58Z
sudo gem install rails showing unnecessary errors...
<div><p>I am trying to install rails using the command</p>
<p>gem install rails</p>
<p>on my ubuntu 12.04 . Also I have configured my apt.conf file
with the username , password and proxy details . Then too the
execution of this command gives an error as :</p>
<p>ERROR: While executing gem ... (Net::HTTPServerException)<br>
407 "Proxy Authentication Required"</p>
<p>If I run</p>
<p>sudo gem install rails</p>
<p>the errors are :</p>
<p>ERROR: While executing gem ... (Gem::DependencyError)<br>
Unable to resolve dependencies: treetop requires polyglot (>=
0), polyglot (>= 0.3.1); sprockets requires tilt (!= 1.3.0,
~> 1.1)</p>
<p>My local gem list is as follows :</p>
<ul>
<li>LOCAL GEMS * actionmailer (4.0.1)<br>
actionpack (4.0.1)<br>
activemodel (4.0.1)<br>
activerecord (4.0.1)<br>
activerecord-deprecated_finders (1.0.3)<br>
activesupport (4.0.1)<br>
arel (4.0.1)<br>
atomic (1.1.14)<br>
bigdecimal (1.2.0)<br>
builder (3.1.4)<br>
bundler (1.3.5)<br>
bundler-unload (1.0.2)<br>
coffee-rails (4.0.1)<br>
coffee-script (2.2.0)<br>
coffee-script-source (1.6.3)<br>
erubis (2.7.0)<br>
execjs (2.0.2)<br>
executable-hooks (1.2.6)<br>
hike (1.2.3)<br>
i18n (0.6.5)<br>
io-console (0.4.2)<br>
jbuilder (1.5.2)<br>
jquery-rails (3.0.4)<br>
json (1.8.1, 1.7.7)<br>
mail (2.5.4)<br>
mime-types (1.25)<br>
minitest (4.7.5, 4.3.2)<br>
multi_json (1.8.2)<br>
polyglot (0.3.3)<br>
psych (2.0.0)<br>
rack (1.5.2)<br>
rack-test (0.6.2)<br>
rails (4.0.1)<br>
railties (4.0.1)<br>
rake (10.1.0, 0.9.6)<br>
rdoc (4.0.1, 4.0.0, 3.12.2)<br>
rubygems-bundler (1.4.2)<br>
rvm (1.11.3.8)<br>
sass (3.2.12)<br>
sass-rails (4.0.1)<br>
sdoc (0.3.20)<br>
sprockets (2.10.0)<br>
sprockets-rails (2.0.1)<br>
sqlite3 (1.3.8)<br>
test-unit (2.0.0.0)<br>
thor (0.18.1)<br>
thread_safe (0.1.3)<br>
tilt (1.4.1)<br>
treetop (1.4.15)<br>
turbolinks (1.3.0)<br>
tzinfo (0.3.38)<br>
uglifier (2.3.0)</li>
</ul>
<p>I have already run "rvm requirements" and I have tried using SET
HTTP_PROXY but it also doesn't have any affect . What should I do
?</p></div>
Kavish Dwivedi
tag:help.rubygems.org,2010-01-19:Comment/29875543
2013-11-11T21:26:48Z
2013-11-11T21:26:48Z
sudo gem install rails showing unnecessary errors...
<div><p>Sounds like you're behind an http proxy. I'd check this page
out: <a href=
"http://rvm.io/workflow/proxy">http://rvm.io/workflow/proxy</a></p></div>
Nick Quaranto