Open wsch32 opened 11 years ago
Have you been able to fix this problem? I tried commenting
and bundle install runs correctly
When I try to access the system i am seeing this issue:
Bundler couldn't find some gems.Did you run bundle install
? (RuntimeError)
/var/owm/OpenWISP-Manager/trunk/config/../config/preinitializer.rb:19
/var/owm/OpenWISP-Manager/trunk/config/boot.rb:28:in load' /var/owm/OpenWISP-Manager/trunk/config/boot.rb:28:in
preinitialize'
/var/owm/OpenWISP-Manager/trunk/config/boot.rb:10:in boot!' /var/owm/OpenWISP-Manager/trunk/config/boot.rb:125 /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
/opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in require' /var/owm/OpenWISP-Manager/trunk/config/environment.rb:7 /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
/opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in require' /opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/passenger-4.0.37/helper-scripts/classic-rails-preloader.rb:96:in
preload_app'
/opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/passenger-4.0.37/helper-scripts/classic-rails-preloader.rb:184
comment
and add gem 'libarchive-static' in the Gemfile It should work.
e~~,i met the same problem
I solved with khanbash`s way
I used the khanbash`s way but I can't install "libarchive-ruby gem" gives the same problem like "libarchive gem" does. gem 'libarchive-static' gives all the functionality provided by gem 'libarchive-ruby' ? Really frustated with this problem please help me solve this.
I got simillar error after run apt-get install libarchive-dev it works corretly
is there someone come accross this problem? It seems that missing archive.h when compile.
root@ubuntu:/var/www/OpenWISP-Manager-master# bundle install --deployment The source :gemcutter is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not. Fetching gem metadata from http://rubygems.org/........ Fetching gem metadata from http://rubygems.org/.. Using rake (0.9.2) Using acl9 (0.12.0) Using activesupport (2.3.11) Using rack (1.1.2) Using actionpack (2.3.11) Using actionmailer (2.3.11) Using activerecord (2.3.11) Using activeresource (2.3.11) Using authlogic (2.1.6) Using cap-recipes (0.3.36) Using highline (1.6.2) Using net-ssh (2.2.1) Using net-scp (1.0.4) Using net-sftp (2.0.5) Using net-ssh-gateway (1.1.0) Using capistrano (2.9.0) Using capistrano-ext (1.2.1) Using capistrano_colors (0.5.5) Using chronic (0.4.4) Using columnize (0.3.3) Using exception_notification (2.3.3.0) Using geokit (1.6.0) Using i18n (0.4.2) Installing libarchive (0.1.2) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating config.h checking for config.h... yes checking for archive.h... no * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.9.1
Gem files will remain installed in /var/www/OpenWISP-Manager-master/vendor/bundle/ruby/1.9.1/gems/libarchive-0.1.2 for inspection. Results logged to /var/www/OpenWISP-Manager-master/vendor/bundle/ruby/1.9.1/gems/libarchive-0.1.2/ext/gem_make.out An error occurred while installing libarchive (0.1.2), and Bundler cannot continue. Make sure that
gem install libarchive -v '0.1.2'
succeeds before bundling.have_header: checking for config.h... -------------------- yes
"gcc -o conftest -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_FORTIFYSOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -lc" checked program was: /* begin / 1: #include "ruby.h" 2: 3: int main() {return 0;} /_ end */
"gcc -E -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_FORTIFYSOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include
/_ end */
have_header: checking for archive.h... -------------------- no
"gcc -E -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_FORTIFYSOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -o conftest.i" conftest.c:3:21: fatal error: archive.h: No such file or directory compilation terminated. checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include
/_ end */