Skip to content

Instantly share code, notes, and snippets.

@rizalp rizalp/ubuntu1804-ror.md
Last active Jan 14, 2019

Embed
What would you like to do?
Ruby On Rails using package manager instead of rbenv

Minimal Ruby On Kubuntu:

~/.gemrc

install: --user-install
update: --user-install

~/.bashrc

...
...
...
export BUNDLE_PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')"
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"

required for nokogiri sqlite3 execjs

$ sudo apt install ruby build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev nodejs

Next, usual rails workflow

$ gem install bundler
$ gem install rails
$ rails new blog && cd blog
$ rails s
@rizalp

This comment has been minimized.

Copy link
Owner Author

commented Jan 14, 2019

libjemalloc-dev

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.