查看: 1006|回复: 4
|
how to install PEAR? [issue resolved, thanks]
[复制链接]
|
|
发表于 14-1-2007 01:29 PM
|
显示全部楼层
include_path=".;C:\PHP\pear;c:\php\includes" |
|
|
|
|
|
|
|

楼主 |
发表于 14-1-2007 02:43 PM
|
显示全部楼层
It's still the same.
I heard that WAMP 5 is auto installed with PEAR,
but how do we ensure PEAR is installed? I have already uncomment the include_path in php.ini.
Also add up here, anybody knows how to install PEAR package at Windows Environment??
Thanks for the reply. |
|
|
|
|
|
|
|
发表于 14-1-2007 03:10 PM
|
显示全部楼层
只需要执行go-pear.bat,然后php.ini里面的include_path在弄一弄就可以了。
pear的cmd 则是在c:\PHP\PEAR\pearcmd.php
用 c:php\pear\> ..\php.exe pearcmd.php来执行就可以了。 |
|
|
|
|
|
|
|

楼主 |
发表于 14-1-2007 04:21 PM
|
显示全部楼层
Hi all,
Thanks alot for thelp of Ku Gua Tang {苦瓜汤} !!!! Thank you, however my go-pear.bat failed on both [system/local] instllation..so I found this way.
---------------------------------------------------------------------------------------------
Ok, after minutes of struggle I found a way and would like to share with cari forum user.
MY OS ENVIRONMENT general info
Windows XP SP2
installed PHP package: wamp 5
running PHP 5.2.0
apache 2.0.bra bra
MYSQL 5, and
SQLlite.
{Who is interested to learn PHP 5 or use PHP with mysql can stop thinking how to installed the package by visiting this site, that consists a bundled package called WAMP server/ onlinux is LAMP server, www.wampserver.com/en/download.php}
Instruction to install PEAR on my laptop:
1.Enable all permission for everyone in PHP directory {php_dir}
2.Right click properties look for everyone / add type everyone press apply + ok. grant full control to the{php_dir}
3. PHP version 5 or up wards is using php.exe as cli which is a front end includes for PEAR.
4.So open up your command prompt, and type php -r readfile("http://pear.php.net/go-pear" > go-pear. [ask php-cli to write all content in the appointed address to go-pear file.
5.Wait for a moment, with cup of coffee, then after you see c:\php> or bra, type a new command called php go-pear
6. Then...follow the instruction / use the default installation folder.
7. In the middle way, if you skipped step 1 and 2, you will receive permission denied for removing directory command in PHP since the go-pear is platform independent and runs upon php command.
8. a screen..ok ..ok ...ok will load up telling user the package it installed. Now, it will ask you to alter php.ini since the ini file is commented..well Press Y to continue and the whole process is completed.
Aligato, 苦瓜汤!!!
*Oya, if you dunno whether PEAR installing on Windows success or not, type PEAR n enter on command prompt, you will see a list of pear enabled parameter indicating u're success in installing.
hope it's useful to new PEAR user.
screen shot:
Cheers,
Calverstine.
[Kal1983] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|