我想在wampserver中安装pear。它不带有一个go-pear.bat。用wampserver安装PEAR
我从pear.php.net/go-pear下载.phar文件并运行php go-pear.phar。
它只是在设置所有路径的配置上循环。
什么给?
我想在wampserver中安装pear。它不带有一个go-pear.bat。用wampserver安装PEAR
我从pear.php.net/go-pear下载.phar文件并运行php go-pear.phar。
它只是在设置所有路径的配置上循环。
什么给?
假设您正在运行PHP5.3.24并且wamp安装在C:驱动器上,如果不相应地更改文件夹名称。
从http://pear.php.net/go-pear.phar找去,pear.phar并将其复制到WAMP \ BIN \ PHP \文件夹php5.3.24
做了这一切,从Windows命令窗口
cd C:\wamp\bin\php\php5.3.24
md pear
PATH=%PATH%;C:\wamp\bin\php\php5.3.24
php go-pear.phar
,当你问这个问题
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : D:\wamp\bin\php\php5.3.24
2. Temporary directory for processing : D:\wamp\bin\php\php5.3.24\tmp
3. Temporary directory for downloads : D:\wamp\bin\php\php5.3.24\tmp
4. Binaries directory : D:\wamp\bin\php\php5.3.24
5. PHP code directory ($php_dir) : D:\wamp\bin\php\php5.3.24\pear
6. Documentation directory : D:\wamp\bin\php\php5.3.24\docs
7. Data directory : D:\wamp\bin\php\php5.3.24\data
8. User-modifiable configuration files directory : D:\wamp\bin\php\php5.3.24\cfg
9. Public Web Files directory : D:\wamp\bin\php\php5.3.24\www
10. Tests directory : D:\wamp\bin\php\php5.3.24\tests
11. Name of configuration file : D:\wamp\bin\php\php5.3.24\pear.ini
12. Path to CLI php.exe : \wamp\bin\php\php5.3.24
1-12, 'all' or Enter to continue: 12
为了得到它与安装,你必须只按ENTER键进行
它的那样简单
我面临着同样的问题,如果您滚动了一下腰,你应该会看到一个错误,也许你并没有填补php.exe folder
正确(number 12
)。只需键入12
,然后按enter
并导航到您的PHP安装文件夹(如C:/php
)。然后,打到enter
后,应该开始安装。
这听起来像它可能是问题,但我已经停止使用WAMP并单独安装每个组件。 – moesef
运行后的local
php go-pear.phar
。
然后与佩德罗洛比托说。
如果再次显示列表,只需按Enter
即可开始安装。
当我到达这一点时,我按下Enter键。它只是保持循环。我使用PHP 5.4.3。从那以后,我放弃了使用wampserver,并且只安装了所有部件,并设置了自己。我在安装wampserver时也遇到了其他问题。 – moesef
您使用的是WAMPServer 32bit还是64bit? – RiggsFolly
64位wampserver – moesef