On Thu, Jul 19, 2012 at 2:24 PM, traubie <[email protected]> wrote:
> I've been getting an error (that seems similar to others posted here and on
> StackOverflow.  Basically, I'm trying to install DM and keep getting the
> following error:
>
>>> PS C:\ruby193\bin> ruby gem install datamapper
>>>
>>> Temporarily enhancing PATH to include DevKit...
>>>
>>> Building native extensions.  This could take a while...
>>>
>>> ERROR:  Error installing datamapper:
>>>
>>>         ERROR: Failed to build gem native extension.
>>>
>>>
>>>         "C:/Program Files (x86)/ruby-1.9.3/bin/ruby.exe" extconf.rb
>>>
>>> creating Makefile

The problem is that you installed Ruby in a path with spaces.

You need to install Ruby in the recommended location (C:\Ruby193) or
any path without spaces.

Some Ruby scripts and GCC do not like spaces and thus, fail to work properly.

>
> I've tried a few things, and I do have the DevKit installed...but I'm still
> getting that error.  Any ideas?
>

When you install RubyInstaller, it recommends install Ruby in a path
without spaces.

Development Kit states that you should install DevKit in a path
without spaces (point 3, extracting files)

If you follow the defaults things should work out of the box.

This is also covered in the troubleshooting page:
https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to