forked from nimbul/nimbul
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·54 lines (42 loc) · 1.31 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash -e
#
# $Id$
#
if [ $UID -gt 0 -a $(uname | grep Darwin -c) -eq 0 ]; then
echo 'You need to be root to run this script'
exit 1
fi
if [ $(gem sources | grep gems.github.com -c) -eq 0 ]; then
gem sources -a http://gems.github.com
fi
if [ $(gem sources | grep gems.ec2.nytimes.com -c) -eq 0 ]; then
gem sources -a http://gems.ec2.nytimes.com
fi
#yum -y install mysql-shared
gem install -v=2.2.2 rails
gem install gem_plugin
gem install mongrel
# gem install mongrel_cluster
gem install system_timer
gem install cached_model
gem install rubyist-aasm
gem install josevalim-rails-footnotes
gem install starling
gem install daemons
gem install ruby-openid
#gem install passenger
#passenger-install-apache2-module
gem install facter
gem install work_queue
gem install carrot --source http://gems.ec2.nytimes.com
gem install emissary
# messaging active messaging shows debugging output about
# these not being loading - they are not optional and not
# needed so don't worry about them.
#gem install beanstalk-client reliable-msg stomp rubywmq
# fixing incompatibility between latest json libraries and ActiveSupport in 2.2.2
# http://groups.google.com/group/rubyonrails-core/browse_thread/thread/54e5453eaac6687b
yes | gem uninstall json json_pure
yes | gem install json json_pure --version=1.2.0
echo "Enjoy"
exit 0