Faulty Ruby Compilation with Rvm: Getting 'Undefined Symbol: Rb_Digest_Md5_Init' While Running Racku

Faulty ruby compilation with rvm: getting 'undefined symbol: rb_Digest_MD5_Init' while running racku

It seems you're missing some devel packages on your system. See my article here, specifically this step. I'm not sure, but the MD5 code could be part of libssl, so it would be covered by installing these packages.

$ sudo apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev

undefined symbol: rb_Digest_MD5_Init while running Rails

It seems like my profile folder is messed up, because I tried to create new user and install rvm and rails after it, and everything worked fine.

UPD: it seems like something from ~/.config caused the problem, because after removing some folders (can't tell exactly which one, because I removed a bunch of them at once) Rails finally started to work.

After setting up RVM and Ruby 187, getting this error of undefined symbol: rb_Digest_SHA1_Init on Ubuntu

Run rvm notes and make sure to run whatever it tells you to, then recompile (rvm install 1.8.7) ruby.

Most likely, if you're on current RVM, you'll be told to do this:

apt-get install build-essential bison openssl libreadline6 libreadline6-dev 
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev
libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev
autoconf libc6-dev ncurses-dev automake

ERROR: Failed to build gem native extension. while installing Rails

This related to the nokogiri issue reported in this question

There are some additional linux libraries required to compile it.



Related Topics



Leave a reply



Submit