Drupal 7

Required USE Flags

For dev-lang/php: filter pdo simplexml curl


One of the modules I use requires the PHP Pecl module uploadprogress for optimal functionality. Unfortunately, the uploadprogress module is not present in the default Portage repository. Also, installation is not as straight-forward as might be hoped. A simple download / configure / make will probably yield the following error message:

libtool: Version mismatch error.  This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make: *** [uploadprogress.lo] Error 63


There is an overlay that provides the uploadprogress module, but you CAN also install it manually by following this procedure:

> tar xzvf uploadprogress-1.0.1.tgz 
> cd uploadprogress-1.0.1
> phpize 
> aclocal
> libtoolize --force
> autoheader
> autoconf
> ./configure
> make && make install



Drupal 7 reports a PDO requirement problem: We were unable to find the PDO library required by the database API.


Your PHP installation is missing the PDO extension. Make sure you compile it with USE=“pdo” as will as USE=“<db_use>” where <db_use> is the USE flag for your database of choice. For example:

> USE="pdo mysql" emerge -av php

On installation, Drupal 7 burps out Fatal error: Call to undefined function filter_var() in …/html/includes/common.inc on line 1061


Your PHP installation is missing the PECL Filter extension. Make sure you compile it with USE=“filter”:

> USE="filter" emerge -av php

During module update check, Drupal returns the following error: Fatal error: Class 'SimpleXMLElement' not found in …/html/modules/update/update.fetch.inc on line 352


Your PHP installation is missing the SimpleXML extension. Make sure you compile it with USE=“simplexml”:

> USE="simplexml" emerge -av php
You could leave a comment if you were logged in.
setup/gentoo/server/drupal.txt · Last modified: 2010/03/21 15:30 by fronck
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki