[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

InstantRails windows Installation, problem with Gem

Ronald Dsouza

10/30/2007 2:49:00 PM

Hi Good Morning,
I downloaded and installed the Instant Rails 1.7 from the website
onto my local windows xp machine in
C:\ruby\InstantRails-1.7-win\InstantRails

then I ran the following to update the version of RubyGems that comes
with InstantRails:
C:\InstantRails> gem update --system

I get the following error: (could someone help me where I am going
wrong)
thanks.

C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file
to load -- sources (LoadError)
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:6
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:12
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:112:in
`manage_gems'
from
C:/ruby/InstantRails-1.7-win/InstantRails/ruby/bin/gem.bat:6
--
Posted via http://www.ruby-....

16 Answers

Mohit Sindhwani

10/30/2007 5:19:00 PM

0

Ronald Dsouza wrote:
> Hi Good Morning,
> I downloaded and installed the Instant Rails 1.7 from the website
> onto my local windows xp machine in
> C:\ruby\InstantRails-1.7-win\InstantRails
>
> then I ran the following to update the version of RubyGems that comes
> with InstantRails:
> C:\InstantRails> gem update --system
>
> I get the following error: (could someone help me where I am going
> wrong)
> thanks.
>
> C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file
> to load -- sources (LoadError)
> from

Hi, I'm not sure if this will help you, but there's a file called
use_ruby.cmd that should be run from your console before you use
InstantRails for anything else. Have you done that?

Cheers,
Mohit.
10/31/2007 | 1:18 AM.



Roger Pack

10/30/2007 5:25:00 PM

0

make sure gems/sources-x-x directory exists
maybe edit rbconfig.rb ('s) that exist, point them to your directory
where you installed it.

>
> C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file
> to load -- sources (LoadError)
--
Posted via http://www.ruby-....

Ronald Dsouza

10/30/2007 7:31:00 PM

0

Hi Mohit/Roger
Thanks for your response
After I sent the message I just un-installed everything and am
redoing unzipping to a new dir C:/InstantRails-1.7-win.

then I am planning to run tests as you have mentioned.

will keep you posted on this forum regarding the progress.

Thanks again.
Ron.

Roger Pack wrote:
> make sure gems/sources-x-x directory exists
> maybe edit rbconfig.rb ('s) that exist, point them to your directory
> where you installed it.
>
>>
>> C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `gem_original_require': no such file
>> to load -- sources (LoadError)

--
Posted via http://www.ruby-....

Ronald Dsouza

10/30/2007 8:03:00 PM

0

Hi,

Re-installed Rails and am getting new error as mentioned in item 3
below:

---------------
1. found use_ruby.cmd in C:\InstantRails-1.7-win\InstantRails dir
ran the cmd from console, as:

C:\InstantRails-1.7-win\InstantRails>use_ruby.cmd

C:\InstantRails-1.7-win\InstantRails>CD
C:\InstantRails-1.7-win\InstantRails

C:\InstantRails-1.7-win\InstantRails>PATH
C:\InstantRails-1.7-win\InstantRails\ruby\bin;C:\InstantRails-1.7-win\InstantRails\mysql\bin;C:\or
acle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;

C:\InstantRails-1.7-win\InstantRails>cd rails_apps

C:\InstantRails-1.7-win\InstantRails\rails_apps>dir
Volume in drive C is WINXP
Volume Serial Number is 9897-F09E

Directory of C:\InstantRails-1.7-win\InstantRails\rails_apps

10/30/2007 03:22 PM <DIR> .
10/30/2007 03:22 PM <DIR> ..
10/30/2007 03:22 PM <DIR> .metadata
10/30/2007 03:22 PM <DIR> cookbook
10/30/2007 03:22 PM <DIR> typo-2.6.0
0 File(s) 0 bytes
5 Dir(s) 43,133,116,416 bytes free

---------------------------
2. found gem sources-** in
C:\InstantRails-1.7-win\InstantRails\ruby\lib\ruby\gems\1.8\doc\rubygems-0.9.2\rdoc\classes\Gem


3. Ran the update
gem update --system

get the following error:
C:\InstantRails-1.7-win\InstantRails\rails_apps>gem update --system
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Bad file descriptor - connect(2)(Errno::EBADF)

---------------
Thanks.
Ron.



Ronald Dsouza wrote:
> Hi Mohit/Roger
> Thanks for your response
> After I sent the message I just un-installed everything and am
> redoing unzipping to a new dir C:/InstantRails-1.7-win.
>
> then I am planning to run tests as you have mentioned.
>
> will keep you posted on this forum regarding the progress.
>
> Thanks again.
> Ron.
>
> Roger Pack wrote:
>> make sure gems/sources-x-x directory exists
>> maybe edit rbconfig.rb ('s) that exist, point them to your directory
>> where you installed it.
>>
>>>
>>> C:/ruby/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>>> `gem_original_require': no such file
>>> to load -- sources (LoadError)

--
Posted via http://www.ruby-....

Roger Pack

10/30/2007 8:07:00 PM

0

Try running it several times--that usually means a poor connection or
something (?)

> C:\InstantRails-1.7-win\InstantRails\rails_apps>gem update --system
> Updating RubyGems...
> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
> Bad file descriptor - connect(2)(Errno::EBADF)
>
--
Posted via http://www.ruby-....

Mohit Sindhwani

10/31/2007 6:05:00 AM

0

Ronald Dsouza wrote:
> 3. Ran the update
> gem update --system
>
> get the following error:
> C:\InstantRails-1.7-win\InstantRails\rails_apps>gem update --system
> Updating RubyGems...
> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
> Bad file descriptor - connect(2)(Errno::EBADF)
>


Ron, I agree with the other post - try running it multiple time, seems
like an intermittent problem.

Cheers,
Mohit.
10/31/2007 | 2:04 PM.



Ronald Dsouza

10/31/2007 5:55:00 PM

0

Hi thanks for responding,
I ran the command several times.
but no luck.
I still get the same error message.

Is there anything else that I need to do

Thanks again for your help.
Ron.

Mohit Sindhwani wrote:
> Ronald Dsouza wrote:
>> 3. Ran the update
>> gem update --system
>>
>> get the following error:
>> C:\InstantRails-1.7-win\InstantRails\rails_apps>gem update --system
>> Updating RubyGems...
>> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
>> Bad file descriptor - connect(2)(Errno::EBADF)
>>
>
>
> Ron, I agree with the other post - try running it multiple time, seems
> like an intermittent problem.
>
> Cheers,
> Mohit.
> 10/31/2007 | 2:04 PM.

--
Posted via http://www.ruby-....

Mohit Sindhwani

10/31/2007 5:58:00 PM

0

Ronald Dsouza wrote:
> Hi thanks for responding,
> I ran the command several times.
> but no luck.
> I still get the same error message.
>
> Is there anything else that I need to do
>
> Thanks again for your help.
> Ron.
>
> Mohit Sindhwani wrote:
>
>> Ronald Dsouza wrote:
>>
>>> 3. Ran the update
>>> gem update --system
>>>
>>> get the following error:
>>> C:\InstantRails-1.7-win\InstantRails\rails_apps>gem update --system
>>> Updating RubyGems...
>>> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
>>> Bad file descriptor - connect(2)(Errno::EBADF)
>>>
>>>
>> Ron, I agree with the other post - try running it multiple time, seems
>> like an intermittent problem.
>>
>> Cheers,
>> Mohit.
>> 10/31/2007 | 2:04 PM.
>>
>
>

Are you behind a proxy?

Cheers,
Mohit.
11/1/2007 | 1:57 AM.




Ronald Dsouza

10/31/2007 8:10:00 PM

0

Hi Mohit,

I am installing this at work place
on my local hard drive and use proxy to connect to internet.

Thanks
Ron.

Mohit Sindhwani wrote:
> Ronald Dsouza wrote:
>> Mohit Sindhwani wrote:
>>>> Bad file descriptor - connect(2)(Errno::EBADF)
>>
> Are you behind a proxy?
>
> Cheers,
> Mohit.
> 11/1/2007 | 1:57 AM.

--
Posted via http://www.ruby-....

Roger Pack

10/31/2007 8:38:00 PM

0

google for 'gem proxy'
Ronald Dsouza wrote:9
> Hi Mohit,
>
> I am installing this at work place
> on my local hard drive and use proxy to connect to internet.
>
> Thanks
--
Posted via http://www.ruby-....