Last active
August 29, 2015 13:59
-
-
Save 1987yama3/10644224 to your computer and use it in GitHub Desktop.
Ruby on Railsのセットアップ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install rbenv | |
cd /usr/local | |
git clone git://github.com/sstephenson/rbenv.git rbenv | |
groupadd rbenv | |
chgrp -R rbenv rbenv | |
chmod -R g+rwxXs rbenv | |
#install rbenv-build | |
mkdir /usr/local/rbenv/plugins | |
cd /usr/local/rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git ruby-build | |
chgrp -R rbenv ruby-build | |
chmod -R g+rwxs ruby-build | |
#create pathfile | |
touch /etc/profile.d/rbenv.sh | |
echo 'export RBENV_ROOT="/usr/local/rbenv"' >> /etc/profile.d/rbenv.sh | |
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
source /etc/profile.d/rbenv.sh | |
#install ruby | |
rbenv install 2.0.0-p451 | |
rbenv global 2.0.0-p451 | |
rbenv rehash | |
#install rbenv-rehash | |
gem install rbenv-rehash | |
gem install rails --no-ri --no-rdoc | |
yum groupinstall -y 'Development tools' | |
yum install -y openssl-devel | |
yum install -ysqlite-devel | |
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
yum install -y nodejs npm --enablerepo=epel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment