Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Gem installation issue

Reply
Thread Tools

Gem installation issue

 
 
Arne De Herdt
Guest
Posts: n/a
 
      04-05-2011
Hello,

I'm running with my head against the wall here. I'm trying to create a
new Ruby environment on my laptop from work, which is a Window 7 system
and inside the domain of the company.

I've downloaded the Ruby 1.9.2 Windows installer and installed it to
C:\Ruby\1.9.2
This worked without a single problem. I've downloaded the RubyGems 1.7.1
and installed that as well, basic test for me to see if the system
recognized the ruby executable from the command line.

However, when I call the command 'gem update --system' I receive the
following error:
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - H:/

Ok, seems ruby wants to look into my network drive for gem
installations. I don't like this so I created the GEM_PATH and GEM_HOME
variables:

C:\Windows\System32>set GEM
GEM_HOME=C:\Ruby\.gems
GEM_PATH=C:\Ruby\1.9.2\lib\ruby\gems\1.9.1\gems

Running the command again results in the same. Here is a complete look
of my ruby environment settings:

C:\Windows\System32>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.1
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby/.gems
- RUBY EXECUTABLE: C:/Ruby/1.9.2/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/.gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby/.gems
- C:/Ruby/1.9.2/lib/ruby/gems/1.9.1/gems
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

C:\Windows\System32>set home
HOMEDRIVE=H:
HOMEPATH=\
HOMESHARE=\\tenforce-ad\userdata\Arne.De.Herdt


Can anyone tell me what is actually wrong with my installation and what
can be done to get this working?

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

 
Reply With Quote
 
 
 
 
Arne De Herdt
Guest
Posts: n/a
 
      04-05-2011
Found it....
need to the a HOME environment variable.....

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
gem.cmd install RMagick-win32-1.9.2-mswin32.gem: Buffer error Clifford Heath Ruby 7 06-09-2006 07:02 PM
[GEM PATCH] allow gem to install bin file to different location Ara.T.Howard Ruby 0 10-26-2005 11:52 PM
ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find rubygems-upodate (> 0) in the repository han Ruby 1 10-24-2005 10:28 PM
[ANN] Getopt-Declare 1.12 (gem/zip) and GGEnv (gem/zip) gga Ruby 0 07-18-2005 03:21 PM



Advertisments