Hello all... I'm hoping that someone here will be able to help. I'd love to start using Drupal but I'm not able to install it. I have apache2 installed on my gentoo 2005.1 box... i have php but i recently tried to update and ran in to some problems.

When I try to emerge drupal with ACCEPT_KEYWORDS="~x86" emerge -v drupal

I get this..........

Calculating dependencies... done!

>>> Emerging (1 of 1) www-apps/drupal-6.2 to /
 * drupal-6.2.tar.gz RMD160 ;-) ...                                                [ ok ]
 * drupal-6.2.tar.gz SHA1 ;-) ...                                                  [ ok ]
 * drupal-6.2.tar.gz SHA256 ;-) ...                                                [ ok ]
 * drupal-6.2.tar.gz size ;-) ...                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                               [ ok ]
 * checking auxfile checksums ;-) ...                                              [ ok ]
 * checking miscfile checksums ;-) ...                                             [ ok ]
 * checking drupal-6.2.tar.gz ;-) ...                                              [ ok ]
 * 
 * Using dev-lang/php-5.1.6-r6
 * 
 * 
 * Using dev-lang/php-5.1.6-r6
 * 
 * Checking for required PHP feature(s) ...

!!! ERROR: www-apps/drupal-6.2 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  drupal-6.2.ebuild, line 26:   Called require_php_with_use 'xml'
  depend.php.eclass, line 264:   Called built_with_use '=dev-lang/php-5.1.6-r6' 'xml'
  eutils.eclass, line 1729:   Called die

!!! dev-lang/php-5.1.6-r6 does not actually support the xml USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

Any thoughts?

Thanks to anyone who is able to comment.

Comments

gentool’s picture

If it helps at all... I was getting a webapp-config error before this error so I emerged webapp-config... now I get this error. Webapp-config didn't seem to be working properly before and now it does seem to be working properly.

I got this error BEFORE updating PHP. I emerged php last night and I got an error in the middle of it. I'm not positive what the error was but the emerge didn't complete. Either way, this drupal install error was there before the php update failure.

Thanks all.

ajg112’s picture

This bit is interesting
!!! dev-lang/php-5.1.6-r6 does not actually support the xml USE flag!

When was the last time you did an emerge --sync?
The latest PHP version in portage seems to be dev-lang/php-5.2.6_rc4, which does have an xml USE flag.

All that said. Do you really want to emerge drupal, rather than just downloading and uncompressing the tar? If I were you, I'd download Apache, PHP, PostgreSQL and drupal and compile up from scratch. It's very easy, honest.

Andy

gentool’s picture

I guess I could always go that route... uncompress the tar. I actually did an emerge --sync the other day. I should update my portage though.

I guess I'm just a little timid thinking that if the emerge isn't working correctly that the drupal install won't work correctly by doing a make install.

I could try to do a portage update and see what that fixes... if anything.

ajg112’s picture

It's well worth trying to do a setup from scratch. It's a good way to learn what's going on.
This recipe below might help. Please note this uses postgreSQL rather than mySQL.

Compile and install

httpd:
Download httpd source http://httpd.apache.org/download.cgi
./configure --prefix=/opt/httpd-2.2.8 --enable-so --enable-rewrite=shared
make
make install (as root)

postgresql:
Download source http://www.postgresql.org/ftp/source/v8.3.1/
./configure --prefix=/opt/postgresql-8.3.1
make
make install (as root)

PHP:
Download source http://www.php.net/downloads.php
./configure --prefix=/opt/php-5.2.5 --with-apxs2=/opt/httpd-2.2.8/bin/apxs \
--with-pgsql=/opt/postgresql-8.3.1 --enable-mbstring --with-gd
make
make install (as root)

Setup Apache

Web Users/Groups

groupadd webgroup
useradd -m -g webgroup webuser (-m: create home, -g: set group)

Web files

mkdir /web
chown root:webgroup /web
chmod 750 /web

mkdir /web/conf /web/logs /web/htdocs
touch /web/logs/error_log /web/logs/access_log
cp /opt/httpd-2.2.8/conf/magic /opt/httpd-2.2.8/conf/mime.types /web/conf

Create httpd.conf, Apache config

Example /web/conf/httpd.conf

User webuser
Group webgroup

ServerName your_machine_name
ServerRoot "/web"

Listen your_ip_address:80

DocumentRoot "/web/htdocs"

LoadModule rewrite_module /opt/httpd-2.2.8/modules/mod_rewrite.so

LoadModule php5_module /opt/httpd-2.2.8/modules/libphp5.so
AddType application/x-httpd-php .php

Apache start/stop

Start (as root):
/opt/httpd-2.2.8/bin/apachectl -d /files/web/ -k start

Stop (as root:
/opt/httpd-2.2.8/bin/apachectl -d /files/web/ -k stop

Create the database

Database files
mkdir /web/data
chown webuser:root /web/data

Create Databse (As webuser)
/opt/postgresql-8.3.1/bin/initdb -D /web/data --locale=en_GB.utf8

Start (As webuser)
/opt/postgresql-8.3.1/bin/postmaster -D /web/data

Create Drupal User & Database
/opt/postgresql-8.3.1/bin/createuser --pwprompt --encrypted --no-adduser --no-createdb drupal
Enter password for new role:
Enter it again:
Shall the new role be allowed to create more new roles? (y/n) n
/opt/postgresql-8.3.1/bin/createdb --encoding=UNICODE --owner=drupal drupalDB

Stop (as webuser)
/opt/postgresql-8.3.1/bin/pg_ctl stop -D /files/data