Skip to content

Commit 88ec4b9

Browse files
committed
Adds current scripts
0 parents  commit 88ec4b9

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Script for OS X
2+
3+
Copy and paste this line the Terminal and press Enter. Enjoy the text flying on the screen, it will take quite some time (approximately 30 minutes). Installer might ask for your administrator password. Grabbing a refreshing drink before starting is encouraged!
4+
5+
bash < <(curl -s https://raw.github.com/railsgirls/installation-scripts/rails-install-osx.sh)
6+
7+
## Script for Ubuntu
8+
9+
To install Ruby on Rails development environment you just need to copy and paste this line the Terminal and press Enter. Enjoy the text flying on the screen, it will take quite some time. Grabbing a refreshing drink before starting is encouraged.
10+
11+
bash < <(curl -s https://raw.github.com/railsgirls/installation-scripts/rails-install-ubuntu.sh)
12+
13+

rails-install-osx.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
set -e
2+
3+
echo "Installs Homebrew for installing other software"
4+
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
5+
brew update
6+
7+
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
8+
curl -L get.rvm.io | bash -s stable
9+
echo "
10+
# RVM
11+
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
12+
source ~/.bash_profile
13+
14+
echo "Install Ruby"
15+
rvm install 1.9.3-p125
16+
rvm use 1.9.3-p125 --default
17+
18+
gem install bundler --no-rdoc --no-ri
19+
gem install rails --no-rdoc --no-ri
20+
21+
echo -e "\n- - - - - -\n"
22+
echo -e "Now we are going to print some information to check that everything is done:\n"
23+
24+
echo -n "Should be brew 0.8 or higher: brew "
25+
brew -v
26+
echo -n "Should be sqlite 3.7.3 or higher: sqlite "
27+
sqlite3 --version
28+
echo -n "Should be rvm 1.6.32 or higher: "
29+
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
30+
echo -n "Should be ruby 1.9.3p125: "
31+
ruby -v | cut -d " " -f 2
32+
echo -n "Should be Rails 3.2.2 or higher: "
33+
rails -v
34+
echo -e "\n- - - - - -\n"
35+
36+
echo "If the versions match, everything is installed correctly. If the versions
37+
don't match or errors are shown, something went wrong with the automated process
38+
and we will help you do the installation the manual way at the event.
39+
40+
Congrats!"

rails-install-ubuntu.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
set -e
2+
3+
echo "Updates packages. Asks for your password."
4+
sudo apt-get update -y
5+
6+
echo "Installs packages. Give your password when asked."
7+
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y
8+
9+
echo "Installs ImageMagick for image processing"
10+
sudo apt-get install imagemagick --fix-missing -y
11+
12+
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
13+
curl -L get.rvm.io | bash -s stable
14+
echo "
15+
# RVM
16+
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
17+
source ~/.bash_profile
18+
19+
echo "Installs Ruby"
20+
rvm install 1.9.3-p125
21+
rvm use 1.9.3-p125 --default
22+
23+
gem install bundler --no-rdoc --no-ri
24+
gem install rails --no-rdoc --no-ri
25+
26+
echo "Installs text editor"
27+
sudo apt-get install gedit -y
28+
29+
echo -e "\n- - - - - -\n"
30+
echo -e "Now we are going to print some information to check that everything is done:\n"
31+
32+
echo -n "Should be brew 0.8 or higher: brew "
33+
brew -v
34+
echo -n "Should be sqlite 3.7.3 or higher: sqlite "
35+
sqlite3 --version
36+
echo -n "Should be rvm 1.6.32 or higher: "
37+
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
38+
echo -n "Should be ruby 1.9.3p125: "
39+
ruby -v | -d " " -f 2
40+
echo -n "Should be Rails 3.2.2 or higher: "
41+
rails -v
42+
echo -e "\n- - - - - -\n"
43+
44+
echo "If the versions match, everything is installed correctly. If the versions
45+
don't match or errors are shown, something went wrong with the automated process
46+
and we will help you do the installation the manual way at the event.
47+
48+
Congrats!"

0 commit comments

Comments
 (0)