gcc - Ruby 1.8.6 `gem install` segfaults with "abort trap 6" -
i can't install gems on fresh rbenv-installed ruby 1.8.6 on mountain lion. gem install
segfaults , shell prints "abort trap: 6":
$ rubylib= rubyopt= bash $ gem install --verbose bundler http://rubygems.org/latest_specs.4.8.gz 302 moved temporarily http://production.s3.rubygems.org/latest_specs.4.8.gz 304 not modified installing gem bundler-1.3.5 abort trap: 6
there similar issues reported answer of them need use non-apple gcc 4.2 build such old version of ruby. doesn't apply me, since i've installed gcc brew install apple-gcc42
, rbenv install process picked up, evident below:
$ gem env rubygems environment: - rubygems version: 1.3.7 - ruby version: 1.8.6 (2010-09-02 patchlevel 420) [i686-darwin12.3.0] - installation directory: /users/mislav/.rbenv/versions/1.8.6-p420/lib/ruby/gems/1.8 - ruby executable: /users/mislav/.rbenv/versions/1.8.6-p420/bin/ruby - executable directory: /users/mislav/.rbenv/versions/1.8.6-p420/bin - rubygems platforms: - ruby - x86-darwin-12 - gem paths: - /users/mislav/.rbenv/versions/1.8.6-p420/lib/ruby/gems/1.8 - /users/mislav/.gem/ruby/1.8 - gem configuration: - "gem" => "--no-ri --no-rdoc" - remote sources: - http://rubygems.org/ $ ruby -rrbconfig -e 'puts rbconfig::config["configure_args"]' '--prefix=/users/mislav/.rbenv/versions/1.8.6-p420' 'cc=/usr/local/bin/gcc-4.2' 'cflags= -wno-error=shorten-64-to-32' 'ldflags=-l'\\''/users/mislav/.rbenv/versions/1.8.6-p420/lib'\\'' ' 'cppflags=-i'\\''/users/mislav/.rbenv/versions/1.8.6-p420/include'\\'' ' $ /usr/local/bin/gcc-4.2 --version i686-apple-darwin11-gcc-4.2.1 (gcc) 4.2.1 (apple inc. build 5666) (dot 3)
the difference can see @ glance installed gcc-4.2
/usr/bin
, used /usr/local/bin
. shouldn't make difference, suppose it's possible makefile hardcoded /usr/bin
(which more common - guess?) gcc
.
since mentioned used homebrew install gcc-4.2
, i'll add used manual method, following these instructions: http://caiustheory.com/install-gcc-421-apple-build-56663-with-xcode-42. again don't think should make difference, never know.
Comments
Post a Comment