ezFAQ: issue when installing ezfaq git
Added by Matt Brown over 16 years ago
Hello,
I'm getting an error enumerating an environmental variable called HOME when attempting to install the ezFAQ git.
The error occurs when I run
D:\ruby\lib\ruby\gems\1.8\gems\git-rails-0.2.1\bin>git-rails install git://githu b.com/zouchaoqun/ezfaq.git d:/ruby/lib/ruby/gems/1.8/gems/git-rails-0.2.1/bin/git-rails:12:in `expand_path' : couldn't find HOME environment -- expanding `~' (ArgumentError) from d:/ruby/lib/ruby/gems/1.8/gems/git-rails-0.2.1/bin/git-rails:12 from d:/ruby/bin/git-rails:19:in `load' from d:/ruby/bin/git-rails:19
I looked in the git-rails file and found the line:
Home = File.expand_path(ENV['HOME'] || '~')
I'm not familiar with RoR, but figure that this is either a system environmental string (which isn't set), or a string that needs to be set in the ror config.
Can anyone direct me as to what to edit or where to edit?
Thanks very much,
Matt
Replies (2)
RE: ezFAQ: issue when installing ezfaq git
-
Added by Eric Davis over 16 years ago
Matt Brown wrote:
I'm not familiar with RoR, but figure that this is either a system environmental string (which isn't set), or a string that needs to be set in the ror config.
It looks like a bug in git-rails. HOME
is a UNIX environment variable that points to the folder a user stores all their files. ~
is an alias of HOME
. This link talks about how you can setup environment variables in Windows. If I were you I'd set HOME
to be something like C:\Documents and Settings\Users\my-username
Eric
RE: ezFAQ: issue when installing ezfaq git
-
Added by Matt Brown over 16 years ago
Interesting... there's a similar env var called userprofile in Windows.
Odd that they would look for it for a gem, no?