Created
May 21, 2009 19:31
-
-
Save koseki/115669 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# http://wiki.debian.org/Cloud/AmazonEC2Image | |
# tokyo ami-9e1ab19f | |
apt-get -y update | |
apt-get -y install less | |
apt-get -y install emacs23 | |
apt-get -y install subversion | |
apt-get -y install apache2 | |
apt-get -y install ruby-dev | |
apt-get -y install rubygems | |
apt-get -y install irb | |
### admin ### | |
apt-get -y install htop | |
apt-get -y install lsof | |
apt-get -y install tcpdump | |
apt-get -y install ngrep | |
### mysql ### | |
# apt-get -y install mysql-server | |
### for passenger ### | |
# apt-get -y install apache2-prefork-dev | |
# apt-get -y install libapr1-dev | |
### for tokyo cabinet ### | |
# apt-get -y install zlib1g-dev | |
# apt-get -y install libbz2-dev | |
### gem executables ### | |
echo 'export PATH=/var/lib/gems/1.8/bin:$PATH' >> /root/.bashrc | |
source /root/.bashrc | |
### gems ### | |
gem install rake | |
gem install rdoc | |
# gem install rails | |
# gem install mongrel | |
# gem install mysql | |
# gem install passenger | |
# passenger-install-apache2-module --auto | |
# echo LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so >> /etc/apache2/mods-available/passenger.load | |
# echo PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.2 >> /etc/apache2/mods-available/passenger.conf | |
# echo PassengerRuby /usr/bin/ruby1.8 >> /etc/apache2/mods-available/passenger.conf | |
# tokyo cabinet | |
# ./configure make makeinstall | |
# ruby bindingsは | |
# gem build tokyocabinet.gemspec | |
# gem install tokyocabinet-xxx.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
TC_VER="1.4.23" | |
TC_RUBY_VER="1.25" | |
TT_VER="1.1.28" | |
TT_RUBY_VER="1.7" | |
wget http://tokyocabinet.sourceforge.net/tokyocabinet-$TC_VER.tar.gz | |
tar xzf tokyocabinet-$TC_VER.tar.gz | |
wget http://tokyocabinet.sourceforge.net/tyrantpkg/tokyotyrant-$TT_VER.tar.gz | |
tar xzf tokyotyrant-$TT_VER.tar.gz | |
wget http://tokyocabinet.sourceforge.net/rubypkg/tokyocabinet-ruby-$TC_RUBY_VER.tar.gz | |
tar xzf tokyocabinet-ruby-$TC_RUBY_VER.tar.gz | |
wget http://tokyocabinet.sourceforge.net/tyrantrubypkg/tokyotyrant-ruby-$TT_RUBY_VER.tar.gz | |
tar xzf tokyotyrant-ruby-$TT_RUBY_VER.tar.gz | |
cd tokyocabinet-$TC_VER | |
./configure | |
make | |
make install | |
cd .. | |
cd tokyotyrant-$TT_VER | |
./configure | |
make | |
make install | |
cd .. | |
cd tokyocabinet-ruby-$TC_RUBY_VER | |
gem build tokyocabinet.gemspec | |
gem install tokyocabinet-$TC_RUBY_VER.gem | |
cd .. | |
cd tokyotyrant-ruby-$TT_RUBY_VER | |
gem build tokyotyrant.gemspec | |
gem install tokyotyrant-$TT_RUBY_VER.gem | |
cd .. | |
# echo '/usr/local/lib' > /etc/ld.so.conf.d/usrloocal.conf | |
# ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# for Fedora 8 base ami-5647a33f | |
yum -y install yum-fastestmirror | |
yum -y install emacs | |
yum -y install subversion | |
yum -y install httpd | |
yum -y install httpd-devel | |
yum -y install httpd-tool | |
yum -y install gcc | |
yum -y install gcc-c++ | |
yum -y install ruby-devel | |
### admin ### | |
yum -y install htop | |
yum -y install ngrep | |
### Tokyo Cabinet ### | |
# yum -y install zlib #? | |
yum -y install zlib-devel | |
yum -y install bzip2-devel | |
# gem --version --> 1.2 | |
gem install rubygems-update | |
update_rubygems | |
gem install rake | |
gem install rails | |
gem install mongrel | |
gem install passenger | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment