Skip to content

Instantly share code, notes, and snippets.

@shiwork
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save shiwork/8ef4ccdff222767b5316 to your computer and use it in GitHub Desktop.

Select an option

Save shiwork/8ef4ccdff222767b5316 to your computer and use it in GitHub Desktop.
h2o compile
vagrant@vagrant-ubuntu-trusty-64:~/h2o$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
CMakeLists.txt:11 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/home/vagrant/h2o/CMakeFiles/CMakeOutput.log".
See also "/home/vagrant/h2o/CMakeFiles/CMakeError.log".

ubuntu 14.04

$ sudo aptitude install cmake make gcc g++ libyaml-dev libssl-dev pkg-config
$ git clone git@github.com:h2o/h2o.git
$ cd h2o
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
$ make
$ ./h2o -c examples/h2o/h2o.conf

8080portに接続すると繋がる。

makeしたらこんなのでたけど、特に問題なく動いてる。

vagrant@vagrant-ubuntu-trusty-64:~/h2o$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
CMake Warning at CMakeLists.txt:14 (MESSAGE):
  ***********************************************************************
  OpenSSL 1.0.2 is required for HTTP/2 interoperability with web browsers
  ***********************************************************************


-- checking for module 'libyaml'
--   package 'libyaml' not found
-- checking for module 'libuv>=1.0.0'
--   package 'libuv>=1.0.0' not found
-- Could NOT find LIBUV (missing:  LIBUV_LIBRARIES LIBUV_INCLUDE_DIR)
-- checking for module 'libwslay'
--   package 'libwslay' not found
-- Could NOT find WSLAY (missing:  WSLAY_LIBRARIES WSLAY_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/h2o
vagrant@vagrant-ubuntu-trusty-64:~/h2o$ make
Scanning dependencies of target h2o
[  4%] Building C object CMakeFiles/h2o.dir/deps/picohttpparser/picohttpparser.c.o
[  4%] Building C object CMakeFiles/h2o.dir/lib/common/hostinfo.c.o
[  8%] Building C object CMakeFiles/h2o.dir/lib/common/http1client.c.o
[ 12%] Building C object CMakeFiles/h2o.dir/lib/common/memory.c.o
[ 12%] Building C object CMakeFiles/h2o.dir/lib/common/multithread.c.o
[ 16%] Building C object CMakeFiles/h2o.dir/lib/common/serverutil.c.o
[ 16%] Building C object CMakeFiles/h2o.dir/lib/common/socket.c.o
[ 20%] Building C object CMakeFiles/h2o.dir/lib/common/socketpool.c.o
[ 20%] Building C object CMakeFiles/h2o.dir/lib/common/string.c.o
[ 25%] Building C object CMakeFiles/h2o.dir/lib/common/time.c.o
[ 25%] Building C object CMakeFiles/h2o.dir/lib/common/timeout.c.o
[ 29%] Building C object CMakeFiles/h2o.dir/lib/common/url.c.o
[ 33%] Building C object CMakeFiles/h2o.dir/lib/core/config.c.o
[ 33%] Building C object CMakeFiles/h2o.dir/lib/core/configurator.c.o
[ 37%] Building C object CMakeFiles/h2o.dir/lib/core/context.c.o
[ 37%] Building C object CMakeFiles/h2o.dir/lib/core/headers.c.o
[ 41%] Building C object CMakeFiles/h2o.dir/lib/core/proxy.c.o
[ 41%] Building C object CMakeFiles/h2o.dir/lib/core/request.c.o
[ 45%] Building C object CMakeFiles/h2o.dir/lib/core/token.c.o
[ 50%] Building C object CMakeFiles/h2o.dir/lib/core/util.c.o
[ 50%] Building C object CMakeFiles/h2o.dir/lib/handler/access_log.c.o
/home/vagrant/h2o/lib/handler/access_log.c: In function ‘log_access’:
/home/vagrant/h2o/lib/handler/access_log.c:387:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
     write(fh->fd, line, pos - line);
          ^
[ 54%] Building C object CMakeFiles/h2o.dir/lib/handler/chunked.c.o
[ 54%] Building C object CMakeFiles/h2o.dir/lib/handler/expires.c.o
[ 58%] Building C object CMakeFiles/h2o.dir/lib/handler/file.c.o
[ 58%] Building C object CMakeFiles/h2o.dir/lib/handler/headers.c.o
[ 62%] Building C object CMakeFiles/h2o.dir/lib/handler/mimemap.c.o
[ 62%] Building C object CMakeFiles/h2o.dir/lib/handler/proxy.c.o
[ 66%] Building C object CMakeFiles/h2o.dir/lib/handler/redirect.c.o
[ 70%] Building C object CMakeFiles/h2o.dir/lib/handler/reproxy.c.o
[ 70%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/access_log.c.o
[ 75%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/expires.c.o
[ 75%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/file.c.o
[ 79%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/headers.c.o
[ 79%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/proxy.c.o
[ 83%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/redirect.c.o
[ 87%] Building C object CMakeFiles/h2o.dir/lib/handler/configurator/reproxy.c.o
[ 87%] Building C object CMakeFiles/h2o.dir/lib/http1.c.o
[ 91%] Building C object CMakeFiles/h2o.dir/lib/http2/connection.c.o
[ 91%] Building C object CMakeFiles/h2o.dir/lib/http2/frame.c.o
[ 95%] Building C object CMakeFiles/h2o.dir/lib/http2/hpack.c.o
[ 95%] Building C object CMakeFiles/h2o.dir/lib/http2/scheduler.c.o
[100%] Building C object CMakeFiles/h2o.dir/lib/http2/stream.c.o
[100%] Building C object CMakeFiles/h2o.dir/src/main.c.o
Linking C executable h2o
[100%] Built target h2o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment