Install Ruby on Rails Ubuntu 18.04

Developer libs

Install Dependences :

  • Mysql
  • Rmagic
  • Curl
  • Git
  • Vim
  • Sqlite
  • Nodejs nokogiri...
sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs rar

Install Ruby

sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.6 ruby2.6-dev

Install Ruby on Rails

sudo gem install rails --no-rdoc --no-ri

Install ImageMagick

sudo apt-get install libmagickwand-dev imagemagick

Install PostgreSQL

sudo apt-get install postgresql libpq-dev
sudo -u postgres psql

Create Password

alter user postgres with password 'password';
    \q

GUI

sudo apt-get install pgadmin3

Install MySQL

sudo apt-get install mysql-server mysql-client ruby-mysql libmysqlclient-dev

GUI

sudo apt-get install mysql-workbench

Install MongoDB

sudo apt-get install mongodb

InstallRedis

sudo apt-get install redis-server

Install Sphinx

sudo apt-get install sphinxsearch

Install Elasticsearch

sudo apt-get install elasticsearch