?
Solved

Unable to install Rails Gem

Posted on 2012-04-02
6
Medium Priority
?
1,535 Views
Last Modified: 2012-08-28
Hi,

I am halfway to getting a RoR application hosted on my local machine (This is my first foray into using RoR) and have installed Ruby, downloaded RubyGems and am trying to install Rails. Unfortunately i am unable to install new gems using command prompt as i'm receiving the error below.

Is there an alternate way to install Rails? Otherwise can somebody advise what request i have to put in in order to allow access to that site? (I can access that file via browser)

Thanks in advance

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ETIMEDOUT: A connection attempt failed because the connected party di
d not properly respond after a period of time, or established connection failed
because connected host has failed to respond. - connect(2) (http://rubygems.org/
latest_specs.4.8.gz)
0
Comment
Question by:basil365
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:basil365
ID: 37797236
I got it workin gby using ntmlmaps proxy, but i am getting an error when installing:

ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rails requires actionpack (= 3.2.3), activer
ecord (= 3.2.3), activeresource (= 3.2.3), actionmailer (= 3.2.3), railties (= 3
.2.3), bundler (~> 1.0); activesupport requires i18n (~> 0.6), multi_json (~> 1.
0)

I'm following this guide: rails guide
0
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 37806440
Check the following url and try as mentioned.

http://railsforum.com/viewtopic.php?id=46906
0
 

Author Comment

by:basil365
ID: 37806603
thanks - i had seen that page but still no luck, i'm going to try the same steps as above on my personal PC and see if that works
0
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

 
LVL 13

Accepted Solution

by:
LinuxGuru earned 1500 total points
ID: 37818852
Ok sure. Try and let us know the results.
0
 

Author Comment

by:basil365
ID: 37824118
i'm trying to run 'bundle install' on the app that im trying to run. Its failing on one particular gem -kgio .Im getting this error:

 
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing kgio:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for CLOCK_MONOTONIC in time.h... no
checking for CLOCK_MONOTONIC() in time.h... no
checking for clockid_t in time.h... no
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby193/bin/ruby
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.7.
3 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/kgio-2.7.3/ext/kgio/gem_ma
ke.out

does anybody know what my next step should be?
0
 

Author Comment

by:basil365
ID: 37826704
Hi,

On a side note - i have a zip file containing a copy of the app which i tried to place on a hosting site. When i navigate to the web page i get the following stacktrace:

     /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb      10      in `exit'
1      /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb      10      
2      /usr/lib/ruby/1.8/rubygems/custom_require.rb      36      in `gem_original_require'
3      /usr/lib/ruby/1.8/rubygems/custom_require.rb      36      in `require'
4      /home/ppapp/ppapp.mobi/config/boot.rb      6      
5      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `gem_original_require'
6      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `require'
7      /home/ppapp/ppapp.mobi/config/application.rb      1      
8      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `gem_original_require'
9      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `require'
10      /home/ppapp/ppapp.mobi/config/environment.rb      2      
11      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `gem_original_require'
12      /usr/lib/ruby/1.8/rubygems/custom_require.rb      31      in `require'
13      config.ru      3      
14      /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb      46      in `instance_eval'
15      /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb      46      in `initialize'
16      config.ru      1      in `new'
17      config.ru      1      

Can anybody help me here?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question