Created
June 12, 2012 13:12
-
-
Save leifg/2917422 to your computer and use it in GitHub Desktop.
Necessary information for bundler issue with ruby 1.8.7 and native extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command I ran: | |
bundle install --path vendor/local | |
--- | |
stacktrace: | |
stacktrace: | |
Fetching gem metadata from http://rubygems.org/.. | |
Installing json (1.7.3) with native extensions | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/home/leifg/.rbenv/versions/1.8.7-p352/bin/ruby extconf.rb | |
creating Makefile | |
make | |
Makefile:128: warning: overriding commands for target `/home/leifg/code/other/a' | |
Makefile:122: warning: ignoring old commands for target `/home/leifg/code/other/a' | |
Makefile:128: warning: overriding commands for target `space' | |
Makefile:122: warning: ignoring old commands for target `space' | |
/usr/bin/gcc -I. -I/home/leifg/.rbenv/versions/1.8.7-p352/lib/ruby/1.8/x86_64-linux -I/home/leifg/.rbenv/versions/1.8.7-p352/lib/ruby/1.8/x86_64-linux -I. -I'/home/leifg/.rbenv/versions/1.8.7-p352/include' -fPIC -g -O3 -Wall -c parser.c | |
/usr/bin/gcc -shared -o parser.so parser.o -L. -L/home/leifg/.rbenv/versions/1.8.7-p352/lib -Wl,-R/home/leifg/.rbenv/versions/1.8.7-p352/lib -L. -L'/home/leifg/.rbenv/versions/1.8.7-p352/lib' -rdynamic -Wl,-export-dynamic -lrt -ldl -lcrypt -lm -lc | |
make install | |
Makefile:128: warning: overriding commands for target `/home/leifg/code/other/a' | |
Makefile:122: warning: ignoring old commands for target `/home/leifg/code/other/a' | |
Makefile:128: warning: overriding commands for target `space' | |
Makefile:122: warning: ignoring old commands for target `space' | |
mkdir -p /home/leifg/code/other/a | |
mkdir -p space | |
mkdir -p path/vendor/local/ruby/1.8/gems/json-1.7.3/lib/json/ext | |
/usr/bin/install -c -m 0755 parser.so /home/leifg/code/other/a space path/vendor/local/ruby/1.8/gems/json-1.7.3/lib/json/ext | |
/usr/bin/install: omitting directory `/home/leifg/code/other/a' | |
/usr/bin/install: omitting directory `space' | |
make: *** [path/vendor/local/ruby/1.8/gems/json-1.7.3/lib/json/ext/parser.so] Error 1 | |
Gem files will remain installed in /home/leifg/code/other/a space path/vendor/local/ruby/1.8/gems/json-1.7.3 for inspection. | |
Results logged to /home/leifg/code/other/a space path/vendor/local/ruby/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out | |
An error occured while installing json (1.7.3), and Bundler cannot continue. | |
Make sure that `gem install json -v '1.7.3'` succeeds before bundling. | |
--- | |
Gemfile: | |
source :rubygems | |
gem 'json' | |
--- | |
Gemfile.lock: | |
GEM | |
remote: http://rubygems.org/ | |
specs: | |
json (1.7.3) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
json | |
--- | |
bundler config: | |
Settings are listed in order of priority. The top value will be used. | |
disable_shared_gems | |
Set for your local app (/home/leifg/code/other/a space path/.bundle/config): "1" | |
path | |
Set for your local app (/home/leifg/code/other/a space path/.bundle/config): "vendor/local" | |
--- | |
bundler version: 1.1.4 (also tried with 1.1.3 and 1.0.21) | |
--- | |
ruby version: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] (using rbenv) | |
--- | |
gem version: 1.8.15 | |
--- | |
neither rubygems-bundler nor open_gem is installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment