InstantRails windows Installation, problem with Gem

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-forum.com/.

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.

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-forum.com/\.

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-forum.com/\.

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-forum.com/\.

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-forum.com/\.

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.

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-forum.com/\.

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.

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-forum.com/\.

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-forum.com/\.

Hello Again,

I ran the following:
----------------- (1)
C:\InstantRails-1.7-win\InstantRails\ruby\bin>gem update -p
http://<proxy address>:80
ERROR: While executing gem ... (NoMethodError)
    undefined method `=' for #<Gem::ConfigFile:0x2bc92cc>

------ (2)
tried the same by setting env var
c:\...\>set HTTP_PROXY=
c:\,\> gem update -http_proxy
get the same result.

···

-------------------
Any kind of input is highly appreciated.
Thanks again
Ron.

Ronald Dsouza wrote:

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-forum.com/\.

Hi Ron

I'm a bit perplexed now. There are 2 things you can look at:

1. http://angrys0ul.com/blog/2007/04/25/how-to-install-ruby-on-rails-on-a-windows-pc/
If you're looking at updating Rails (I've forgotten your original post), you can look at the hints in this article for installing gems locally (by downloading the archive)

2. http://rubygems.org/read/chapter/15 and http://rubygems.org/read/chapter/19
These show the basic FAQ for installation problems.

3. http://wiki.rubyonrails.org/rails/pages/RailsOnWindows
This shows the commands related to installing from behind a proxy. It seems that you should do:
If you need to use a proxy, add ’-p http://proxy:port’ to all gem install commands. It seems that the proxy method you used might not work on Windows.

Hope one of these methods works for you.

Cheers,
Mohit.
11/1/2007 | 12:27 PM.

Ronald Dsouza wrote:

···

Hi Mohit,

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

Thanks
Ron.

run gem help
look for how to do gem help on commands
do that
look for gem help on install command
do that
run with backtrace and debug turned on
repost :slight_smile:
Take care!
-Roger
Ronald Dsouza wrote:

···

Hello Again,

I ran the following:
----------------- (1)
C:\InstantRails-1.7-win\InstantRails\ruby\bin>gem update -p
http://<proxy address>:80
ERROR: While executing gem ... (NoMethodError)
    undefined method `=' for #<Gem::ConfigFile:0x2bc92cc>

------ (2)
tried the same by setting env var
c:\...\>set HTTP_PROXY=
c:\,\> gem update -http_proxy
get the same result.
-------------------
Any kind of input is highly appreciated.
Thanks again
Ron.

Ronald Dsouza wrote:

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-forum.com/\.

Hi Guys,

I ran the following :

gem list -r --backtrace -p 'http://proxy:80'

···

------------------
ERROR: While executing gem ... (NoMethodError)
    undefined method `[]=' for #<Gem::ConfigFile:0x2bc9164>
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:258
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:186:in
`call'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:186:in
`configure_options'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1291:in
`call'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1291:in
`parse_in_order'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1247:in
`catch'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1247:in
`parse_in_order'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1241:in
`order!'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1332:in
`permute!'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1353:in
`parse!'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:123:in
`handle_options'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:64:in
`invoke'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:120:in
`process_args'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:91:in
`run'
C:/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:30:in
`run'
C:/InstantRails-1.7-win/InstantRails/ruby/bin/gem.bat:19

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

I wonder if you could fix it by downloading rubygems again (from its
site)...

···

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

Will do that.

Thanks again.
Ron.

Roger Pack wrote:

···

I wonder if you could fix it by downloading rubygems again (from its
site)...

--
Posted via http://www.ruby-forum.com/\.