Softaculous


Topic : install pear


Posted By: dbmaven on July 3, 2023, 1:13 pm
I am unable to install pear for ampps. I am running ampps 6.0 with php 7.4. Every time I try to install pear I get this error message:
Parse error: syntax error, unexpected '&' in E:\Ampps\php74\go-pear.phar on line 67317

Is this a pear bug or am I not installing this properly on ampps?

Posted By: adeshmrane on July 5, 2023, 6:51 am | Post: 1
Can you share the steps you followed to install Pear?
you can download E:\Ampps\php74\go-pear.phar file again by using the below commandcurl -O https://pear.php.net/go-pear.phar

if you still face issue, please open a ticket to AMPPS support https://softaculous.deskuss.com/open.php?topicId=3

Posted By: dbmaven on July 6, 2023, 5:43 pm | Post: 2
Thank you for your help.

After many attempts to get go-pear.phar to work I found out that the file was corrupt.
I solved the problem by this command to create a brand new file to install.
php -r "copy('http://pear.php.net/go-pear.phar', 'go-pear.phar');"

This worked and installed directly into the ampps directory.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.