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.

Reply via email to