h2o / h2o

H2O - the optimized HTTP/1, HTTP/2, HTTP/3 server
https://h2o.examp1e.net
MIT License
10.82k stars 839 forks source link

package 'libmruby' not found but says Found MRUBY - Driving me bananas! #476

Open johnpittman opened 9 years ago

johnpittman commented 9 years ago

Finally broke down and have to post install issue. Everything thing else installs fine for h2o. The last installation error that i have is package 'libmruby' not found as seen below:

checking for module 'libuv>=1.0.0' -- found libuv, version 1.7.3 -- checking for module 'libwslay' -- found libwslay, version 1.0.1-DEV -- checking for module 'libmruby' -- package 'libmruby' not found -- Found MRUBY: /usr/lib/libmruby.a

I install libmruby-dev and then compile/install mruby from https://github.com/mruby/mruby so I don't know what else to do here. Here is my build script for the mruby section:

All installs for the entire build

apt-get update && apt-get install -y wget git-core \ build-essential cmake libssl-dev zlib1g-dev libtool autoconf pkg-config python-sphinx bison ruby libmruby-dev

mruby

cd /tmp \ && git clone https://github.com/mruby/mruby \ && cd mruby \ && ruby ./minirake

Here's the h2o section in case you see something here:

h2o

cd /tmp && git clone https://github.com/h2o/h2o && cd h2o &&

cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_C_FLAGS="-Wall -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fvisibility=hidden" . && make && make install

Trying my best to get this process stable so I can start shipping some website with the best web server on the net! Thanks for the hard work so us coders can deliver our art as fast as possible to as many people as possible around the globe.

kazuho commented 9 years ago
-- checking for module 'libmruby'
-- package 'libmruby' not found
-- Found MRUBY: /usr/lib/libmruby.a 

No worries!

As disscussed in https://github.com/h2o/h2o/pull/378#issuecomment-116456552, mruby is searched using two methods, and in your case, one is failing and the other is succeeding.

FWIW, we plan to bundle mruby as part of H2O in 1.5 (see #475 #477), and once that gets merged our users will no longer be bothered by this confusing message.

johnpittman commented 9 years ago

Awesome and good to hear. Fast reply responses = +1000.