> On 29 Mar 2025, at 12:28, Ryan Carsten Schmidt <[email protected]> > wrote: > > On Mar 28, 2025, at 20:07, Horst B Simon wrote: >> >> I checked the MacPorts documentation, but did not understand on downgrading >> a port. >> I am trying to install pear using the phar download, but my version of php >> is failing the install. >> By searching on internet I found that it is a compatibility with libxml2, >> the current installed version >> is 2.13.2 and the information is that libxml2 2.13 is not compatible and >> libxml2 2.12 should be working. >> Is it possible that I can download and build libxml2 2.12 from MacPorts and >> if so how to do it. >> The older version of php is needed for Horde Webmail 5.22, that’s why I >> cannot use php8.2 or higher. > > Older versions of php are available in MacPorts however they don't build on > newer versions of macOS at present. There are tickets. I will work on them > eventually. > > I don't think I'm aware of an incompatibility between older php and newer > libxml2 however it wouldn't surprise me. I will presumably discover these > problems when I work on the tickets and will resolve them then. > > To downgrade libxml2, follow: > > https://trac.macports.org/wiki/howto/InstallingOlderPort > > Downgrading a central port like libxml2 will likely cause you all kinds of > problems so I don't recommend it. Maybe revupgrade will notice and rebuild > the affected ports.
The error I am getting when running: /opt/local/bin/php74 -d detect_unicode=0 go-pear.phar is:nstalling phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.5.tar... parsePackageName(): array $param must contain a valid package name in "phar:///private/tmp/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.16.tar" Invalid tag order in <dependencies>, found <_content> expected one of "group" Parsing of package.xml from file "/private/tmp/pear/install/pearXuHHr9/package.xml” failed If I read correct is was fixed in PHP8.2 onwards in Fix GH-14834 <https://github.com/php/php-src/issues/14834>: Error installing PHP when --with-pear is used. Maybe if I patch php74 the same way it might work. Regards, Horst Simon
