cstrahan / capnp-ruby

Ruby wrapper for Cap'n Proto
MIT License
90 stars 15 forks source link

Doesn't build on Debian unstable #2

Closed filterfish closed 10 years ago

filterfish commented 10 years ago

I've tried to build it with both the installed package and by installing from source (after removing the deb package) but it fails with the same error:

Given that gem install failed I tried doing it manually:

# cd /usr/local/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/capn_proto-0.0.1.alpha.5/ext/capn_proto
# make distclean

# ruby extconf.rb setup
creating Makefile

# make
compiling class_builder.cc
In file included from class_builder.cc:1:0:
ruby_capn_proto.h:17:26: fatal error: capnp/object.h: No such file or directory
#include <capnp/object.h>
                          ^
compilation terminated.
make: *** [class_builder.o] Error 1

I looked to see if there was an object.h anywhere in capnproto but I couldn't see one. So I tried commenting out the #include <capnp/object.h> line but that didn't get me very far. No surprise there really!

filterfish commented 10 years ago

I had include files in /use/local/include, presumably from me trying to compile from scratch. Anyway I removed these files and it compiled properly.

FYI I tried installing using: ```gem install capn_proto --pre''' which failed however building from git HEAD works. I'm building against 0.4.0.