Any help on this would be greatly appreciated. I am trying to install
1.9.3 on a RHEL Linux system that is pretty old. After running
./configure, I run ./make and get the error below.:
…
linking shared-object zlib.so
installing default zlib libraries
make[2]: Leaving directory /opt/local/src/ruby-1.9.3-p0/ext/zlib' make[2]: Entering directory/opt/local/src/ruby-1.9.3-p0’
linking ruby
make[2]: Leaving directory /opt/local/src/ruby-1.9.3-p0' make[1]: Leaving directory/opt/local/src/ruby-1.9.3-p0’
Generating RDoc documentation
./ruby: symbol lookup error:
/opt/local/src/ruby-1.9.3-p0/.ext/i686-linux/enc/encdb.so: undefined
symbol: rb_encdb_declare
make: *** [rdoc] Error 127
Load RVM into your bash file:
$ echo ‘[[ -s “$HOME/.rvm/scripts/rvm” ]]’
‘&& . “$HOME/.rvm/scripts/rvm”’ >> ~/.bashrc
Reload your bash file by restarting the terminal or by running source ~/.bashrc.
Test for rvm with type rvm | head -1. It should output rvm is a function.
Installing Ruby 1.9.3:
Make sure all dependencies are met by running rvm requirements.
Install Ruby 1.9.3 with rvm install ruby-1.9.3-head.
Use Ruby 1.9.3 by running rvm use ruby-1.9.3-head. You can also
set Ruby 1.9.3 to the default ruby installation by running rvm use ruby-1.9.3-head --default.
-----Messaggio originale-----
Da: Bryan D. [mailto:[email protected]]
Inviato: mercoled 28 dicembre 2011 00:29
A: ruby-talk ML
Oggetto: Re: make error: symbol lookup error: undefined symbol
Load RVM into your bash file:
$ echo '[[ -s “$HOME/.rvm/scripts/rvm” ]]
&& . “$HOME/.rvm/scripts/rvm” >> ~/.bash_profile
Reload your bash file by restarting the terminal or by running source ~/.bashrc.
Test for rvm with type rvm | head -1. It should output rvm is a function.
Installing Ruby 1.9.3:
Make sure all dependencies are met by running rvm requirements.
Install Ruby 1.9.3 with rvm install ruby-1.9.3-head.
Use Ruby 1.9.3 by running rvm use ruby-1.9.3-head. You can also
set Ruby 1.9.3 to the default ruby installation by running rvm use ruby-1.9.3-head --default.