Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE="oci8 ldap" emerge php (Полез искать ldap в /opt/oracle)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Mikola Zakobrezki
n00b
n00b


Joined: 10 Dec 2007
Posts: 7

PostPosted: Mon Dec 10, 2007 5:51 pm    Post subject: USE="oci8 ldap" emerge php (Полез искать ldap в /o Reply with quote

Имеется
/etc/portage/package.use:

dev-lang/php          -mssql -mysql  oci8 apache2 berkdb bzip2 calendar cgi cli crypt ctype curl dbase ftp gd gdbm hash iconv imap inifile kerberos ldap mhash ncurses nls  pcre pic posix postgres readline session snmp sockets spell spl ssl sysvipc threads truetype unicode xml xmlreader xmlwriter xpm xsl zip zlib doc


/etc/env.d/99oracle:

ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/10.2.0
ORACLE_SID=BORA
ORACLE_TERM=xterm
ORACLE_OWNER=oracle
TNS_ADMIN=/opt/oracle/10.2.0/network/admin

ORA_NLS10=/opt/oracle/10.2.0/nls/data
NLS_LANG=RUSSIAN_RUSSIA.UTF8
NLS_LANGUAGE=RUSSIAN
NLS_TERRITORY=RUSSIA

CLASSPATH=/opt/oracle/10.2.0/jdbc/lib/classes12.zip
#LD_LIBRARY_PATH=/opt/oracle/10.2.0/lib
#DISABLE_HUGETLBFS=1
PATH=/opt/oracle/10.2.0/bin
ROOTPATH=/opt/oracle/10.2.0/bin
#LDPATH="/opt/oracle/10.2.0/lib"
#TZ=GMT


делаю emerge php
конфиг вываливается с сообщением cannot find ldap.h
Детальное изучение config.log показало следующее:
Quote:

$ ./configure --prefix=/usr/lib/php5 --host=i686-pc-linux-gnu --mandir=/usr/lib/php5/man --infodir=/usr/lib/php5/info --sysconfdir=/etc --cache-file=./config.cache --enable-cli --disable-cgi --with-config-file-path=/etc/php/cli-php5 --with-config-file-scan-dir=/etc/php/cli-php5/ext-active --without-pear --enable-bcmath --with-bz2 --enable-calendar --with-curl --without-curlwrappers --enable-dbase --disable-exif --without-fbsql --without-fdftk --disable-filter --enable-ftp --with-gettext --with-gmp --disable-ipv6 --disable-json --with-kerberos=/usr --enable-mbstring --with-mcrypt --with-mhash --without-msql --with-mssql --with-ncurses --with-openssl --with-openssl-dir=/usr --disable-pcntl --disable-pdo --with-pgsql --with-pspell --without-recode --disable-simplexml --disable-shmop --with-snmp --enable-soap --enable-sockets --without-sybase --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --without-tidy --disable-tokenizer --disable-wddx --disable-xmlreader --disable-xmlwriter --without-xmlrpc --without-xsl --enable-zip --with-zlib --disable-debug --enable-dba --with-cdb --with-db4 --without-flatfile --with-gdbm --with-inifile --without-qdbm --with-freetype-dir=/usr --with-t1lib=/usr --disable-gd-jis-conv --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-gd --with-imap --with-imap-ssl --with-ldap=/opt/oracle/10.2.0 --without-mysqli --with-unixODBC=/usr --without-adabas --without-birdstep --without-dbmaker --without-empress --without-esoob --without-ibm-db2 --without-iodbc --without-sapdb --without-solid --with-oci8 --with-readline --without-libedit --without-mm --without-sqlite
CONFIGURE_COMMAND=' '\''./configure'\'' '\''--prefix=/usr/lib/php5'\'' '\''--host=i686-pc-linux-gnu'\'' '\''--mandir=/usr/lib/php5/man'\'' '\''--infodir=/usr/lib/php5/info'\'' '\''--sysconfdir=/etc'\'' '\''--cache-file=./config.cache'\'' '\''--enable-cli'\'' '\''--disable-cgi'\'' '\''--with-config-file-path=/etc/php/cli-php5'\'' '\''--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'\'' '\''--without-pear'\'' '\''--enable-bcmath'\'' '\''--with-bz2'\'' '\''--enable-calendar'\'' '\''--with-curl'\'' '\''--without-curlwrappers'\'' '\''--enable-dbase'\'' '\''--disable-exif'\'' '\''--without-fbsql'\'' '\''--without-fdftk'\'' '\''--disable-filter'\'' '\''--enable-ftp'\'' '\''--with-gettext'\'' '\''--with-gmp'\'' '\''--disable-ipv6'\'' '\''--disable-json'\'' '\''--with-kerberos=/usr'\'' '\''--enable-mbstring'\'' '\''--with-mcrypt'\'' '\''--with-mhash'\'' '\''--without-msql'\'' '\''--with-mssql'\'' '\''--with-ncurses'\'' '\''--with-openssl'\'' '\''--with-openssl-dir=/usr'\'' '\''--disable-pcntl'\'' '\''--disable-pdo'\'' '\''--with-pgsql'\'' '\''--with-pspell'\'' '\''--without-recode'\'' '\''--disable-simplexml'\'' '\''--disable-shmop'\'' '\''--with-snmp'\'' '\''--enable-soap'\'' '\''--enable-sockets'\'' '\''--without-sybase'\'' '\''--without-sybase-ct'\'' '\''--disable-sysvmsg'\'' '\''--disable-sysvsem'\'' '\''--disable-sysvshm'\'' '\''--without-tidy'\'' '\''--disable-tokenizer'\'' '\''--disable-wddx'\'' '\''--disable-xmlreader'\'' '\''--disable-xmlwriter'\'' '\''--without-xmlrpc'\'' '\''--without-xsl'\'' '\''--enable-zip'\'' '\''--with-zlib'\'' '\''--disable-debug'\'' '\''--enable-dba'\'' '\''--with-cdb'\'' '\''--with-db4'\'' '\''--without-flatfile'\'' '\''--with-gdbm'\'' '\''--with-inifile'\'' '\''--without-qdbm'\'' '\''--with-freetype-dir=/usr'\'' '\''--with-t1lib=/usr'\'' '\''--disable-gd-jis-conv'\'' '\''--with-jpeg-dir=/usr'\'' '\''--with-png-dir=/usr'\'' '\''--with-xpm-dir=/usr'\'' '\''--with-gd'\'' '\''--with-imap'\'' '\''--with-imap-ssl'\'' '\''--with-ldap=/opt/oracle/10.2.0'\'' '\''--without-mysqli'\'' '\''--with-unixODBC=/usr'\'' '\''--without-adabas'\'' '\''--without-birdstep'\'' '\''--without-dbmaker'\'' '\''--without-empress'\'' '\''--without-esoob'\'' '\''--without-ibm-db2'\'' '\''--without-iodbc'\'' '\''--without-sapdb'\'' '\''--without-solid'\'' '\''--with-oci8'\'' '\''--with-readline'\'' '\''--without-libedit'\'' '\''--without-mm'\'' '\''--without-sqlite'\'''
CONFIGURE_OPTIONS=' '\''--prefix=/usr/lib/php5'\'' '\''--host=i686-pc-linux-gnu'\'' '\''--mandir=/usr/lib/php5/man'\'' '\''--infodir=/usr/lib/php5/info'\'' '\''--sysconfdir=/etc'\'' '\''--cache-file=./config.cache'\'' '\''--enable-cli'\'' '\''--disable-cgi'\'' '\''--with-config-file-path=/etc/php/cli-php5'\'' '\''--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'\'' '\''--without-pear'\'' '\''--enable-bcmath'\'' '\''--with-bz2'\'' '\''--enable-calendar'\'' '\''--with-curl'\'' '\''--without-curlwrappers'\'' '\''--enable-dbase'\'' '\''--disable-exif'\'' '\''--without-fbsql'\'' '\''--without-fdftk'\'' '\''--disable-filter'\'' '\''--enable-ftp'\'' '\''--with-gettext'\'' '\''--with-gmp'\'' '\''--disable-ipv6'\'' '\''--disable-json'\'' '\''--with-kerberos=/usr'\'' '\''--enable-mbstring'\'' '\''--with-mcrypt'\'' '\''--with-mhash'\'' '\''--without-msql'\'' '\''--with-mssql'\'' '\''--with-ncurses'\'' '\''--with-openssl'\'' '\''--with-openssl-dir=/usr'\'' '\''--disable-pcntl'\'' '\''--disable-pdo'\'' '\''--with-pgsql'\'' '\''--with-pspell'\'' '\''--without-recode'\'' '\''--disable-simplexml'\'' '\''--disable-shmop'\'' '\''--with-snmp'\'' '\''--enable-soap'\'' '\''--enable-sockets'\'' '\''--without-sybase'\'' '\''--without-sybase-ct'\'' '\''--disable-sysvmsg'\'' '\''--disable-sysvsem'\'' '\''--disable-sysvshm'\'' '\''--without-tidy'\'' '\''--disable-tokenizer'\'' '\''--disable-wddx'\'' '\''--disable-xmlreader'\'' '\''--disable-xmlwriter'\'' '\''--without-xmlrpc'\'' '\''--without-xsl'\'' '\''--enable-zip'\'' '\''--with-zlib'\'' '\''--disable-debug'\'' '\''--enable-dba'\'' '\''--with-cdb'\'' '\''--with-db4'\'' '\''--without-flatfile'\'' '\''--with-gdbm'\'' '\''--with-inifile'\'' '\''--without-qdbm'\'' '\''--with-freetype-dir=/usr'\'' '\''--with-t1lib=/usr'\'' '\''--disable-gd-jis-conv'\'' '\''--with-jpeg-dir=/usr'\'' '\''--with-png-dir=/usr'\'' '\''--with-xpm-dir=/usr'\'' '\''--with-gd'\'' '\''--with-imap'\'' '\''--with-imap-ssl'\'' '\''--with-ldap=/opt/oracle/10.2.0'\'' '\''--without-mysqli'\'' '\''--with-unixODBC=/usr'\'' '\''--without-adabas'\'' '\''--without-birdstep'\'' '\''--without-dbmaker'\'' '\''--without-empress'\'' '\''--without-esoob'\'' '\''--without-ibm-db2'\'' '\''--without-iodbc'\'' '\''--without-sapdb'\'' '\''--without-solid'\'' '\''--with-oci8'\'' '\''--with-readline'\'' '\''--without-libedit'\'' '\''--without-mm'\'' '\''--without-sqlite'\'''

Раньше все апдейты проходили без граблей. Причём всё работало.
как так получиться могло? подскажите что-нибудь?
Back to top
View user's profile Send private message
zvn
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 77

PostPosted: Thu Dec 13, 2007 3:53 pm    Post subject: Reply with quote

а
Code:
echo $PATH
что показывает?
Back to top
View user's profile Send private message
Mikola Zakobrezki
n00b
n00b


Joined: 10 Dec 2007
Posts: 7

PostPosted: Thu Dec 13, 2007 7:20 pm    Post subject: Reply with quote

Quote:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/oracle/10.2.0/bin
Back to top
View user's profile Send private message
zvn
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 77

PostPosted: Fri Dec 14, 2007 1:14 pm    Post subject: Reply with quote

смотрим /usr/portage/eclass.php5_2-sapi.eclass
раньше здесь не было "${ORACLE_HOME}"
phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
было просто:
phpconfutils_extension_with "ldap" "ldap" 1

может, сборку делать так:

ORACLE_HOME="" emerge ... php
Back to top
View user's profile Send private message
Mikola Zakobrezki
n00b
n00b


Joined: 10 Dec 2007
Posts: 7

PostPosted: Fri Dec 14, 2007 2:19 pm    Post subject: Reply with quote

zvn wrote:
смотрим /usr/portage/eclass.php5_2-sapi.eclass
раньше здесь не было "${ORACLE_HOME}"
phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
было просто:
phpconfutils_extension_with "ldap" "ldap" 1

может, сборку делать так:

ORACLE_HOME="" emerge ... php

Ок, проверю сегодня. Отпишусь о результатах.
Back to top
View user's profile Send private message
Mikola Zakobrezki
n00b
n00b


Joined: 10 Dec 2007
Posts: 7

PostPosted: Fri Dec 14, 2007 2:35 pm    Post subject: Reply with quote

что-то я ступил изначально. ORACLE_HOME нужна для выполнения сборки oci8.
так что имеем:

Quote:
*
* You must have the ORACLE_HOME variable set in your environment to
* compile the Oracle extension.
*
*
Back to top
View user's profile Send private message
calculator
Apprentice
Apprentice


Joined: 16 Oct 2006
Posts: 183
Location: Russia, Moscow

PostPosted: Sat Dec 15, 2007 11:33 am    Post subject: Reply with quote

наверно где-то в /etc/env.d/ смотреть нужно. Попробовать погуглить примерно так.
Back to top
View user's profile Send private message
zvn
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 77

PostPosted: Sat Dec 15, 2007 2:37 pm    Post subject: Reply with quote

для чего гуглить то?
ведь речь идёт о вызове configure, параметры которого формируются в ebuild-е вызовами из /usr/portage/eclass.php5_2-sapi.eclass, в котором прописано, что если use-флаг ldap и oci8 указан, то сформировать параметр с использованием переменной $ORACLE_HOME, т.е. --with-ldap=$ORACLE_HOME

/usr/portage/eclass.php5_2-sapi.eclass
Code:

   # LDAP support
   if use ldap || phpconfutils_usecheck ldap ; then
      if use oci8 ; then
         phpconfutils_extension_with   "ldap"      "ldap"      1 "${ORACLE_HOME}"
      else
         phpconfutils_extension_with   "ldap"      "ldap"      1
         phpconfutils_extension_with   "ldap-sasl"   "ldap-sasl"   0
      fi
   fi


/usr/portage/phpconfutils.eclass
Code:

phpconfutils_extension_with() {
   local my_shared

   if [[ "$3" == "1" ]] ; then
      if [[ "${shared}+" != "+" ]] ; then
         my_shared="${shared}"
         if [[ "$4+" != "+" ]] ; then
            my_shared="${my_shared},$4"
         fi
      elif [[ "$4+" != "+" ]] ; then
         my_shared="=$4"
      fi
   else
      if [[ "$4+" != "+" ]] ; then
         my_shared="=$4"
      fi
   fi

   if useq "$2" || phpconfutils_usecheck "$2" ; then
      my_conf="${my_conf} --with-$1${my_shared}"
      einfo "  Enabling $1"
   else
      my_conf="${my_conf} --without-$1"
      einfo "  Disabling $1"
   fi
}


надо только понять, почему вдруг при сборке php с ldap и oci8 понадобилось использовать возможности oid, а не openldap. я бы уж погуглил oci8 и sso

А сервер oracle в каком варианте установлен? У меня собралось без проблем.
find . -name ldap.h
./product/10gr2/ldap/public/ldap.h
Back to top
View user's profile Send private message
Mikola Zakobrezki
n00b
n00b


Joined: 10 Dec 2007
Posts: 7

PostPosted: Mon Dec 17, 2007 11:20 am    Post subject: Reply with quote

Вобщем т.к. надо срочно работать, пока "заткнул" дыру путём копирования из работающего сервера $ORACLE_HOME/ldap в папку клиента. Хотя скорее всего достаточно будет и $ORACLE_HOME/ldap/public/*
Сборка прошла без заметных якорей. Поглядим, как отработает LDAP.
Ещё отпишусь.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum