HELP: I can not install sqlite3 (evil gem)

21 views
Skip to first unread message

Vinícius Rodrigues

unread,
Aug 11, 2011, 3:40:21 PM8/11/11
to rubyonra...@googlegroups.com
vmserver:~# gem install sqlite3
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... no
checking for sqlite3_initialize()... no
checking for sqlite3_backup_init()... no
checking for column_database_name()... yes
checking for sqlite3_enable_load_extension()... yes
checking for sqlite3_load_extension()... yes
creating Makefile

make
sh: make: command not found

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
vmserver:~#

Can someone help me?

Hassan Schroeder

unread,
Aug 11, 2011, 3:52:47 PM8/11/11
to rubyonra...@googlegroups.com
2011/8/11 Vinícius Rodrigues <swoop...@hotmail.com>:

> make
> sh: make: command not found

> Results logged to
> /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out

> Can someone help me?

"command not found" sounds like a pretty obvious clue :-)

Besides that, have you looked at the file mentioned above to see if
there's any other useful information there?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Tim Wattenberg

unread,
Aug 11, 2011, 4:02:33 PM8/11/11
to rubyonra...@googlegroups.com


2011/8/11 Vinícius Rodrigues <swoop...@hotmail.com>
[...]
Can someone help me?

Are you logged in as root?
Otherwise try "sudo gem install sqlite3".
(Maybe you are not allowed to call "make" as a normal user, I can't imagine that a system does ship without "make").

Vinícius Rodrigues

unread,
Aug 11, 2011, 4:24:12 PM8/11/11
to rubyonra...@googlegroups.com
Yes, I'm logged in as root.
I'm using debian lenny...

Vinícius Rodrigues

unread,
Aug 11, 2011, 4:44:12 PM8/11/11
to rubyonra...@googlegroups.com
OBVIOUS! THANKS!!!
$ apt-get install build-essential
:)
Reply all
Reply to author
Forward
0 new messages