Help us understand the problem. What is going on with this article?

aws EC2でのruby 環境構築

aws での ruby on rails 環境構築メモ

  • root ユーザーの切り替え

  • git のインストール

$ sudo su -
# yum -y install git

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

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

RBENV_ROOT環境変数の有効化やbrent init実行

#su - root

# env | grep RBENV

インストールしたrbenvバージョン確認

#rbenv --version

ruby-buildインストール

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

Rubyのインストール

# rbenv install -l
インストールできるRubyのバージョンを確認

# rbenv install -v 0.0.0 
インストールしたいバージョン 

# rbenv rehash 
インストールしたRubyを使用可能な状態にする

# rbenv global 0.0.0 インストールしたバージョン
デフォルトで使用するRubyの指定

# ruby -v 
インストールしたRubyのバージョンの確認

Railsのインストール

#gem update --system

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

#gem install rails -N

#gem install bundler

#rbenv rehash
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした