[LINUX] ruby environment construction with aws EC2

ruby on rails environment construction memo on aws

$ sudo su -
# yum -y install git

Installation of packages required for Ruby

# yum -y install gcc-c++ glibc-headers openssl-devel readline libyaml-devel readline-devel zlib zlib-devel libffi-devel libxml2 libxslt libxml2-devel libxslt-devel sqlite-devel

Install rbenv

# git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv
# cp -p /etc/profile /etc/profile.ORG
# diff /etc/profile /etc/profile.ORG

# echo 'export RBENV_ROOT="/usr/local/rbenv"' >> /etc/profile
# echo 'export PATH="${RBENV_ROOT}/bin:${PATH}"' >> /etc/profile
# echo 'eval "$(rbenv init -)"' >> /etc/profile

# source /etc/profile

Enable RBENV_ROOT environment variable and execute brent init

#su - root

# env | grep RBENV

Check the installed rbenv version

#rbenv --version

ruby-build installation

# git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build

Ruby installation

# rbenv install -l
Check the version of Ruby that can be installed

# rbenv install -v 0.0.0 
The version you want to install

# rbenv rehash 
Make the installed Ruby ready for use

# rbenv global 0.0.0 Installed version
Specifying Ruby to use by default

# ruby -v 
Check the installed Ruby version

Rails installation

#gem update --system

#gem install nokogiri -- --use-system-libraries

#gem install rails -N

#gem install bundler

#rbenv rehash

Recommended Posts

ruby environment construction with aws EC2
ML environment construction with Miniconda
[AWS] I tried using EC2, RDS, Django. Environment construction from 1
Get started with Python! ~ ① Environment construction ~
Easy Jupyter environment construction with Cloud9
Automate environment construction with Shell Script
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Using Chainer with CentOS7 [Environment construction]
pytorch @ python3.8 environment construction with pipenv
Data science environment construction with Docker
Environment construction with pyenv and pyenv-virtualenv
Vue.js + Flask environment construction memorandum ~ with Anaconda3 ~
A memo packed with RADEX environment construction
Let's get along with Python # 0 (Environment construction)
Django environment construction
DeepIE3D environment construction
Emacs-based environment construction
Linux environment construction
Python environment construction
Environment construction (python)
django environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Python environment construction
Prepare the environment of Chainer on EC2 spot instance with AWS Lambda
# 1 Until you deploy Django's web application (instance construction with EC2 on AWS)
Golang environment construction
python environment construction
Word2vec environment construction
Environment construction with VSCode + Remote Container (Go / Application)
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
MacOS 10.11 environment construction: Powerline with Anaconda and Dein.vim
Build python environment with pyenv on EC2 (ubuntu)
[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Deployment method (2) (EC2 environment construction / Linux / MySQL settings)
Poetry-virtualenv environment construction with python of centos-sclo-rh ~ Notes
First python ① Environment construction with pythonbrew & Hello World !!
Infrastructure construction automation with CloudFromation + troposphere + AWS Lambda
From Python environment construction to virtual environment construction with anaconda
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
Environment construction: GCP + Docker
Django project environment construction
code-server online environment (3) Launch an EC2 instance with Boto3
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Go language environment construction
ConoHa environment construction memo
Deployment procedure on AWS (2) Server (EC2 instance) environment settings
[Python] OpenCV environment construction with Docker (cv2.imshow () also works)
Create Amazon Linux with AWS EC2 and log in
homebrew python environment construction
From Kafka to KSQL --Easy environment construction with docker
PyData related environment construction
Anaconda-4.2.0-python3 environment construction (Mac)
Python development environment construction
Data analysis environment construction with Python (IPython notebook + Pandas)
YOLO v4 environment construction ①
Web application made with Python3.4 + Django (Part.1 Environment construction)
Execute python3 system with PHP exec () on AWS EC2
Pepper-kun remote control environment construction with Docker + IPython Notebook
Python environment with docker-compose