/home/user/packages/ruby/bin/ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h... no
make
make: *** No rule to make target `ruby.h', needed by
`sqlite3_api_wrap.o'. Stop.
Gem files will remain installed in
/home/user/packages/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1 for
inspection.
Results logged to
/home/user/packages/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out
any help...
--
Posted via http://www.ruby-forum.com/.
after installing "build-essential ruby-1.8dev" the again same problem
....
Posted via http://www.ruby-forum.com/.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.
>
> sudo apt-get install sqlite3 libsqlite3-dev
> sudo gem install sqlite3-ruby
>
> works!!
>
Yes, when you install many gems, they get built natively, so you need
development libraries for that to work correctly.
Peace,
Phillip
> I'm using Suse10.3, with yast you can install the sqlite3 gem + yast
> shall
> automatic install all other libs you need.
> No problem with Suse.
What about on windows?
-Thufir
Read: Installing SQLite 3 on Windows
> 1. Install SQLite3 for Windows by downloading the following 2 zip
> files and unzipping them into /WINDOWS/system32
I'm not on Windows at the moment. I put the DLL into /WINDOWS/System32/
but just put the binary into C:\sqlite\... and then added the location of
the binary to the PATH variable through sysdm.cpl, could this be a
problem?
I was getting some annoying errors when running an app on the Windows
system (after putting the require 'rubygems' into the .rb files). Not a
rails app, but it was using ActiveRecord and sqlite.
In Windows, I could get into sqlite3 through the command line easily, and
the sqlite add-on for Firefox worked fine.
-Thufir
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
Thanks! that worked