I have had issues with bundler when using it on a windows machine. I
initially thought it was because of spaces in the directory path but then
when trying it on a location without spaces, it still had problems. If I
try to install do_sqlite3 using gem install it works but if I try to
install it using gem bundle, it doesn''t. A cli session showing this is
at
http://pastie.org/687220
Below is information from Luis in reply to that pastie.
thanks,
Dominic
---------- Forwarded message ----------
From: Luis Lavena <luislavena@gmail.com>
Date: Fri, Nov 6, 2009 at 12:05 PM
Subject: Re: mkmf and spaces in directory path fails
To: rubyinstaller@googlegroups.com
On Fri, Nov 6, 2009 at 3:59 PM, Dominic Sisneros <dsisnero@gmail.com>
wrote:> Luis,
>
> Even when using a directory without spaces, I get different results for
gem> install and gem bundle. Here''s a session where I try to install
do_sqlite3> and it works with gem install but not gem bundle
>
I''m not familiarized on how things are done in Bundler, but most
likely they are ignoring the cross-platform principles (assume nothing
about your environment)
> [...]
>
> C:\test>echo "Now trying gem bundle"
> "Now trying gem bundle"
>
> C:\test>gem bundle
> Calculating dependencies...
> Updating source: http://gems.rubyforge.org
> Downloading addressable-2.1.1.gem
> Downloading bcrypt-ruby-2.1.2.gem
> Downloading data_objects-0.10.0.gem
> Downloading do_sqlite3-0.10.0.gem
> Downloading extlib-0.9.13.gem
> Downloading json-1.1.9.gem
> Installing bcrypt-ruby (2.1.2)
> Building native extensions. This could take a while...
Looks like building native extension like bcrypt or json works... so
the issue is other.
> Installing do_sqlite3 (0.10.0)
> Building native extensions. This could take a while...
> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
> ERROR: Failed to build gem native extension.
>
> C:/ruby/bin/ruby.exe extconf.rb
> checking for sqlite3.h... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
>
Please pastie the output of gem_make.out and mkmf.log generated in the
gem directory.
>
> C:\test>echo "For some reason do_sqlite3 doesn''t like gem
bundle"
> "For some reason do_sqlite3 doesn''t like gem bundle"
do_sqlite3 needs sqlite3.h header and libraries, which are not bundled
or present with DevKit, you should get those externally.
Unless you can specify a option to do_sqlite3 to find these, you
should put them inside /mingw (include and lib)
--
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
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---