Closed skull-squadron closed 11 years ago
Found the exact variable which causes the problem, but not the source: $LDFLAGS
in extconf.rb
works gem install posix-spawn
: $LDFLAGS=-L. -L'/Users/user/.rbenv/versions/1.9.3-p392/lib'
broken bundle
: $LDFLAGS="-L/usr/lib 2
" is not a typo, but part of the variable's value.
Found it. Bundler was not unescaping a setting that somehow was introduced. Removing the following line fixed this.
# ~/.bundle/config
# ...
BUNDLE_BUILD__POSIX-SPAWN: --with-ldflags=\"-L/usr/lib\"
Command
rm -rf vendor/bundle vendor/cache .bundle && bundle --path vendor/bundle --binstubs vendor/bundle/bin
Also tried
gem install posix-spawn
before bundling, andbundle package --all
and deprecatedbundle cache --all
to no avail.Suggestions?