[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can't install sqlite3-ruby gem in Windows

Nova Pon

6/4/2009 4:33:00 PM

I'm also having problems installing the sqlite3 gem on Windows. I
downloaded sqlite-3_6_14_2.zip and sqlitedll-3_6_14_2.zip from
http://www.sqlite.org/dow... and extracted them to
/WINDOWS/SYSTEM 32. But when I type gem install sqlite3-ruby in the
command line I get:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
checking for fdatasync() in rt.lib... no
checking for sqlite3.h... no

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
2.4 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
api/gem_make.out

C:\Documents and Settings\Nova>gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
checking for fdatasync() in rt.lib... no
checking for sqlite3.h... no

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
2.4 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
api/gem_make.out

C:\Documents and Settings\Nova>gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
checking for fdatasync() in rt.lib... no
checking for sqlite3.h... no

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
2.4 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
api/gem_make.out


Please help!! Thanks
--
Posted via http://www.ruby-....

5 Answers

Luis Lavena

6/5/2009 12:11:00 AM

0

On Jun 4, 1:32 pm, Nova Pon <nova....@gmail.com> wrote:
> I'm also having problems installing the sqlite3 gem on Windows.  I
> downloaded  sqlite-3_6_14_2.zip and sqlitedll-3_6_14_2.zip fromhttp://www.sqlite.org/downlo... extracted them to
> /WINDOWS/SYSTEM 32.  But when I type gem install sqlite3-ruby in the
> command line I get:
> Building native extensions.  This could take a while...
> ERROR:  Error installing sqlite3-ruby:
>         ERROR: Failed to build gem native extension.
>
> c:/ruby/bin/ruby.exe extconf.rb
> checking for fdatasync() in rt.lib... no
> checking for sqlite3.h... no
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
> 2.4 for inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
> api/gem_make.out
>
> C:\Documents and Settings\Nova>gem install sqlite3-ruby
> Building native extensions.  This could take a while...
> ERROR:  Error installing sqlite3-ruby:
>         ERROR: Failed to build gem native extension.
>
> c:/ruby/bin/ruby.exe extconf.rb
> checking for fdatasync() in rt.lib... no
> checking for sqlite3.h... no
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
> 2.4 for inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
> api/gem_make.out
>
> C:\Documents and Settings\Nova>gem install sqlite3-ruby
> Building native extensions.  This could take a while...
> ERROR:  Error installing sqlite3-ruby:
>         ERROR: Failed to build gem native extension.
>
> c:/ruby/bin/ruby.exe extconf.rb
> checking for fdatasync() in rt.lib... no
> checking for sqlite3.h... no
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1
> 2.4 for inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_
> api/gem_make.out
>
> Please help!! Thanks

This has been covered before on this list, but just for the record:

Latest version of sqlite3-ruby lacks binaries for Windows. For you to
build using version 1.2.4 of the gem also requires a compiler, which
in your case must be Microsoft Visual C 6.0

Since is an obsolete compiler, highly unlikely you will find a
downloadable version.

Please force the installation to prior version:

gem install sqlite3-ruby -v=1.2.3

HTH,
--
Luis Lavena

John T.

6/5/2009 12:53:00 PM

0

Luis Lavena wrote:
> On Jun 4, 1:32�pm, Nova Pon <nova....@gmail.com> wrote:

>> Please help!! Thanks
>
> This has been covered before on this list, but just for the record:
>
> Latest version of sqlite3-ruby lacks binaries for Windows. For you to
> build using version 1.2.4 of the gem also requires a compiler, which
> in your case must be Microsoft Visual C 6.0

This is not quite true. I have several versions of Visual Studio on this
system - VC 6, Visual Studio 2003, 2005 and 2008, and none of these can
compile the gem, they all kick out various errors.

> Since is an obsolete compiler, highly unlikely you will find a
> downloadable version.
>
> Please force the installation to prior version:
>
> gem install sqlite3-ruby -v=1.2.3


This is the only solution. Especially since the (ex)maintainer of gem is
not supporting it anymore.
--
Posted via http://www.ruby-....

Nova Pon

6/5/2009 5:47:00 PM

0

Thanks so much! That worked
--
Posted via http://www.ruby-....

Luis Lavena

6/5/2009 11:15:00 PM

0

On 5 jun, 09:53, "John T." <joh...@charter.net> wrote:
> Luis Lavena wrote:
> > On Jun 4, 1:32 pm, Nova Pon <nova....@gmail.com> wrote:
> >> Please help!! Thanks
>
> > This has been covered before on this list, but just for the record:
>
> > Latest version of sqlite3-ruby lacks binaries for Windows. For you to
> > build using version 1.2.4 of the gem also requires a compiler, which
> > in your case must be Microsoft Visual C 6.0
>
> This is not quite true. I have several versions of Visual Studio on this
> system - VC 6, Visual Studio 2003, 2005 and 2008, and none of these can
> compile the gem, they all kick out various errors.
>

Because you also need to correct the extconf.rb in the source file and
patch rbconfig of your ruby to support your compiler.

Plus you need headers and libs of sqlite3 to successfuly built it.

Been there, done that.

> > Since is an obsolete compiler, highly unlikely you will find a
> > downloadable version.
>
> > Please force the installation to prior version:
>
> > gem install sqlite3-ruby -v=1.2.3
>
> This is the only solution. Especially since the (ex)maintainer of gem is
> not supporting it anymore.

That's why I've been working on a 1.8 and 1.9 version of the gem,
forked from original (ex)maintainer:

http://github.com/luislavena/sqlite3-ruby/t...

Still tests are failing on 1.9, one of the reasons I'm not sending a
pull request to James Buck to merge and integrate those.

Also, working on fat binaries for 1.9 and 1.8 to workaround issues
when installing the exact same gem binary on differnt ruby versions.

Busy busy busy :P

Regards,
--
Luis Lavena

Roger Pack

6/6/2009 6:42:00 PM

0

> This is not quite true. I have several versions of Visual Studio on this
> system - VC 6, Visual Studio 2003, 2005 and 2008, and none of these can
> compile the gem, they all kick out various errors.

Luis' fork does build with mingw.
http://programming-gone-awry.blogspot.com/2009/05/how-to-install-sqlite3-binaries-on...
might help.
Cheers!
-=r
--
Posted via http://www.ruby-....