You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Erik Holstad (JIRA)" <ji...@apache.org> on 2009/11/24 18:26:39 UTC

[jira] Created: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

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


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.


[jira] Commented: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

Posted by "Henry Robinson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782234#action_12782234 ] 

Henry Robinson commented on ZOOKEEPER-594:
------------------------------------------

Looks good to me, Erik, thanks!

> 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, 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.


[jira] Commented: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782113#action_12782113 ] 

Erik Holstad commented on ZOOKEEPER-594:
----------------------------------------

@ Henry
I agree that the README is explicit about that you need to have the C libraries in your system's library path, I just want to get the information out there, for people that don't exactly know what options they have, like me, so that I could take less time to get it running. Just the fact that this thread is started will make people find the solution when googling.

But will rephrase the text in README more along the lines of what you wrote.

I do have a question for you. In the build.xml, does install have to depend on compile for it to work?

Regards Erik

> 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.


[jira] Commented: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

Posted by "Henry Robinson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782096#action_12782096 ] 

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 instructions". 

cheers,
Henry

 

> 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.


[jira] Updated: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Holstad updated ZOOKEEPER-594:
-----------------------------------

    Attachment: ZOOKEEPER-594.patch

> 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.


[jira] Updated: (ZOOKEEPER-594) Adding documentation to zkpython to help out with the setup for finding libzookeeper_mt.so.2

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Holstad updated ZOOKEEPER-594:
-----------------------------------

    Attachment: ZOOKEEPER-594.patch

Changed the wording in README after comment from Henry. Also removed the output lines from setup.py, since I don't really think that this information belongs there.

> 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, 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.