Installing any gems fails!

Eugene A. wrote in post #1049652:

I'm still a bit of a n00b. :slight_smile:

I've tried this on both Ruby 1.8.7 and 1.9.3 and result is identical. I
need to install a specific gem (bewildr) but when I try it I get this:

C:\Ruby187\bin>gem install bewildr
Fetching: bewildr-0.1.14.gem (100%)
ERROR: While executing gem ... (Errno::EINVAL)
    Invalid argument - "c:

It seems one environment variable is affecting RubyGems to work
properly.

There is a similar entry on RubyInstaller wiki:

Which is caused by setting a network drive as home.

Can you verify what are the values of the following variables?

SET HOME
SET HOMEDRIVE
SET HOMEPATH
SET USERPROFILE
SET RUBYOPT

And post it back?

That will help us help you better.

路路路

--
Luis Lavena

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

Uninstall your Ruby and try rvm to manage your Ruby and gems

Rafal Zdziech - Ruby Dev: www.amidev.co.uk

路路路

On Mar 1, 2012 3:39 PM, "Luis Lavena" <luislavena@gmail.com> wrote:

Eugene A. wrote in post #1049652:
> I'm still a bit of a n00b. :slight_smile:
>
> I've tried this on both Ruby 1.8.7 and 1.9.3 and result is identical. I
> need to install a specific gem (bewildr) but when I try it I get this:
>
> C:\Ruby187\bin>gem install bewildr
> Fetching: bewildr-0.1.14.gem (100%)
> ERROR: While executing gem ... (Errno::EINVAL)
> Invalid argument - "c:
>

It seems one environment variable is affecting RubyGems to work
properly.

There is a similar entry on RubyInstaller wiki:

Troubleshooting 路 oneclick/rubyinstaller Wiki 路 GitHub

Which is caused by setting a network drive as home.

Can you verify what are the values of the following variables?

SET HOME
SET HOMEDRIVE
SET HOMEPATH
SET USERPROFILE
SET RUBYOPT

And post it back?

That will help us help you better.

--
Luis Lavena

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