Skip to content

Instantly share code, notes, and snippets.

Last active August 18, 2019 04:42
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Rails Indonesia Installation with RVM |

Instalasi Ruby dan Rails

asdf global ruby 2.6.1
asdf install ruby 2.6.1
git clone ~/.asdf
cd ~/.asdf
git checkout "$(git describe --abbrev=0 --tags)"
asdf local ruby 2.6.1
asdf plugin-add ruby
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 nodejs yarn redis-server \
postgresql postgresql-client postgresql-contrib libpq-dev \
mysql-server libmysqlclient-dev memcached
sudo yum update -y
sudo yum install -y \
git-core zlib zlib-devel gcc-c++ patch readline \
readline-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison curl \
libsqlite3x libsqlite3x-devel memcached mysql-server \
mysql-devel postgresql-server postgresql-devel redis yarn
gem update --system
mkdir -p $HOME/.rbenv/plugins
git clone $HOME/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
rbenv install --list
rbenv versions
rbenv global 2.6.1
gpg2 --recv-keys \
409B6B1796C275462A1703113804BB82D39DC0E3 \
\curl -sSL | bash -s stable
rvm use 2.6.1 --default
sudo apt-get install ruby-full
sudo yum install ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment