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
Why Do I Get an Error Installing the JSON Gem in Ubuntu
How to Disable Db:Schema:Dump for Migrations
Why Is Enumerable#Each_With_Object Deprecated
How to Use a Variable as Object Attribute in Rails
Sort a Collection of Objects by Number (Highest First) Then by Letter (Alphabetical)
How to Check If a Ruby Array Includes One of Several Values
Putting the Results of Pp (Or Anything Outputted to Console) into a String
Use of Caret Symbol (^) in Ruby
Missing Host to Link To! Please Provide the :Host Parameter, for Rails 4
What Exactly "Config.Assets.Debug" Setting Does
Rails: How to Get Has_Many Associations of a Model
How to Test CSV File Download in Capybara and Rspec
Convert String into Array in Rails
Ruby Gsub Multiple Characters in String
Test Output to Command Line with Rspec
Ruby on Rails: How to Get Error Messages from a Child Resource Displayed