I fiddled with CFLAGS and it can build successfully now. Thanks for pointing to me the source code!
> On Oct 3, 2015, at 06:21, Alexander Shorin <[email protected]> wrote: > > On Sat, Oct 3, 2015 at 12:58 AM, Ying Bian <[email protected]> wrote: >> I’ve installed spidermonkey185 via port and I can find the jsapi.h file >> under /opt/local/include/mozjs185. > > This path is not the one we're looking for spidermonkey headers: > https://github.com/apache/couchdb-couch/blob/master/rebar.config.script#L98-L100 > > Perhaps, you need to either patch rebar.config.script paths or extend > CFLAGS variable. > > -- > ,,,^..^,,,
