The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Не включается ldap для php, !*! Akmal, 13-Янв-12, 15:51  [смотреть все]
Собрал solaris 10, apache2_2, php с oracle и ldap. все программы собрались, но в phpinfo не показывает ldap:
System: SunOS webserver 5.10 Generic_118822-25 sun4u

Configure Command: './configure' '--enable-exif' '--enable-calendar' '--enable-magic-quotes--with-ldap=/usr/local/openldap' '--with-apxs2=/usr/local/apache2_2/bin/apxs' '--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib' '--with-openssl=/usr/local/ssl'

Loaded Modules: core prefork http_core mod_so mod_authn_file mod_authn_dbm mod_authn_anon mod_authn_dbd mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner mod_authnz_ldap mod_authz_default mod_auth_basic mod_auth_digest mod_dbd mod_dumpio mod_ext_filter mod_include mod_filter mod_deflate util_ldap mod_log_config mod_log_forensic mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_ident mod_usertrack mod_unique_id mod_setenvif mod_version mod_ssl mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imagemap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5

Но функция function_exists('ldap_connect') возвращает false.

  • Не включается ldap для php, !*! ne4to, 22:04 , 14-Янв-12 (1)
    > '--enable-magic-quotes--with-ldap=/usr/local/openldap'

    поставь пробел между параметрами

    • Не включается ldap для php, !*! Akmal, 15:52 , 16-Янв-12 (2)
      >> '--enable-magic-quotes--with-ldap=/usr/local/openldap'
      > поставь пробел между параметрами

      да. спасибо исправил. но теперь не компилируется. говорит не может найти ldap:
      checking for LDAP support... yes
      checking for LDAP Cyrus SASL support... no
      checking for 3 arg ldap_set_rebind_proc... yes
      checking for ldap_parse_result... no
      checking for ldap_parse_reference... no
      checking for ldap_start_tls_s... no
      checking for ldap_bind_s... no
      configure: error: LDAP build check failed. Please check config.log for more information.

      и несколько последных строк файла:

      ld: warning: file libssl.so.1.0.0: required by /usr/local/lib/libldap.so, not found
      ld: warning: file libcrypto.so.1.0.0: required by /usr/local/lib/libldap.so, not found
      ld: fatal: file /usr/lib/libresolv.so: version `SUNW_2.2.2' does not exist:
              required by file /usr/local/lib/libldap.so
      ld: fatal: File processing errors. No output written to conftest
      collect2: ld returned 1 exit status
      configure: failed program was:
      #line 52578 "configure"
      #include "confdefs.h"
      /* System header to define __stub macros and hopefully few prototypes,
          which can conflict with char ldap_bind_s(); below.  */
      #include <assert.h>
      /* Override any gcc2 internal prototype to avoid an error.  */
      /* We use char because int might match the return type of a gcc2
          builtin and then its argument prototype would still apply.  */
      char ldap_bind_s();

      int main() {

      /* The GNU C library defines this for functions which it implements
          to always fail with ENOSYS.  Some functions are actually named
          something starting with __ and the normal name is an alias.  */
      #if defined (__stub_ldap_bind_s) || defined (__stub___ldap_bind_s)
      choke me
      #else
      ldap_bind_s();
      #endif

      ; return 0; }




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру