Installation problem on ubuntu 14.04

587 views
Skip to first unread message

siva subrahmanyam

unread,
Jan 19, 2015, 1:49:09 PM1/19/15
to sqlite...@googlegroups.com

Hi all

When I do  gem install sqlite3 -v '1.3.8' I am getting following error: 

Building native extensions.  This could take a while...
ERROR
:  Error installing sqlite3:
 ERROR
: Failed to build gem native extension.


   
/home/siva/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150120-31113-1p4iub2.rb extconf.rb
checking
for sqlite3.h... yes
checking
for sqlite3_libversion_number() in -lsqlite3... yes
checking
for rb_proc_arity()... yes
checking
for sqlite3_initialize()... yes
checking
for sqlite3_backup_init()... yes
checking
for sqlite3_column_database_name()... yes
checking
for sqlite3_enable_load_extension()... yes
checking
for sqlite3_load_extension()... yes
checking
for sqlite3_open_v2()... yes
checking
for sqlite3_prepare_v2()... yes
checking
for sqlite3_int64 in sqlite3.h... yes
checking
for sqlite3_uint64 in sqlite3.h... yes
creating
Makefile


make
"DESTDIR=" clean


make
"DESTDIR="
compiling statement
.c
statement
.c: In function bind_param’:
statement
.c:261:7: warning: implicit declaration of function RBIGNUM [-Wimplicit-function-declaration]
       
if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
       
^
In file included from statement.c:1:0:
./sqlite3_ruby.h:16:34: error: invalid type argument of ‘->’ (have int’)
 
#define RBIGNUM_LEN(x) RBIGNUM(x)->len
                                 
^
statement
.c:261:11: note: in expansion of macro RBIGNUM_LEN
       
if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
           
^
statement
.c:261:32: error: SIZEOF_BDIGITS undeclared (first use in this function)
       
if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) {
                               
^
statement
.c:261:32: note: each undeclared identifier is reported only once for each function it appears in
statement
.c: In function reset_bang’:
statement
.c:293:7: warning: variable status set but not used [-Wunused-but-set-variable]
   
int status;
       
^
statement
.c: In function clear_bindings’:
statement
.c:313:7: warning: variable status set but not used [-Wunused-but-set-variable]
   
int status;
       
^
make
: *** [statement.o] Error 1


make failed
, exit code 2


Gem files will remain installed in /home/siva/.rvm/gems/ruby-2.2.0/gems/sqlite3-1.3.8 for inspection.
Results logged to /home/siva/.rvm/gems/ruby-2.2.0/extensions/x86_64-linux/2.2.0/sqlite3-1.3.8/gem_make.out



Which development library am I missing here?

Aaron Patterson

unread,
Jan 20, 2015, 12:56:03 PM1/20/15
to sqlite...@googlegroups.com
I don't think you're missing a development library.  I think you're using Ruby 2.2.0, and sqlite3 version 1.3.8 doesn't work on Ruby 2.2.0.  Can you try using a newer version of sqlite3, or an older version of Ruby?

--
You received this message because you are subscribed to the Google Groups "sqlite3-ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlite3-ruby...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Lionel FÉLICITÉ

unread,
Feb 2, 2015, 1:14:48 PM2/2/15
to sqlite...@googlegroups.com
You made my day  :D

[...]
Using sinatra 1.4.4
Installing sqlite3 1.3.10 (was 1.3.8)
Using bundler 1.7.12
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.


Thanks guys ^^

++

Lionel FÉLICITÉ

unread,
Feb 3, 2015, 6:02:25 AM2/3/15
to sqlite...@googlegroups.com
I forgot to tell that I'm using debian 7 and rvm 1.26.10.
Reply all
Reply to author
Forward
0 new messages