3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntu14にrails4の環境構築

Last updated at Posted at 2015-07-26

ubuntu14.10にrails4の環境を構築する方法です。

  • Apache2
$ sudo apt-get install apache2
  • Gitとかその他インストール
$ sudo apt-get install build-essential git curl zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev sqlite3 libsqlite3-dev
  • rbenvのインストール
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
  • rbenvの設定
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  • シェルの再起動
$ exec $SHELL
  • ruby-buildのインストール
$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/sstephenson/ruby-build.git
  • ruby(2.0.0)のインストール
$ rbenv install 2.0.0-p481(時間かかります)
$ rbenv global 2.0.0-p481
  • railsのインストール
$ rbenv rehash
$ gem install rails --no-ri --no-doc (時間かかります)
  • railsアプリの作成
$ rails new アプリ名

完成!!!

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?