From ca5c33cdf3d6bfca61d7ffddfcfa0d22c6c9ce6d Mon Sep 17 00:00:00 2001 From: JM Van Thong Date: Wed, 31 Oct 2012 13:46:27 -0400 Subject: [PATCH 1/5] Fixed install by adding mysql --- brew-formulas.txt | 1 + create-dev-env.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/brew-formulas.txt b/brew-formulas.txt index 0aed9645d0..b5b555e2a0 100644 --- a/brew-formulas.txt +++ b/brew-formulas.txt @@ -7,3 +7,4 @@ python yuicompressor node graphviz +mysql diff --git a/create-dev-env.sh b/create-dev-env.sh index 5691315039..656a40524e 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -105,7 +105,7 @@ NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" BREW_FILE="$BASE/mitx/brew-formulas.txt" LOG="/var/tmp/install-$(date +%Y%m%d-%H%M%S).log" -APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev" +APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev mysql" if [[ $EUID -eq 0 ]]; then error "This script should not be run using sudo or as the root user" From 2203a0bd7031da2e7d96bb20b5724e8082588528 Mon Sep 17 00:00:00 2001 From: Aaron Culich Date: Thu, 1 Nov 2012 14:05:11 +0000 Subject: [PATCH 2/5] Updated APT_PKGS with valid Ubuntu package name: mysql -> mysql-server --- create-dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-dev-env.sh b/create-dev-env.sh index 656a40524e..c872f1dcbc 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -105,7 +105,7 @@ NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" BREW_FILE="$BASE/mitx/brew-formulas.txt" LOG="/var/tmp/install-$(date +%Y%m%d-%H%M%S).log" -APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev mysql" +APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev mysql-server" if [[ $EUID -eq 0 ]]; then error "This script should not be run using sudo or as the root user" From 4712a039dc25214369eb26be8942874667279227 Mon Sep 17 00:00:00 2001 From: Aaron Culich Date: Thu, 1 Nov 2012 14:06:03 +0000 Subject: [PATCH 3/5] Added DEBIAN_FRONTEND=noninteractive to sudo apt-get which is required for silent mysql-server installation --- create-dev-env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create-dev-env.sh b/create-dev-env.sh index c872f1dcbc..96ec51d928 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -193,7 +193,8 @@ case `uname -s` in maya|lisa|natty|oneiric|precise|quantal) output "Installing ubuntu requirements" sudo apt-get -y update - sudo apt-get -y install $APT_PKGS + # DEBIAN_FRONTEND=noninteractive is required for silent mysql-server installation + sudo DEBIAN_FRONTEND=noninteractive apt-get -y install $APT_PKGS clone_repos ;; *) From 40ce5d2ff61861955a1f31ff3fb73d42729030e7 Mon Sep 17 00:00:00 2001 From: Aaron Culich Date: Thu, 1 Nov 2012 14:08:24 +0000 Subject: [PATCH 4/5] Fixed dependency problem introduced by MySQL-python by forcing distribute version >= 0.6.28 in pre-requirements --- pre-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pre-requirements.txt b/pre-requirements.txt index 24ce15ab7e..6eb4669059 100644 --- a/pre-requirements.txt +++ b/pre-requirements.txt @@ -1 +1,2 @@ numpy +distribute>=0.6.28 From 4db61f253166eeebd0201a3560c35d9cbb57c7b4 Mon Sep 17 00:00:00 2001 From: Aaron Culich Date: Thu, 1 Nov 2012 19:31:19 +0000 Subject: [PATCH 5/5] Fixed mysql_config not found error by adding libmysqlclient-dev to APT_PKGS --- create-dev-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-dev-env.sh b/create-dev-env.sh index 96ec51d928..f1d496a48f 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -105,7 +105,7 @@ NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" BREW_FILE="$BASE/mitx/brew-formulas.txt" LOG="/var/tmp/install-$(date +%Y%m%d-%H%M%S).log" -APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev mysql-server" +APT_PKGS="pkg-config curl git python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript graphviz graphviz-dev mysql-server libmysqlclient-dev" if [[ $EUID -eq 0 ]]; then error "This script should not be run using sudo or as the root user"