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
796369c1
Commit
796369c1
authored
Nov 27, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix installation of coffeescript and ruby on linux
parent
ba9280f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
create-dev-env.sh
+6
-3
No files found.
create-dev-env.sh
View file @
796369c1
...
...
@@ -99,7 +99,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 nodejs npm graphviz graphviz-dev mysql-server libmysqlclient-dev libgeos-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 nodejs npm graphviz graphviz-dev mysql-server libmysqlclient-dev libgeos-dev
coffeescript libreadline6 libreadline6-dev
"
if
[[
$EUID
-eq
0
]]
;
then
error
"This script should not be run using sudo or as the root user"
...
...
@@ -182,16 +182,19 @@ case `uname -s` in
error
"Please install lsb-release."
exit
1
}
distro
=
`
lsb_release
-cs
`
case
$distro
in
maya|lisa|natty|oneiric|precise|quantal
)
output
"Installing ubuntu requirements"
sudo
apt-get install python-software-properties
sudo
add-apt-repository ppa:chris-lea/node.js
sudo
apt-get
-y
update
# DEBIAN_FRONTEND=noninteractive is required for silent mysql-server installation
sudo
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
$APT_PKGS
sudo
npm install coffee-script
clone_repos
;;
*
)
...
...
@@ -272,7 +275,7 @@ output "Installing rvm and ruby"
curl
-sL
get.rvm.io | bash
-s
--
--version
1.15.7
source
$RUBY_DIR
/scripts/rvm
# skip the intro
LESS
=
"-E"
rvm install
$RUBY_VER
LESS
=
"-E"
rvm install
$RUBY_VER
--with-readline
output
"Installing gem bundler"
gem install bundler
output
"Installing ruby packages"
...
...
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