Installing Ruby 2.3.X on Ubuntu 18.04 Is Causing an Error by the End of the Installation Process

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



Leave a reply



Submit