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 -sL 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
curl libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-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

rbenv install 2.4.2
rbenv global 2.4.2

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

rizalp 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

rizalp commented Aug 20, 2019

optionals:

libxml2-dev libxslt1-dev libcurl4-openssl-dev

rails sqlite3

libsqlite3-dev sqlite3

rails mysql

libmysqlclient-dev mysql

front end build

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.