Solved

Unable to install Rails Gem

Posted on 2012-04-02
6
1,487 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Accepted Solution

by:
LinuxGuru earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Curl Multi-exec 13 78
SQL DRIVER FOR PHP / MSSQL 2008 Standard Edition (64-bit) SP4 (10.0.6000.29) 9 129
PHP in Apache server 20 104
Stream live video from Raspberry Pi camera 22 250
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 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