Henry Robinson commented on ZOOKEEPER-594:

Hi Erik - 

Thanks for the patch! Doc updates are always really helpful. 

I feel like the current README is already pretty explicit about the need to 
make sure the C libraries are in the system's library path. Also, you recommend 
that users run ldconfig, but not all systems have it. Perhaps you could 
rephrase this to say something like "The C libraries are by default installed 
in /usr/local/lib. If your system has ldconfig, you might find it easiest to 
add /usr/local/lib to ld.so.conf rather than manipulating the system-global 
library paths (this is in particular useful when trying to use zkpython from 
outside your own user's context)."

Also, that's a very specific warning to print in setup.py. Could you just point 
users to the README if you think that they will have trouble finding it? 
Something like "zkpython 0.4 - please see README for detailed installation 



> Adding documentation to zkpython to help out with the setup for finding 
> libzookeeper_mt.so.2
> --------------------------------------------------------------------------------------------
>                 Key: ZOOKEEPER-594
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-594
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: contrib
>         Environment: Have been tested on Fedora 9
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>            Priority: Minor
>         Attachments: ZOOKEEPER-594.patch
> When setting up and using the zkpython binding, sometimes you encounter the 
> problem that python cannot find the file "libzookeeper_mt.so.2". This can be 
> fixed in most cases by for example adding the line "export 
> LD_LIBRARY_PATH=/usr/local/lib/" to your .bashrc file. I some cases though, 
> when for example running your python script from within a fcgi context and a 
> lighttpd server it still isn't able to find the file.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to