Closed jigyasa-grover closed 8 years ago
I think you are mixing two things together. Jsonstreamer is a python package that uses yajl, what you added to the LD Library Path is the path to Yajl-py's egg-info folder, which is first yet a different python package and also doesn't contain the yajl.so ... you need to add the proper path to the LD Path, which if I recall correctly your install steps would do that automatically.
The error you got from gcc is fine, it just means that your code has no main function ... so its not complaining that it can't find yajl. Which is what you see from ldconfig command.
I suggest you check with the jsonstreamer folk (https://github.com/kashifrazzaqui/json-streamer), there is a chance their code is looking for yajl 1 and not yajl 2. Or perhaps something else.
@pykler So I remove the path added hereexport LD_LIBRARY_PATH="/usr/local/lib/python3.4/dist-packages/yajl-0.3.5.egg-info"
?
And that means yajl
is correctly installed, it's the issue with the json-streamer library ?
Yes I believe the jsonstreamer is not able to load yajl for some reason. Most probably they rely on yajl.so.1 not yajl.so.2 but I maybe wrong. It would be best to check with them. Hatem Nassrat
On Wed, Jul 27, 2016 3:20 PM, Jigyasa Grover notifications@github.com wrote: @pykler So I remove the path added here export LD_LIBRARY_PATH="/usr/local/lib/python3.4/dist-packages/yajl-0.3.5.egg-info" ?
And that means yajl is correctly installed, it's the issue with the json-streamer library ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or mute the thread .
@pykler Thanks for your quick and helpful responses.
Looked into the code and actually found the compatibility issue in jsonstreamer
to be correct.
Sending a quick-fix to them for the same.
Here is the follow up: https://github.com/kashifrazzaqui/json-streamer/issues/5
Hey @lloyd @pykler
I have been trying to install
yajl
on my Ubuntu 14.04 system for implementing a Streaming API.export LD_LIBRARY_PATH="/usr/local/lib/python3.4/dist-packages/yajl-0.3.5.egg-info"
jsonstreamer
gives me the following :Reference to the code-snippet which raises the
OSError
: github.com/kashifrazzaqui/json-streamer/jsonstreamer/yajl/parse.py#L18-L29gcc -lyajl
yields:sudo ldconfig -p | grep yajl
results in:Any pointers on this one ?