ruby - core dump when gem install rails -


i've been trying install rails on server running gentoo 2.2 somehow "core dumped" message when trying sudo gem install rails. compiled both ruby 1.9.3 , 2.0.0 , tried using rbenv end following error

/usr/local/lib/ruby/2.0.0/psych.rb:205: [bug] bus error ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]  -- control frame information ----------------------------------------------- c:0035 p:---- s:0165 e:000164 cfunc  :parse c:0034 p:0050 s:0160 e:000159 method /usr/local/lib/ruby/2.0.0/psych.rb:205 c:0033 p:0014 s:0153 e:ffffff34 method /usr/local/lib/ruby/2.0.0/psych.rb:153 c:0032 p:0014 s:0148 e:000147 method /usr/local/lib/ruby/2.0.0/psych.rb:129 c:0031 p:0036 s:0142 e:000141 method /usr/local/lib/ruby/2.0.0/rubygems/specification.rb:897 c:0030 p:0019 s:0137 e:000136 block  /usr/local/lib/ruby/2.0.0/rubygems/package.rb:398 [finish]  ...follows 20 lines of similar message 

i tried sudo gem install psych, deleting /usr/local/lib/ruby/*, compiling latest rubygems, reinstalling libyaml, , pretty can think of no luck. i'm quite new ruby , i'm not sure psych.rb nor parser.parse yaml, filename does, "bus error" seems occurring.

def self.parse_stream yaml, filename = nil, &block   if block_given?     parser = psych::parser.new(handlers::documentstream.new(&block))     parser.parse yaml, filename   else     parser = self.parser     parser.parse yaml, filename     parser.handler.root   end  end 

any appreciated.

update:
went bed after running ./configure --with-opt-dir=/usr/local && make && make install su , woke find gem running fine!
i'm guessing it's --with-opt-dir=/usr/local option made work (although i've tried setting option before, believe wasn't /usr/local).

copying answer comments in order remove question "unanswered" filter...

casper linked root cause issue filed on github here: https://github.com/sstephenson/ruby-build/issues/119#issuecomment-3608033

then several hours later, nigorojr confirmed recompiling source solved issue, aligning comments in aforementioned github ticket:

i went bed after running ./configure --with-opt-dir=/usr/local && make && make install su , woke find gem running fine! i'm guessing it's --with-opt-dir=/usr/local option made work (although i've tried setting option before, believe wasn't /usr/local).


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -