gem update fails on make sqlite3

Anyone have any idea how to interpret this? I've been at it for an
hour and I'm not getting anywhere. Doesn't seem to be any other
instances of this online either.

User: root
OS: CentOS 5.4 (up to date as of 20100610 06:30)
Rails -v: 2.3.8
Gem -v: 1.3.6

<code>
# gem update
Updating installed gems
Updating sqlite3-ruby
Building native extensions. This could take a while...
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_column_database_name()... no
checking for sqlite3_enable_load_extension()... no
checking for sqlite3_load_extension()... no
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DHAVE_RB_PROC_ARITY -I/usr/local/include -I/opt/local/include -I/usr/
include -fPIC -O2 -g -Wall -Wno-parentheses -O3 -Wall -Wcast-qual -
Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -o sqlite3.o -
c sqlite3.c
sqlite3.c: In function âInit_sqlite3_nativeâ:
sqlite3.c:27: warning: implicit declaration of function
âsqlite3_initializeâ
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DHAVE_RB_PROC_ARITY -I/usr/local/include -I/opt/local/include -I/usr/
include -fPIC -O2 -g -Wall -Wno-parentheses -O3 -Wall -Wcast-qual -
Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -o
statement.o -c statement.c
statement.c: In function âinitializeâ:
statement.c:53: warning: implicit declaration of function
âsqlite3_prepare_v2â
statement.c:64: warning: passing argument 2 of ârb_str_newâ as signed
due to prototype
statement.c: In function âbind_paramâ:
statement.c:269: error: âsqlite3_int64â undeclared (first use in this
function)
statement.c:269: error: (Each undeclared identifier is reported only
once
statement.c:269: error: for each function it appears in.)
statement.c: In function âcolumn_nameâ:
statement.c:346: warning: passing argument 2 of ârb_str_newâ as signed
due to prototype
statement.c: In function âcolumn_decltypeâ:
statement.c:364: warning: passing argument 2 of ârb_str_newâ as signed
due to prototype
make: *** [statement.o] Error 1
</code>

Any help or insight would be appreciated. Thanks.

hi, try it before:

yum groupinstall “Development Tools”

:wink:

Hey Luciano,

Thanks for the reply. That may fix it, but it’s like nuking a mouse.
I don’t need all of those tools - especially not xorg - on my headless
virtual box.

I think I understand what you’re getting at - something’s missing - ok,
but what…? The error message isn’t exactly clear. Do you have any
more specific idea what might be the actual cause of the error?

sqlite3-ruby 1.3.0 is busted. Stick with 1.2.5 for now.

gem install sqlite3-ruby -v=1.2.5

u need some packs:
build-essentials;
gcc
gcc++
etc

it command installed all.