From a06e34e2f9493e3d6390a38696b5bb32978ea017 Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Sat, 1 Jun 2013 14:44:23 -0300 Subject: [PATCH 1/4] Install steps - Fixes mysql package name dependency for Debian/Ubuntu There is no package called `mysql` in Debian/Ubuntu - instead, MySQL is split into `mysql-client` and `mysql-server`. Also deeted duplicate package name. --- requirements/system/ubuntu/apt-packages.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements/system/ubuntu/apt-packages.txt b/requirements/system/ubuntu/apt-packages.txt index c61c658111..5dc47157f6 100644 --- a/requirements/system/ubuntu/apt-packages.txt +++ b/requirements/system/ubuntu/apt-packages.txt @@ -30,7 +30,6 @@ libreadline6-dev mongodb nodejs coffeescript -mysql -libmysqlclient-dev +mysql-client virtualenvwrapper libgeos-ruby1.8 From 906b70cc4150ab5273d90922c3b3e2a0a1a44316 Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Sat, 1 Jun 2013 17:46:16 -0300 Subject: [PATCH 2/4] Install steps - Use "Linux" instead of distribution name to detect OS --- scripts/create-dev-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-dev-env.sh b/scripts/create-dev-env.sh index 520ce05b5c..6cf166ed5e 100755 --- a/scripts/create-dev-env.sh +++ b/scripts/create-dev-env.sh @@ -310,7 +310,7 @@ case `uname -s` in curl -sL get.rvm.io | bash -s -- --version 1.15.7 ;; - squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring) + [Ll]inux) warning "Setting up rvm on linux. This is a known pain point. If the script fails here refer to the following stack overflow question: http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395" @@ -392,7 +392,7 @@ if [[ `type -t mkvirtualenv` != "function" ]]; then source `which virtualenvwrapper.sh` ;; - squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring) + [Ll]inux) if [[ -f "/etc/bash_completion.d/virtualenvwrapper" ]]; then source /etc/bash_completion.d/virtualenvwrapper else From 2a8105145fe67548c0957f441a22cd4b7634c61f Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Sat, 1 Jun 2013 19:18:29 -0300 Subject: [PATCH 3/4] Install steps - Fixed typo for installation of rvm on Linux --- scripts/create-dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-dev-env.sh b/scripts/create-dev-env.sh index 6cf166ed5e..349e28601c 100755 --- a/scripts/create-dev-env.sh +++ b/scripts/create-dev-env.sh @@ -316,7 +316,7 @@ case `uname -s` in http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395" sudo apt-get --purge remove ruby-rvm sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh - curl -sL https://get.rvm.io | bash -s stable --ruby --autolibs=enable --autodotfiles + curl -sL https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles ;; esac From d606e7fa7d6bc643e1026a0ac533e965fc291bc8 Mon Sep 17 00:00:00 2001 From: Xavier Antoviaque Date: Sat, 1 Jun 2013 19:28:15 -0300 Subject: [PATCH 4/4] Install steps - Use edx-platform gemset when fetching ruby deps --- scripts/create-dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-dev-env.sh b/scripts/create-dev-env.sh index 349e28601c..2b28673ed3 100755 --- a/scripts/create-dev-env.sh +++ b/scripts/create-dev-env.sh @@ -483,7 +483,7 @@ pip install -r $BASE/edx-platform/requirements/edx/pre.txt output "Installing edX requirements" # Install prereqs cd $BASE/edx-platform -rvm use $RUBY_VER +rvm use "$RUBY_VER@edx-platform" rake install_prereqs # Final dependecy