Skip to content

Instantly share code, notes, and snippets.

@mapk0y
Created April 14, 2015 10:23
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 mapk0y/df52420e18182f8b8a40 to your computer and use it in GitHub Desktop.
Save mapk0y/df52420e18182f8b8a40 to your computer and use it in GitHub Desktop.
h2o-v1.2.0 の build メモ

cmake . && make -j$(nproc) した場合

 /usr/bin/install -c -m 644 libcrypto.pc libssl.pc libtls.pc openssl.pc '/h2o-1.2.0/libressl-build/lib/pkgconfig'
[  2%] Built target bundled-ssl
make: *** [all] Error 2

並列を制御してあげないとダメ?

  • cmake や make のそこら辺調べる

cmake . && make した場合

[ 56%] Building C object CMakeFiles/h2o.dir/src/main.c.o
Linking C executable h2o
[ 56%] Built target h2o
Scanning dependencies of target libh2o
[ 56%] Building C object CMakeFiles/libh2o.dir/deps/picohttpparser/picohttpparser.c.o
[ 58%] Building C object CMakeFiles/libh2o.dir/lib/common/hostinfo.c.o
In file included from /h2o-1.2.0/include/h2o/multithread.h:27:0,
                 from /h2o-1.2.0/include/h2o/hostinfo.h:30,
                 from /h2o-1.2.0/lib/common/hostinfo.c:22:
/h2o-1.2.0/include/h2o/socket.h:31:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/libh2o.dir/lib/common/hostinfo.c.o] Error 1
make[1]: *** [CMakeFiles/libh2o.dir/all] Error 2
make: *** [all] Error 2
root@a33f636fb55d:/h2o-1.2.0# find . -name 'ssl.h'
./libressl-2.1.6/include/openssl/ssl.h
./libressl-build/include/openssl/ssl.h

./libressl-build/include/ を何処かで渡してあげないとダメ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment