rbenv ruby 2.7.2 installation fails: BUILD FAILED
Long story short, I found out that libssl-dev
and libreadline-dev
were required, so this solved the problem:
sudo apt-get install libssl-dev libreadline-dev
How to install Ruby 2.1.4 on Ubuntu 14.04
First of all, install the prerequisite libraries:
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
Then install rbenv, which is used to install Ruby:
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.3.1
rbenv global 2.3.1
ruby -v
Then (optional) tell Rubygems to not install local documentation:
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
Credits: https://gorails.com/setup/ubuntu/14.10
Warning!!!
There are issues with Gnome-Shell
. See comment below.
INET 3.99.3 examples running error in Omnet++ 5.3 of ubuntu 18.04 LTS
please refer to this issue to resolve your linking error.
There is a patch to solve the linking error
https://github.com/inet-framework/inet/issues/353
Related Topics
Ruby: Initialize() VS Class Body
How to Dynamically Define a Class Method Which Will Refer to a Local Variable Outside
Bundle Install Doesn't Work from Capistrano
How to Use One Line Regular Expression to Get Matched Content
How to Get Searchlogic to Work with Rails 3
Ruby Method with Maximum Number of Parameters
Ruby on Rails: Provide VS Content_For
Puts Doesn't Print Stuff to Console
Conditional Tag Wrapping in Rails/Erb
Adding a Method to Built-In Class in Rails App
Understanding Io.Select When Reading Socket in Ruby
Ruby on Rails and JSON Parser from Url
Ruby Singleton Methods with (Class_Eval, Define_Method) VS (Instance_Eval, Define_Method)