How to fix “An error occurred while installing mysql2 (*)” when install mysql2 ruby gem ? The solution is just run this command on your terminal : On Ubuntu : $ sudo apt-get install libmysqlclient-dev On Redhat / Centos / Fedora : $ sudo yum install mysql-devel On Mac OSX with Homebrew : $ brew […]
Category: Software Development
Install Redis on Ubuntu 19.04
To install redis on your ubuntu 19.04, follow this guide : Update apt package list : sudo apt update Now install redis : sudo apt install redis-server
How To Fix can’t find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
If you got this error : $ bundle Traceback (most recent call last): 2: from /home/ubuntu-user/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>’ 1: from /home/ubuntu-user/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path’ /home/ubuntu-user/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe’: can’t find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) when bundling your gem on your rails app, the solution to fix is easy. Just updating your gem system using this command […]
How to Install PostgreSQL For Local Rails Development On Ubuntu 19.04
Before install PostgreSQL we need to update apt package list to do so : sudo apt update After that we can install PostgreSQL and dependencies : sudo apt install postgresql postgresql-contrib To switch into Postgres account : sudo -i -u postgres Now you can access PostgreSQL prompt by running command : psql Exit out of […]
How To Install RMagick and ImageMagick on Ubuntu 19.04
Here is the way to install rmagick and imagemagick on your ubuntu 19.04. Update Ubuntu APT package list by run this command : sudo apt update Install ImageMagick and its dependencies : sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev -y Verify if imagemagick had succesfully installed : convert -v The output should similar like this : […]
How To Install FFMPEG on Ubuntu 19.04
This tutorial guide you to install ffmpeg on your Ubuntu 19.04 : Update your Ubuntu apt package list first : sudo apt update Next install ffmpeg : sudo apt install ffmpeg -y Verify ffmpeg version : ffmpeg -version The output should similar like this : ffmpeg version 3.4.6-0ubuntu0.19.04.1 Copyright (c) 2000-2019 the FFmpeg developers built […]
How To Generate SSH Key on Ubuntu and Mac
To generate ssh key on your Ubuntu and Mac : – On your terminal run this command : ssh-keygen -t rsa -b 4096 -C “[email protected]” Then follow the wizard
How To Install Ruby on Rails 6 with Jemalloc on Linux Ubuntu 19.04
Here is the steps to install Ruby on Rails 6 with Jemalloc on Linux Ubuntu 19.04 First we need to update & upgrade ubuntu packages : sudo apt update && sudo apt upgrade Then install its dependencies : sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev libjemalloc-dev git -y […]
Install Ruby on Rails with Jemalloc on Linux Ubuntu
Install Ruby on Rails with Jemalloc on Linux Ubuntu First of all we need to update & upgrade ubuntu packages : sudo apt update && sudo apt upgrade Then install its dependencies : sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev libjemalloc-dev git -y Next, clone rbenv repository from […]
How to install SublimeText 3 on Linux Ubuntu 18.04
How to install SublimeText 3 on Linux Ubuntu 18.04 and above, here is the guide : – Update Ubuntu APT package list sudo apt update – Install dependency libs : sudo apt install apt-transport-https ca-certificates curl software-properties-common – Import the repository’s GPG key : curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add – – Add the […]