Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP_PEAR_INSTALL_DIR is not set correctly - wamp 64bit with php5.3.13

Tags:

php

wamp

pear

I am using wamp 64bit with php5.5.12.

I followed all 10 steps from:

http://www.tech-recipes.com/rx/29976/install-pear-on-windows-7-64x-using-wamp/

There's actually no problem with the installation nor the path but when I tried to check if pear was working by typing pear, instead of displaying list of commands it displayed this:

PHP_PEAR_INSTALL_DIR is not set correctly. Please fix it using your environment variable or modify the defaul value in pear.bat The current value is: C:\wamp\bin\php\php5.3.13\pear

I have no idea where the php5.3.13 come from since I am using php5.5.12.

I even checked the code of the pear.bat and the PHP_PEAR_INSTALL_DIR is actually correct.

What seems to be the problem?

like image 434
Xelakz Avatar asked Oct 20 '22 03:10

Xelakz


1 Answers

You have to change your environment variables.

Go to Start > Control Panel > System > Environment and modify the PHP_PEAR_INSTALL_DIR variable.

like image 77
cweiske Avatar answered Oct 22 '22 17:10

cweiske