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.

Learning Rails 1 (Setup vagrant, install Rails, install MySQL)

Last updated at Posted at 2016-04-26
bash
mkdir learning_rails
bash
 cd learning_rails
bash
vagrant box add "centos_6.6" https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.0.0/centos-6.6-x86_64.box
bash
vagrant init
bash
vi Vagrantfile
Vagrantfile
Vagrant.configure(2) do |config|
  config.vm.define "host" do |node|
    node.vm.box = "centos_6.6"
    node.vm.hostname = "host"
    node.vm.network :private_network, ip: "192.168.43.200"
  end
end
bash
vagrant up
bash
vagrant ssh
bash
su -
bash
cd /usr/local/src/
bash
wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz
bash
tar xvzf ruby-2.3.0.tar.gz
bash
cd ruby-2.3.0
bash
./configure
bash
make
bash
make install 
bash
gem install rails -v 4.1.15 --no-rdoc --no-ri
bash
yum -y install mysql-server
bash
yum -y install mysql-devel
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?