Error installing sqlite gems

A

Andrea Aaa

I've tried from NetBeans to install sqlite gems, but I always got the
same error message:

JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

C:/Programmi/NetBeans 6.1/ruby2/jruby-1.1/bin/jruby.bat.exe extconf.rb
install sqlite3-ruby --no-rdoc --no-ri --version > 0


Gem files will remain installed in C:/Programmi/NetBeans
6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for
inspection.
Results logged to C:/Programmi/NetBeans
6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2/ext/sqlite3_api/gem_make.out


What do I have to do to use sqlite gems? I'm new with ruby so maybe it's
a stupid problem.

Thanks to everyone
 
A

Andrea Aaa

Daniel said:
You can't use native extensions under JRuby yet. You will either need to
install and use a native Ruby environment (how you do this depends on
your OS), or select a different database backend - postgresql has a pure
Ruby driver available, off the top of my head...

Dan


Ok so what should I do with windows XP to run application with NetBeans
using those gems?

Thanks

Andrea
 
A

Andrea Aaa

Why i can't use sqlite3-ruby gems? it gives me this error:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- sqlite3-ruby (LoadError)

but i installed it! by the way, when it asks me wich version of gem I
want to install:

1. sqlite3-ruby 1.2.2 (mswin32)
2. sqlite3-ruby 1.2.2 (ruby)
3. sqlite3-ruby 1.2.1 (mswin32)
4. sqlite3-ruby 1.2.1 (ruby)

if I choose 1 or 3, it works but when I try to use them i get the error
above, while if i choose 2 or 4, it gives me this error:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install sqlite3-ruby --no-rdoc --no-ri
--include-dependencies --version > 0

Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2/ext/sqlite3_api/gem_make.out

I really don't know what to do, also becaus I'm new with ruby....

Thanks for help
 
G

Glen Holcomb

[Note: parts of this message were removed to make it a legal post.]

Why i can't use sqlite3-ruby gems? it gives me this error:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- sqlite3-ruby (LoadError)

but i installed it! by the way, when it asks me wich version of gem I
want to install:

1. sqlite3-ruby 1.2.2 (mswin32)
2. sqlite3-ruby 1.2.2 (ruby)
3. sqlite3-ruby 1.2.1 (mswin32)
4. sqlite3-ruby 1.2.1 (ruby)

if I choose 1 or 3, it works but when I try to use them i get the error
above, while if i choose 2 or 4, it gives me this error:

ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install sqlite3-ruby --no-rdoc --no-ri
--include-dependencies --version > 0

Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for inspection.
Results logged to

c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2/ext/sqlite3_api/gem_make.out

I really don't know what to do, also becaus I'm new with ruby....

Thanks for help
From that first error message I would guess your require line is wrong. You
will need require 'sqlite3' not require 'sqlite3-ruby'

Hope that helps.
 
L

Luis Lavena

[Note:  parts of this message were removed to make it a legal post.]



Why i can't use sqlite3-ruby gems? it gives me this error:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- sqlite3-ruby (LoadError)
but i installed it! by the way, when it asks me wich version of gem I
want to install:
1. sqlite3-ruby 1.2.2 (mswin32)
2. sqlite3-ruby 1.2.2 (ruby)
3. sqlite3-ruby 1.2.1 (mswin32)
4. sqlite3-ruby 1.2.1 (ruby)
if I choose 1 or 3, it works but when I try to use them i get the error
above, while if i choose 2 or 4, it gives me this error:
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
   ERROR: Failed to build gem native extension.
ruby extconf.rb install sqlite3-ruby --no-rdoc --no-ri
--include-dependencies --version > 0
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2 for inspection.
Results logged to

I really don't know what to do, also becaus I'm new with ruby....
Thanks for help

From that first error message I would guess your require line is wrong.  You
will need require 'sqlite3' not require 'sqlite3-ruby'

It also requires you load rubygems:

require 'rubygems'
require 'sqlite3'

# your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,930
Messages
2,570,072
Members
46,522
Latest member
Mad-Ram

Latest Threads

Top