when configure the mysqljsonload,it always shows "Jansson library does not exist",though i have already installed the jansson-2.4.

273 views
Skip to first unread message

周李洋

unread,
Nov 2, 2012, 6:26:20 AM11/2/12
to jansso...@googlegroups.com
Dear ALL
It always show some  errors when I configure the mysqljsonload.
when configure the mysqljsonload,it always shows "Jansson library does not exist",though i have already installed the jansson-2.4.
I`m sure the jansson has already installed ,and use "./configure --with-jansson=/usr/local --with-mysql=/var/lib/mysql/" to install themysqljsonload.
The location of jansson & mysql  is correct.
 
I`m not sure ,is there still some mistakes?
Thx a lot .
 

Anders Karlsson

unread,
Nov 5, 2012, 11:15:17 AM11/5/12
to jansso...@googlegroups.com
This is my problem I guess, and I have to look into it. I'll have to
check where this is detected and how. All-in-all, it's not a JSON issue
anyway, but rather an issue with mysqljsonload.

/Karlsson
> --
> Jansson users mailing list
> jansso...@googlegroups.com
> http://groups.google.com/group/jansson-users

Anders Karlsson

unread,
Nov 10, 2012, 9:15:23 AM11/10/12
to jansso...@googlegroups.com, 周李洋
This test in configure fails if libjansson.a doesn't exist in the given
localtion (I always assume a static link here). Also, there is a test
for a function (json_string) to make sure that this is the right
library. Can you do three things for me he (send it to me directly, so
we don't clutter the Jansson mailing list with unnecessary stuff):
1) Try with mysqljsonimport instead of mysqljsonload. This is a much
more recent version (the tool was renamed).
2) Check that libjansson.a exists as /usr/local/lib/libjansson.a
3) Attach the config.log, generated by configure, in the mysqljsonload /
mysqljsonimprt directory to me, and I'll have a look at it.

Cheers
/Karlsson
On 11/2/2012 11:26, 周李洋 wrote:

Josh Baird

unread,
Jan 2, 2013, 1:29:36 PM1/2/13
to jansso...@googlegroups.com, 周李洋
I'm having the same problem here.  libjansson.a does exist.  Snippet from config.log:

Josh Baird

unread,
Jan 2, 2013, 1:30:02 PM1/2/13
to jansso...@googlegroups.com, 周李洋
config.log:

configure:4241: checking MySQL home directory
configure:4250: result: /usr
configure:4270: Using MySQL Home: /usr
configure:4293: checking for mysql_config
configure:4296: result: /usr/bin/mysql_config
configure:4382: checking Jansson library home
configure:4395: checking for json_string in -ljansson
configure:4420: gcc -o conftest -g -O2  -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buf
fer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC   -DUNIV_LINUX -I/usr/include -I/
usr/include/mysql  -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -L/usr/lib -L/usr/li
b/mysql -lmysqlclient_r conftest.c -ljansson  -lz -lpthread -lc  >&5
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
configure:4420: $? = 1


On Saturday, November 10, 2012 9:15:44 AM UTC-5, Anders Karlsson wrote:
Reply all
Reply to author
Forward
0 new messages