Last active
March 25, 2019 16:21
-
-
Save mmousawy/9716e9879f05c566ebe6e7e7e8e8e47c to your computer and use it in GitHub Desktop.
Installing H2O server from source on Debian 9
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
# See https://h2o.examp1e.net/install.html for more info. | |
# Update apt-get library | |
sudo apt-get update | |
# Install cmake | |
sudo apt-get install cmake | |
# Install build tools (CXX compiler) | |
sudo apt-get install build-essential | |
# Install openssl dev libraries | |
sudo apt-get install libssl-dev | |
# Install zlib libraries | |
sudo apt-get install zlib1g-dev | |
# Install ruby and ruby development libraries | |
sudo apt-get install ruby ruby-dev | |
# Install bison | |
sudo apt-get install bison | |
# Download H2O source | |
# See https://github.com/h2o/h2o/releases for latest version | |
wget https://github.com/h2o/h2o/archive/v2.2.5.tar.gz | |
# Untar, delete tar and cd | |
tar -zxvf v2.2.5.tar.gz && rm -f v2.2.5.tar.gz && cd h2o-2.2.5 | |
# Make and install | |
cmake -DWITH_BUNDLED_SSL=on -DWITH_MRUBY=on . && make && sudo make install | |
# Run the following to test if install was successful | |
# You should see something like: h2o server (pid:xxxxx) is ready to serve requests | |
/usr/local/bin/h2o -c examples/h2o/h2o.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment