Closed GoogleCodeExporter closed 9 years ago
Try with more debug information:
gem install sqlite3-ruby -V --backtrace --debug --no-ri --no-rdoc --version '=
1.2.4'
You can also try to upgrade ruby somehow or try to find precompiled
ruby-sqlite3 package (not sure about name on Centos).
Original comment by sibprogrammer
on 9 Mar 2011 at 3:24
Hi,
Thanks for the reply. I run the command, this is the output:
[root@bs063 ~]# gem install sqlite3-ruby -V --backtrace --debug --no-ri
--no-rdoc --version '= 1.2.4'
Exception `NameError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:161 - uninitialized
constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems.rb:827 -
Could not find RubyGem test-unit (>= 0)
Exception `Gem::LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems.rb:827 -
Could not find RubyGem sources (> 0.0.1)
GET 302 Found: http://gems.rubyforge.org/specs.4.8.gz
GET 200 OK: http://production.s3.rubygems.org/specs.4.8.gz
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/root/.gem/specs/gems.rubyforge.org%80
Installing gem sqlite3-ruby-1.2.4
Exception `IOError' at /usr/lib/ruby/site_ruby/1.8/rubygems/format.rb:50 -
closed stream
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq/faq.html
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq/faq.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/doc/faq/faq.yml
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/extconf.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/Makefile
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/MANIFEST
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/mkmf.log
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/sqlite3_api.i
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/sqlite3_api_wra
p.c
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/win32
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/win32/build.bat
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/constants.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/database.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/dl
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/dl/api.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/dl
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/dl/driver.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/native
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/driver/native/drive
r.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/errors.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/pragmas.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/resultset.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/statement.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/translator.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/value.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/version.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/bm.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/driver/dl
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/driver/dl/tc_driver.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/mocks.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/native-vs-dl.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/tc_database.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/tc_errors.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/tc_integration.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/test/tests.rb
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists -
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/README.rdoc
Building native extensions. This could take a while...
Exception `Errno::ENOMEM' at
/usr/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb:46 - Cannot allocate memory
- /usr/bin/ruby extconf.rb 2>&1
Exception `Gem::Installer::ExtensionBuildError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:504 - ERROR: Failed to build
gem native extension.
/usr/bin/ruby extconf.rb
Gem files will remain installed in
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
Gem files will remain installed in
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to
/usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
In other test vps i update ruby to 1.8.7 because i read the error is because
sqlite in ruby requieres at least that version, but without success.
Original comment by jonathan...@gmail.com
on 9 Mar 2011 at 3:43
"Cannot allocate memory" is the reason of your problem. Do you try to do it
inside VPS? If so you should increase memory limit. Also check failcnt column
for non-zero values: cat /proc/user_beancounters
Original comment by sibprogrammer
on 9 Mar 2011 at 4:03
Hi,
I just posting the same, was a memory problem. It´s my fault.
Sorry for the job, and thanks a lot for the command with the necessary debug to
find the problem.
Great support!
Original comment by jonathan...@gmail.com
on 9 Mar 2011 at 4:06
;)
Original comment by sibprogrammer
on 9 Mar 2011 at 4:23
Original issue reported on code.google.com by
jonathan...@gmail.com
on 9 Mar 2011 at 12:47