ruby on rails - bundle install fails on rugged but 'gem install rugged' works -
i trying install gitorious on redhat 5. following these instructions: https://gitorious.org/gitorious/pages/rhel_installation
one of steps is: rake db:create rails_env=production
that command fails foll error message:
[ gitorious ] sudo rake db:create rails_env=production not find libdolt-0.33.14 in of sources run `bundle install` install missing gems.
when ran 'bundle install' fails with:
0: makeup (0.4.4) /usr/local/lib/ruby/gems/2.0.0/specifications/makeup-0.4.4.gemspec gem::ext::builderror: error: failed build gem native extension. /usr/local/bin/ruby extconf.rb checking gmake... yes checking cmake... yes -- cmake .. -dbuild_clar=off -dthreadsafe=on -dbuild_shared_libs=off -dcmake_c_flags=-fpic package zlib not found in pkg-config search path. perhaps should add directory containing `zlib.pc' pkg_config_path environment variable package 'zlib', required 'libgit2', not found -- /usr/bin/gmake *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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/local/bin/ruby --with-git2-dir --without-git2-dir --with-git2-include --without-git2-include=${git2-dir}/include --with-git2-lib --without-git2-lib=${git2-dir}/ extconf.rb:16:in `sys': error: '/usr/bin/gmake' failed (runtimeerror) extconf.rb:59:in `block (2 levels) in <main>' extconf.rb:54:in `chdir' extconf.rb:54:in `block in <main>' extconf.rb:51:in `chdir' extconf.rb:51:in `<main>' extconf failed, exit code 1 gem files remain installed in /usr/local/lib/ruby/gems/2.0.0/bundler/gems/rugged-5f1b6d177132 inspection. results logged /usr/local/lib/ruby/gems/2.0.0/bundler/gems/extensions/x86_64-linux/2.0.0-static/rugged-0.19.0/gem_make.out /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:89:in `run' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:37:in `block in build' /usr/local/lib/ruby/2.0.0/tempfile.rb:324:in `open' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:17:in `build' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:160:in `chdir' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:160:in `block in build_extension' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:159:in `synchronize' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:159:in `build_extension' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:195:in `each' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions' /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/installer.rb:677:in `build_extensions' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/source/path.rb:174:in `generate_bin' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/source/git.rb:161:in `install' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:111:in `block in install_gem_from_spec' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:150:in `with_build_args' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:110:in `install_gem_from_spec' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:265:in `block in install_sequentially' /usr/local/lib/ruby/2.0.0/forwardable.rb:171:in `each' /usr/local/lib/ruby/2.0.0/forwardable.rb:171:in `each' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:264:in `install_sequentially' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:97:in `run' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/installer.rb:15:in `install' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/cli.rb:255:in `install' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in `run' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor.rb:363:in `dispatch' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/base.rb:440:in `start' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/cli.rb:10:in `start' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle:20:in `block in <top (required)>' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle:20:in `<top (required)>' /usr/local/bin/bundle:23:in `load' /usr/local/bin/bundle:23:in `<main>' error occurred while installing rugged (0.19.0), , bundler cannot continue. make sure `gem install rugged -v '0.19.0'` succeeds before bundling.
i did 'sudo gem install rugged -v '0.19.0'` , works:
[ gitorious ] sudo gem install rugged -v '0.19.0' building native extensions. take while... installed rugged-0.19.0 parsing documentation rugged-0.19.0 unable convert "\x80" ascii-8bit utf-8 ../../extensions/x86_64-linux/2.0.0-static/rugged-0.19.0/rugged/rugged.so, skipping unable convert "\x80" ascii-8bit utf-8 lib/rugged/rugged.so, skipping 1 gem installed
i tried 'sudo bundle install --verbose' again fails same way.
i created /usr/lib/pkgconfig/zlib.pc file , did setenv of pkg_congif_path add /usr/lib/pkgconfig.
zlib.pc:
prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include sharedlibdir=/usr/lib name: zlib description: zlib compression library version: 1.2.3 requires: libs: -l${libdir} -l${sharedlibdir} -lz cflags: -i${includedir}
i ran 'sudo bundle install --verbose' , fails same way...
the 'gemfile' in main gitorious directory.
any suggestions?
you're missing dependencies. don't know entirety of need, based on libdolt
, libgit2
need following:
yum install python-devel libicu-devel zlib-devel
Comments
Post a Comment