[rsyslog-notify] Forum Thread: Re: Configure works but make fails - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Wed Apr 13 18:06:01 CEST 2016
User: usaims
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26482#p26482
Message:
----------
I installed libfastjson but I still have compile issues on Slackware.
If I do [code:21lp64dm]./configure --enable-imfile --enable-snmp
[/code:21lp64dm]without setting environmental variables or CFLAGS, I get:
[quote:21lp64dm]configure: error: Package requirements (libfastjson) were
not met:
No package 'libfastjson' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables JSON_C_CFLAGS
and JSON_C_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.[/quote:21lp64dm]
Then I will [code:21lp64dm]export
JSON_C_LIBS=/usr/local/include/libfastjson[/code:21lp64dm] and then I will
do [code:21lp64dm]./configure --enable-imfile
--enable-snmp[/code:21lp64dm] again. It configures without errors. But when
I do a 'make', I get:
[quote:21lp64dm]root at logs:/home/rod/misc/rsyslog-8.17.0# make
make all-recursive
make[1]: Entering directory `/home/rod/misc/rsyslog-8.17.0'
Making all in compat
make[2]: Entering directory `/home/rod/misc/rsyslog-8.17.0/compat'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rod/misc/rsyslog-8.17.0/compat'
Making all in runtime
make[2]: Entering directory `/home/rod/misc/rsyslog-8.17.0/runtime'
CC librsyslog_la-rsyslog.lo
In file included from msg.h:26:0,
from batch.h:30,
from wti.h:28,
from rsyslog.c:69:
../template.h:33:18: fatal error: json.h: No such file or directory
#include <json.h>
^
compilation terminated.
make[2]: *** [librsyslog_la-rsyslog.lo] Error 1
make[2]: Leaving directory `/home/rod/misc/rsyslog-8.17.0/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rod/misc/rsyslog-8.17.0'
make: *** [all] Error 2
root at logs:/home/rod/misc/rsyslog-8.17.0# [/quote:21lp64dm]
I have json.h - it exists.
/usr/local/include/libfastjson/json.h
Thank you for any assistance.
More information about the rsyslog-notify
mailing list