2

I am working on a gentoo server. Currently in PHP, the SimpleXML extension is not enabled. How do I enable this extension ?

The PHP version is 5.2

The configure command has "--disable-simplexml".

Is it possible to use "emerge" package manager to enable this extension ?

Rajesh Ashok Kumar
  • 557
  • 1
  • 7
  • 16

2 Answers2

1

You need to recompile PHP. Also see this comment on php.net

Btw. PHP 5.2 is wayy out of date, you should consider updating PHP.

dan-lee
  • 14,365
  • 5
  • 52
  • 77
0

You should reemerge php with the 'simplexml' USE flag set. It is on-by-default, so you probably will not have to do anything more than

emerge php -vua

In the case that the 'simplexml' USE flag is not set, add it to your USE= set in /etc/make.conf and then reemerge php using the above command.

mattst88
  • 1,462
  • 13
  • 21