Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing ldap extension in php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nulik
n00b
n00b


Joined: 11 Oct 2015
Posts: 1

PostPosted: Sun Oct 11, 2015 5:36 pm    Post subject: installing ldap extension in php Reply with quote

Hello, my current gentoo (release 2.0.3) does not have LDAP extension in php. When I try to emerge some ldap packages i get this error:

Code:
z3 ~ # emerge -pv apache php phpldapadmin         
 * Last emerge --sync was 3y 143d 16h 2m 32s ago.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-nds/openldap-2.4.30  USE="berkdb crypt ipv6 ssl syslog tcpd -cxx -debug -experimental -gnutls -icu -iodbc -kerberos -minimal -odbc -overlays -perl -samba -sasl (-selinux) -slp -smbkrb5passwd" 5,323 kB
[ebuild  N     ] app-admin/webapp-config-1.50.16-r1  102 kB
[ebuild   R    ] dev-libs/apr-util-1.3.12  USE="berkdb gdbm ldap* -doc -freetds -mysql -odbc -postgres -sqlite -static-libs" 0 kB
[ebuild   R    ] www-servers/apache-2.2.22-r1  USE="ldap* ssl -debug -doc (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
[ebuild   R    ] dev-lang/php-5.3.13  USE="apache2 berkdb bzip2 cli crypt ctype fileinfo filter gdbm hash iconv ipv6 json ldap* nls phar posix readline session simplexml ssl tokenizer unicode xml zlib -bcmath -calendar -cdb -cgi* -cjk -curl -curlwrappers -debug -doc -embed -enchant -exif -firebird -flatfile -fpm (-frontbase) -ftp* -gd* -gmp -imap -inifile -intl -iodbc -kerberos -kolab -ldap-sasl -libedit -mhash -mssql -mysql* -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pdo* -pic* -postgres -qdbm -recode -sharedmem -snmp -soap* -sockets* -spell -sqlite* -sqlite3 -suhosin (-sybase-ct) -sysvipc -threads -tidy -truetype* -wddx -xmlreader* -xmlrpc -xmlwriter* -xpm -xsl* -zip" 0 kB
[ebuild  N     ] virtual/httpd-cgi-0  0 kB
[ebuild  N    ~] net-nds/phpldapadmin-1.2.2-r1  USE="-vhosts" 1,383 kB

Total: 7 packages (4 new, 3 reinstalls), Size of downloads: 6,806 kB

The following keyword changes are necessary to proceed:
#required by phpldapadmin (argument)
=net-nds/phpldapadmin-1.2.2-r1 ~amd64

The following USE changes are necessary to proceed:
#required by virtual/httpd-php-5.3, required by net-nds/phpldapadmin-1.2.2-r1, required by phpldapadmin (argument)
>=dev-lang/php-5.3.13:5.3 apache2

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

z3 ~ #
z3 ~ # uname -a
Linux z3 3.3.7 #1 SMP Sat May 26 17:59:57 EDT 2012 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz GenuineIntel GNU/Linux
z3 ~ #



What should I do to solve this problem?

Thanks in advance
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Mon Oct 12, 2015 2:39 pm    Post subject: Reply with quote

This means three things:
- you need to "unmask" phpldapadmin-1.2.2 (add =net-nds/phpldapadmin-1.2.2-r1 ~amd64 to /etc/portage/package.keywords)
- you need to tell php to USE=apache2 (add >=dev-lang/php-5.3.13:5.3 apache2 to /etc/portage/package.use)
- but before all that: your machine is severely out of date (emerge --sync).

I think you'll have quite a bit of trouble trying to install phpldapadmin-1.2.2-r1 because it does not appear to be portage anymore, and getting it may require some effort to work around that. Updating to latest will require some effort too (emerge --sync will bring up a whole mess of other dependencies you'll have to solve)... Yes it's trouble with a moving version distribution but you have to keep up...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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