Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Dependency_Ubuntu

Dwi Fahni Denni (dfdenni) edited this page Feb 24, 2019 · 8 revisions

Dependency Ubuntu

Dependency libraries for Ubuntu

Ubuntu 13.x, Ubuntu 14.x, Ubuntu 15.x, Ubuntu 16.x, Ubuntu 17.x & Ubuntu 18.x

sudo apt-get -y update
sudo apt-get -y install git-core \
   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 \
   bash-completion \
   nano \
   vim \
   openssl \
   coffeescript \
   imagemagick \
   libmagickwand-dev \
   libmysqlclient-dev \
   libpq-dev \
   tar \
   bzip2 \
   curl \
   wget \
   gnupg \
   gnupg2 \ 
   nginx 
      
### Install NodeJS ###
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile

nvm ls-remote
nvm install [version]
nvm install 7.10.1
node -v

### Multi NodeJS ###
## nvm ls
## nvm alias default 6.0.0

### Install MySQL (latest) ###
sudo apt-get -y update
sudo apt-get -y install mysql-server
mysql_secure_installation

### Install PostgreSQL (version 9.6.x) ###
sudo echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
  sudo apt-key add -
  
sudo apt-get -y update
sudo apt-get -y install postgresql-9.6 postgresql-client-9.6 postgresql-contrib-9.6