[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing ruby on rails

chrisdude911

6/16/2006 5:39:00 PM

Hey,
I need to install ruby on rails. I have installed ruby and it says to
type in gem install rails --remote. When i try this is what happens:
I get the message:

C:\>gem install rails --remote


C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rails
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rub...
ERROR: While executing gem ... (Errno::EHOSTUNREACH)
A socket operation was attempted to an unreachable host. -
connect(2)


Could anyboy help??
Thanks
Chris

7 Answers

anne001

6/16/2006 5:53:00 PM

0

I had trouble installing a gem recently. I downloaded the gem on my
desktop, and then the install went easy as peach.

this way you know if the problem is the internet connection or the gem
installation

chrisdude911

6/16/2006 6:10:00 PM

0

i reinstalled it and a have a new error message

C:\>gem install rails --remote
'gem' is not recognized as an internal or external command,
operable program or batch file.

anne001

6/16/2006 9:17:00 PM

0

can you find where gem is installed and tell it the explicit path,

for ex
c:\ruby\bin\gem install rails --remote
or some such, haven't use a pc for a while.

> 'gem' is not recognized as an internal or external command,
> operable program or batch file.

chrisdude911

6/17/2006 7:53:00 AM

0

i've tried that, and a dialoque box comes up saying
"c:\ruby\bin\ruby.exe" is not a valid Win32 application"
Then in that command prompt it says:

C:\ruby\bin> gem install rails --remote

C:\ruby\bin>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rails
--remote

Thanks
Chris

Aníbal Rojas

6/17/2006 12:53:00 PM

0

Chris,

I just installed Ruby 1.8.4 a few days ago in a W2K box without any
problem, the path you wrote down is the default installation path and
should work. What did you use to install Ruby, The one click installer?
Was your PATH Environment variable updated to include ruby/bin?

Aníbal Rojas
http://www.lacara...
http://Www.ruby...
http://www.vp.com.ve/...

chrisdude911 wrote:
> i've tried that, and a dialoque box comes up saying
> "c:\ruby\bin\ruby.exe" is not a valid Win32 application"
> Then in that command prompt it says:
>
> C:\ruby\bin> gem install rails --remote
>
> C:\ruby\bin>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rails
> --remote
>
> Thanks
> Chris

alain.feler

6/17/2006 7:01:00 PM

0

Try Instantrails : one .exe with everything in it in the right place :
ruby, rails, apache, mysql, everything you need except maybe Scite or
some nice text editor for ruby.

chrisdude911

6/17/2006 7:42:00 PM

0

thanks
i've done it know!
Thanks for your help
Chris