From: <bjo...@it...> - 2003-09-30 11:54:17
|
jean-marc pouchoulon: > Helo , > After read mails from archives, I sucessfully install > python-ldap on redhat 9. (install tgz of openldap-2.1.22 > Modify source with python-ldap_libs.patch ( -libs =3D ldap_r lber sasl= 2 > ssl crypto > +libs =3D ldap_r ldap lber sasl2 ssl crypto ) before that I have an err= or > messages on import undefined=20 > symbol: ldap_first_reference) > Now I have a segmentation fault on simple bind > >>> import ldap > >>> l =3D ldap.open('ip_address') > >>> l.simple_bind_s('','') > Erreur de segmentation >=20 > I install the package on an xp system and it works perfectly. >=20 > I try to install the package on a debian and I have=20 >=20 > python setup.py build > Traceback (most recent call last): > File "setup.py", line 10, in ? > from distutils.core import setup, Extension > ImportError: No module named distutils.core >=20 >=20 > Any help would be greatly appreciated, especially on RedHat.=20 For ldap: install apt for redhat and use e.g. the following in your /etc/apt/sources.list : rpm http://apt.freshrpms.net redhat/9.0/en/i386 os updates freshrpms rpm ftp://apt-rpm.tuxfamily.org/apt redhat/9.0/en/i386 os updates extra (just sed'ed s/"7.3"/"9.0"/g, so I don't know if the url is correct.) then, for both redhat and debian, run the following commands: $ apt-get update && apt-get upgrade $ apt-get install python-ldap that's it. --=20 Regards Bj=F8rn Ove Gr=F8tan |