Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active August 18, 2019 04:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SunDi3yansyah/ceed7e67ab2ff4cf64b0d2632e10e85c to your computer and use it in GitHub Desktop.
Save SunDi3yansyah/ceed7e67ab2ff4cf64b0d2632e10e85c to your computer and use it in GitHub Desktop.
Rails Indonesia Installation with RVM | https://rails.id/install/

Instalasi Ruby dan Rails

asdf global ruby 2.6.1
asdf install ruby 2.6.1
git clone https://github.com/asdf-vm/asdf.git ~/.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 https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/rbenv.git ~/.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 \
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | 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