Skip to content

Instantly share code, notes, and snippets.

@1987yama3
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1987yama3/10644224 to your computer and use it in GitHub Desktop.
Save 1987yama3/10644224 to your computer and use it in GitHub Desktop.
Ruby on Railsのセットアップ
#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