Skip to content

Instantly share code, notes, and snippets.

@yosuke-furukawa
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosuke-furukawa/fa9b517ef86e17dd2f49 to your computer and use it in GitHub Desktop.
Save yosuke-furukawa/fa9b517ef86e17dd2f49 to your computer and use it in GitHub Desktop.
h2oをamazon linux環境(aws)でビルドするためのメモ ref: http://qiita.com/yosuke_furukawa/items/ecc8c5d35406fcb5a821
sudo yum install curl curl-devel
sudo yum install libarchive libarchive-devel
sudo yum install expat expat-devel
wget http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz
tar -xvf cmake-3.0.2.tar.gz
cd cmake-3.0.2
./bootstrap --prefix=/usr \
--system-libs \
--mandir=/share/man \
--docdir=/share/doc/cmake-3.0.2 &&
make
sudo make install
wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz
tar -xvf yaml-0.1.5.tar.gz
cd yaml-0.1.5
./configure
make
sudo make install
git clone https://github.com/kazuho/h2o.git
cd h2o
git submodule update --init --recursive
cmake .
make h2o
./h2o -c examples/h2o.conf
curl http://localhost:8080/
listen: 8080
hosts:
default:
paths:
/:
file.dir: examples/doc_root
access-log: /dev/stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment