Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6272e890
Commit
6272e890
authored
May 31, 2013
by
Slater-Victoroff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Down to node errors on Ubuntu
parent
6f1f0e11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
24 deletions
+44
-24
requirements/system/ubuntu/apt-packages.txt
+5
-2
scripts/create-dev-env.sh
+36
-21
scripts/install-system-req.sh
+3
-1
No files found.
requirements/system/ubuntu/apt-packages.txt
View file @
6272e890
python-software-properties
pkg-config
gfortran
libatlas-dev
libblas-dev
liblapack-dev
liblapack3gf
curl
git
python-virtualenv
...
...
@@ -8,7 +13,6 @@ python-numpy
build-essential
python-dev
gfortran
liblapack-dev
libfreetype6-dev
libpng12-dev
libjpeg-dev
...
...
@@ -17,7 +21,6 @@ libxslt-dev
yui-compressor
graphviz
libgraphviz-dev
libgraphviz4
graphviz-dev
mysql-server
libmysqlclient-dev
...
...
scripts/create-dev-env.sh
View file @
6272e890
...
...
@@ -227,7 +227,7 @@ case `uname -s` in
distro
=
`
lsb_release
-cs
`
case
$distro
in
wheezy|jessie|maya|olivia|nadia|
natty|
precise|quantal|raring
)
wheezy|jessie|maya|olivia|nadia|precise|quantal|raring
)
sudo
apt-get install git
;;
squeeze|lisa|katya|oneiric|natty
)
warning
"It seems like you're using
$distro
which has been deprecated.
...
...
@@ -312,7 +312,22 @@ if [ "$HOME/.rvm" != $RUBY_DIR ]; then
fi
fi
curl
-sL
get.rvm.io | bash
-s
--
--version
1.15.7
# rvm has issues in debian family, this is taken from stack overflow
case
`
uname
-s
`
in
Darwin
)
curl
-sL
get.rvm.io | bash
-s
--
--version
1.15.7
;;
squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring
)
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"
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
;;
esac
# Ensure we have RVM available as a shell function so that it can mess
# with the environment and set everything up properly. The RVM install
...
...
@@ -410,25 +425,25 @@ fi
# compile numpy and scipy if requested
#
NUMPY_VER="1.6.2"
#
SCIPY_VER="0.10.1"
#
if [[ -n $compile ]]; then
#
output "Downloading numpy and scipy"
#
curl -sL -o numpy.tar.gz http://downloads.sourceforge.net/project/numpy/NumPy/${NUMPY_VER}/numpy-${NUMPY_VER}.tar.gz
#
#curl -sL -o scipy.tar.gz http://downloads.sourceforge.net/project/scipy/scipy/${SCIPY_VER}/scipy-${SCIPY_VER}.tar.gz
#
tar xf numpy.tar.gz
#
#tar xf scipy.tar.gz
#
rm -f numpy.tar.gz #scipy.tar.gz
#
output "Compiling numpy"
#
cd "$BASE/numpy-${NUMPY_VER}"
#
python setup.py install
#
#output "Compiling scipy"
#
#cd "$BASE/scipy-${SCIPY_VER}"
#
#python setup.py install
#
cd "$BASE"
#
rm -rf numpy-${NUMPY_VER} #scipy-${SCIPY_VER}
#
fi
NUMPY_VER
=
"1.6.2"
SCIPY_VER
=
"0.10.1"
if
[[
-n
$compile
]]
;
then
output
"Downloading numpy and scipy"
curl
-sL
-o
numpy.tar.gz http://downloads.sourceforge.net/project/numpy/NumPy/
${
NUMPY_VER
}
/numpy-
${
NUMPY_VER
}
.tar.gz
#curl -sL -o scipy.tar.gz http://downloads.sourceforge.net/project/scipy/scipy/${SCIPY_VER}/scipy-${SCIPY_VER}.tar.gz
tar
xf numpy.tar.gz
#tar xf scipy.tar.gz
rm
-f
numpy.tar.gz
#scipy.tar.gz
output
"Compiling numpy"
cd
"
$BASE
/numpy-
${
NUMPY_VER
}
"
python setup.py install
#output "Compiling scipy"
#cd "$BASE/scipy-${SCIPY_VER}"
#python setup.py install
cd
"
$BASE
"
rm
-rf
numpy-
${
NUMPY_VER
}
#scipy-${SCIPY_VER}
fi
# building correct version of distribute from source
DISTRIBUTE_VER
=
"0.6.28"
...
...
scripts/install-system-req.sh
View file @
6272e890
...
...
@@ -41,7 +41,9 @@ case `uname -s` in
# add repositories
cat
$APT_REPOS_FILE
| xargs
-n
1
sudo
add-apt-repository
-y
sudo
apt-get
-y
update
sudo
apt-get
-y
install gfortran
sudo
apt-get
-y
install graphviz libgraphviz-dev graphviz-dev
sudo
apt-get
-y
install libatlas-dev libblas-dev
# install packages listed in APT_PKGS_FILE
cat
$APT_PKGS_FILE
| xargs
sudo
apt-get
-y
install
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment