symbol look up errors

the rake one occured after jolicloud updated, the ruby one cuz I messed up the ls -s command

the errors:

bash: /usr/bin/rake: /usr/bin/ruby1.8: bad interpreter: No such file or directory

I'm running ruby1.9.2

ruby: symbol lookup error: /usr/local/lib/ruby/1.9.1/i686-linux/enc/encdb.so: undefined symbol: rb_enc_set_base

help?

thanks, Andrew

Andrew Jones wrote in post #969085:

the rake one occured after jolicloud updated,

What did you update?

the ruby one cuz I messed up the ls -s command

Huh?

the errors:

bash: /usr/bin/rake: /usr/bin/ruby1.8: bad interpreter: No such file or directory

I'm running ruby1.9.2

Looks like Rake is pointing to the wrong Ruby. You might need to reinstall Rake; RVM might also be useful to manage different Rubies.

ruby: symbol lookup error: /usr/local/lib/ruby/1.9.1/i686-linux/enc/encdb.so: undefined symbol: rb_enc_set_base

Are you running Ruby 1.9.2 or 1.9.1? Sure looks like 1.9.1...

help?

thanks, Andrew

Best,

jolicloud = linux based os

just did an install of ruby1.9.2, but the error appears to point to 1.9.1

the ruby error occured after I tried to change the symbolic link to ruby to fix rake.

one more thing the ruby error happened after I tried to ln -s ruby to another directory and failed. I'm wondering how I reset a symbolic link?

apparently the rake that comes with 1.9.2 is buggy, so had to downgrade to 1.9.1 and then delete the rake gemspecs in specifications then re-install rake. appears to be working fine now.