[python-ldap] Issues installing py-ldap2

Christopher Dukes chris.dukes.aix at gmail.com
Fri Nov 11 17:28:35 CET 2011

On Fri, 2011-11-11 at 10:57 -0500, McCann, Brian wrote:
> Hi all.  I've spent a few hours trying to figure this out and it's driving me nutty.
> I have one FreeBSD "ports" machine I build packages on, then install those packages on all my various servers (of the same OS version.  In this case, FreeBSD 6.2)  On that machine, I've built and packaged py-ldap2 without issue.  When I try to install that package on another machine, it fails.  Here's the output of the pkg_add (story continues after output):

You clipped off what you ran to give all the error output of "Hey I
can't find some really critical files."  The command you ran to produce
the error messages is more important than the error messages.

[SNEEP of long crap indicating files not found]

Anyways this isn't a python-ldap question so much as "How do I
effectively distribute Ports on FreeBSD"

Read the "pkg_add" manpage, drop down to the Environment section.  Note
the environment variables "PKG_PATH", "PACKAGEROOT", and "PACKAGESITE".

For the clients installing packages you built... set those environment
variables appropriately, and use 'pkg_add -r', or use portmaster with
the appropriate options to use the remote or "local" repositories.  If
you need further assistance, seek abuse on the appropriate FreeBSD
mailing list.

> What's driving me bonkers and what I THINK is the cause of the problem is the "include_dirs: /opt/openldap-RE24/include /usr/include/sasl" and "library_dirs: /opt/openldap-RE24/lib".  Those are just wrong.  When I build the package, it uses "include_dirs: /usr/local/include /usr/include/sasl" and "library_dirs: /usr/local/lib".  Those directories will get the installer to actually find the missing lber.h, etc.  I un-tarballed the tbz file and grep'd through all the files looking for "RE24", and couldn't find where it's getting that include path from.
> Can someone please point me in the right direction here?
> Thanks,
> --Brian
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> http://mail.python.org/mailman/listinfo/python-ldap

More information about the python-ldap mailing list