biddyweb / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

Error installing in Centos 5.5 #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Create a vps with Centos 5.5 and kernel 2.6.18-194.26.1.el5.028stab081.1

2. wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

Actual result: Fatal error: Ruby SQLite3 support not found. Please install it 
first.

Expected result: Install succesfully

Version of the product: OVZ-web-panel 1.7

Server OS: Centos 5.5 in the hardware node and in the VPS

Browser: Chrome 9

Additional information: The complete error:

Building native extensions.  This could take a while...
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
Checking presence of the command: ruby
Ruby version: 1.8.5
Checking presence of the command: gem
RubyGems version: 1.3.5
Checking Ruby SQLite3 support: ruby -e "require 'rubygems'" -e "require 
'sqlite3/database'"
Fatal error: Ruby SQLite3 support not found. Please install it first.

I´m try to follow the steps from this issue 
http://code.google.com/p/ovz-web-panel/issues/detail?id=138 but without luck.

[root@bs063 ~]# gem install sqlite3-ruby --version '= 1.2.4'
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:120: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [x86_64-linux]

Aborted

Any ideas?

Original issue reported on code.google.com by jonathan...@gmail.com on 9 Mar 2011 at 12:47

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
"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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
;)

Original comment by sibprogrammer on 9 Mar 2011 at 4:23