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
49a89b6d
Commit
49a89b6d
authored
May 31, 2012
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding brew-formulas, updating dev env script
parent
f720f4a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
brew-formulas.txt
+9
-0
create-dev-env.sh
+22
-12
No files found.
brew-formulas.txt
0 → 100644
View file @
49a89b6d
readline
sqlite
gdbm
pkg-config
gfortran
mercurial
python
yuicompressor
node
create-dev-env.sh
View file @
49a89b6d
...
...
@@ -41,7 +41,7 @@ RUBY_VER="1.9.3"
NUMPY_VER
=
"1.6.2"
SCIPY_VER
=
"0.10.1"
LOG
=
"/var/tmp/install.log"
BREW_PKGS
=
"
readline sqlite gdbm pkg-config gfortran mercurial python yuicompressor node
"
BREW_PKGS
=
"
$BASE
/mit/brew-formulas.txt
"
APT_PKGS
=
"curl git mercurial python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript"
if
[[
$EUID
-eq
0
]]
;
then
...
...
@@ -92,6 +92,10 @@ cat<<EO
To compile scipy and numpy from source use the -c option
STDOUT is redirected to /var/tmp/install.log, run
$
tail -f /var/tmp/install.log
to monitor progress
EO
info
output
"Press return to begin or control-C to abort"
...
...
@@ -131,7 +135,7 @@ case `uname -s` in
}
output
"Installing OSX requirements"
# brew errors if the package is already installed
for
pkg
in
$
BREW_PKGS
;
do
for
pkg
in
$
(
cat
$BREW_PKGS
)
;
do
grep
$pkg
<
(
brew list
)
&>/dev/null
||
{
output
"Installing
$pkg
"
brew install
$pkg
>>
$LOG
...
...
@@ -151,16 +155,7 @@ case `uname -s` in
exit
1
;;
esac
output
"Installing rvm and ruby"
curl
-sL
get.rvm.io | bash
-s
stable
source
$RUBY_DIR
/scripts/rvm
rvm install
$RUBY_VER
virtualenv
"
$PYTHON_DIR
"
source
$PYTHON_DIR
/bin/activate
output
"Installing ruby packages"
gem install
--version
'0.8.3'
rake
gem install
--version
'3.1.15'
sass
gem install
--version
'1.3.6'
bourbon
cd
"
$BASE
"
output
"Cloning mitx, askbot and data repos"
if
[[
-d
"
$BASE
/mitx"
]]
;
then
...
...
@@ -176,6 +171,21 @@ if [[ -d "$BASE/data" ]]; then
fi
hg clone ssh://hg-content@gp.mitx.mit.edu/data
>>
$LOG
output
"Installing rvm and ruby"
curl
-sL
get.rvm.io | bash
-s
stable
source
$RUBY_DIR
/scripts/rvm
rvm install
$RUBY_VER
virtualenv
"
$PYTHON_DIR
"
source
$PYTHON_DIR
/bin/activate
output
"Installing gem bundler"
gem install bundler
output
"Installing ruby packages"
cd
$BASE
/mitx
bundle install
cd
$BASE
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
...
...
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