Heroku NodeJS + CouchBase Custom Buildpack -


i'm trying put custom buildpack nodejs , couchbase module/libraries

i've gotten far using vulcan build libcouchbase , libvbucket , getting buildpack retrieve , unpack tgz files both.

everything looks ok there, receive errors when npm tries install couchbase module:

i bunch of errors, line:

"../src/couchbase_impl.h:52:36: warning: libcouchbase/couchbase.h: no such file or directory"

leads me think can't find libcouchbase libraries (which possible since aren't in usual place).

i've tried add correct path using cppflags="-i/app/vendor/couchbase/include/libcouchbase" in both config vars , exporting part of compile phase, still no luck.

here gist heroku deploy output , compile/release buildpack files: https://gist.github.com/ahamidi/5620503

any appreciated.

thanks,

ali

[update 1]

i've made progress , can slug compile when deploying heroku.

the key figuring out env variables couchnode looks when adding custom directories include.

in case, env variables extra_cppflags , extra_ldflags.

so updated compile file include following:

export extra_cppflags="-i$build_dir/vendor/couchbase/include"  export extra_ldflags="-l$build_dir/vendor/couchbase/lib -wl,-rpath,$build_dir/vendor/couchbase/lib" 

the slug compiles , app deployed, different error in logs:

error: libcouchbase.so.2: cannot open shared object file: no such file or directory 

so looks node can't see libcouchbase libraries directory.

you should set cppflags="-i/app/vendor/couchbase/include" ldflags="-l/app/vendor/couchbase/include -lcouchbase"


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -