Last active
December 16, 2015 22:39
-
-
Save kyuden/5508437 to your computer and use it in GitHub Desktop.
Debian 6 に Git,Ruby,rbenv,Railsをインストール
This file contains hidden or 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
#Git各種パッケージのインストール | |
sudo aptitude install git git-core curl | |
#rbenvインストール | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
#PATH設定 | |
vi /home/USERNAME/.bash_profile | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
#shellの再起動させ設定を反映 | |
exec $SHELL -l | |
#Ruby-buldのインストール | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
#ライブラリなどインストール | |
sudo aptitude install gcc g++ make libssl-dev sqlite3 libsqlite3-dev zlib1g-dev openssl libreadline-dev | |
#Rubyのインストール | |
rbenv install -l | |
CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" rbenv install -v VERSION | |
rbenv rehash | |
rbenv global VERSION | |
#Rubygemsのインストール | |
wget http://rubyforge.org/frs/download.php/76729/rubygems-1.8.25.tgz | |
tar zxvf rubygems-1.8.25.tgz | |
cd rubygems-1.8.25 | |
ruby setup.rb | |
gem -v | |
#Railsインストール設定 | |
gem install rails | |
rbenv rehash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment