From: ara.t.howard@... Date: 2006-12-17T15:12:12+09:00 Subject: Re: rubygem setup.rb failing On Sun, 17 Dec 2006, Michael Satterwhite wrote: > I'm having to setup multiple machines, and I've got a new problem (at > least each time my problem is new ... I'm not repeating the old ones) > > I've compiled ruby and installed it - I've put it into /usr/local/bin, > if that's a problem, I can redo it to whereever. Note that I didn't see > any errors in the ruby compile / install > > Next was an attempt to install rubygems. I ran > ruby setup.rb > > from the directory with rubygems. It starts out OK, then I get > ------------------------- > /usr/local/lib/ruby/1.8/i686-linux/syck.so: > /usr/local/lib/ruby/1.8/i686-linux/syck.so: undefined symbol: > __stack_chk_fail_local - /usr/local/lib/ruby/1.8/i686-linux/syck.so > (LoadError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/local/lib/ruby/1.8/yaml/syck.rb:5 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/local/lib/ruby/1.8/yaml.rb:11 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/package.rb:6 > ... 11 levels... > from setup.rb:887:in `exec_install' > from setup.rb:705:in `invoke' > from setup.rb:674:in `invoke' > from setup.rb:1352 > ------------------------------------------ > > Either I'm missing something - or my ruby install wasn't as clean as it > looked. I looked at the source, and I thought that all I needed to do > was install the yaml and syck files onto the machine (I'm running > kubuntu) - but that didn't seem to do any good. > > Would someone be so kind as to help here. > > Thanks in advance > ---Michael i'm guessing you have more that one ruby installs on your system and compiled without setting LD_RUN_PATH or LD_LIBRARY_PATH. for any c code you compile you always want to consider these two env vars and their effect on ld.so. if installing into /usr/local/bin you'd want to do this export LD_RUN_PATH=/usr/local/lib export LD_LIBRARY_PATH=/usr/local/lib ./configure --prefix=/usr/local && make && sudo make install export PATH=/usr/local/bin:$PATH and ruby should work. to confirm that this might be your problem try which -a ruby if you see two the above is likely. man ld.so.conf or google LD_RUN_PATH/LD_LIBRARY_PATH for more. this is incomplete, but it might shed some light http://sciruby.codeforpeople.com/sr.cgi/HowTosAndTutorials/CompilationFuTutorial regards. -a -- if you find yourself slandering anybody, first imagine that your mouth is filled with excrement. it will break you of the habit quickly enough. - the dalai lama