Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Install Development Dependencies

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update

sudo apt-fast install git build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libffi-dev libgmp-dev

cd
git clone --depth=1 https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone --depth=1 https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.5.3
rbenv global 2.5.3

Install Bundler and Rails

gem install bundler
gem install rails
rbenv rehash

Verify installed versions

ruby -v
rails -v

Start working libsqlite3-dev

rails new blog && cd blog
bin/rails s
@rizalp

This comment has been minimized.

Copy link
Owner Author

commented Jul 5, 2019

  • 2.5.5
ruby -r rbconfig -e "puts RbConfig::CONFIG['LIBS']"
-lpthread -ljemalloc -lgmp -ldl -lcrypt -lm
  • 2.6.3
ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
-lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm 
@rizalp

This comment has been minimized.

Copy link
Owner Author

commented Aug 20, 2019

optionals:

autoconf bison libxml2-dev libxslt1-dev libcurl4-openssl-dev libsqlite3-dev sqlite3 nodejs yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.