在WINDOWS下安装PEAR,WINDOWS安装PEAR_PHP教程
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了在WINDOWS下安装PEAR,WINDOWS安装PEAR_PHP教程,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含5565字,纯文字阅读大概需要8分钟。
内容图文
![在WINDOWS下安装PEAR,WINDOWS安装PEAR_PHP教程](/upload/InfoBanner/zyjiaocheng/184/4b9db40a7efe4be396d122c07156abe8.jpg)
在WINDOWS下安装PEAR,WINDOWS安装PEAR
一、从官网下载go-pear.phar 文件,地址http://pear.php.com/go-pear.phar
将下载好的文件go-pear.phar 放到PHP安装目录下,dos 命令下进入PHP安装目录 运行 php go-pear.phar
,遇到提问选项,全部回车按默认选择。如果在一分钟内未按下回车键,则会提示错误然后退出。这时只要重新执行go-pear.bat即可。
如果运行成功,会如图所示:
安装完毕后,会在PHP安装目录下,生成一个pear_env.arg的注册表文件,双击该文件,将信息添加入注册表即可。
安装Mail插件:D:\mvam\php5> pear install mail
安装MDB2插件:D:\mvam\php5> pear install MDB2
安装PHPUnit插件:
D:\mvam\php5> pear config-set auto_discover 1
D:\mvam\php5>pear install pear.phpunit.de/PHPUnit
如图:
D:\mvam\php5>phpunit --help
PHPUnit 4.0.17 by Sebastian Bergmann.
You have installed PHPUnit via PEAR. This installation method is no longer
supported and http://pear.phpunit.de/ will be shut down no later than
December, 31 2014.
Please read http://phpunit.de/manual/current/en/installation.html and
learn how to use PHPUnit from a PHAR or install it via Composer.
Usage: phpunit [options] UnitTest [UnitTest.php]
phpunit [options]
Code Coverage Options:
--coverage-clover
--coverage-crap4j
--coverage-html
--coverage-php
--coverage-text=
Default: Standard output.
--coverage-xml
Logging Options:
--log-junit
--log-tap
--log-json
--testdox-html
--testdox-text
Test Selection Options:
--filter
--testsuite
--group ... Only runs tests from the specified group(s).
--exclude-group ... Exclude tests from the specified group(s).
--list-groups List available test groups.
--test-suffix ... Only search for test in files with specified
suffix(es). Default: Test.php,.phpt
Test Execution Options:
--report-useless-tests Be strict about tests that do not test anything.
--strict-coverage Be strict about unintentionally covered code.
--disallow-test-output Be strict about output during tests.
--enforce-time-limit Enforce time limit based on test size.
--strict Run tests in strict mode (enables all of the above).
--process-isolation Run each test in a separate PHP process.
--no-globals-backup Do not backup and restore $GLOBALS for each test.
--static-backup Backup and restore static attributes for each test.
--colors Use colors in output.
--stderr Write to STDERR instead of STDOUT.
--stop-on-error Stop execution upon first error.
--stop-on-failure Stop execution upon first error or failure.
--stop-on-risky Stop execution upon first risky test.
--stop-on-skipped Stop execution upon first skipped test.
--stop-on-incomplete Stop execution upon first incomplete test.
-v|--verbose Output more verbose information.
--debug Display debugging information during test execution.
--loader
--repeat
--tap Report test execution progress in TAP format.
--testdox Report test execution progress in TestDox format.
--printer
Configuration Options:
--bootstrap
-c|--configuration
--no-configuration Ignore default configuration file (phpunit.xml).
--include-path <path(s)> Prepend PHP's include_path with given path(s).
-d key[=value] Sets a php.ini value.
Miscellaneous Options:
-h|--help Prints this usage information.
--version Prints the version and exits.
--self-update Update PHPUnit to the latest version. 配置 PHP.ini文件
告诉PHP你的PEAR安装目录
将php.ini中的include_path修改为PEAR安装目录 include_path = ".;D:/mvam/php5/pear"
如图:
二、安装包的方法:
在PHP目录下,用命令行方式执行pear install –a Auth 就会在PHP\PEAR 目录下建立AUTH目录,目录中包含文件包。-a选项表明安装Auth包所依赖的所有其他包。
呵呵 这不你已经有了 go-pear.phar 文件了,那就好办了,请如下操纵:
1、打开命令提示符(附件里面有)或者在运行中输入 cmd 。
2、找到你那个go-pear.phar所在的目录,使用 cd 命令切换过去。
3、然后在命令提示符中使用 php go-pear.phar 进行pear的安装。
4、手动配置下各个选项即可。
Good Luck~~
错误,不能打开Structures_Graph-1.0.4.tgz文件,这是翻译,软件我不认识,帮不了你。
http://www.bkjia.com/PHPjc/851759.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/851759.htmlTechArticle在WINDOWS下安装PEAR,WINDOWS安装PEAR 一、从官网下载go-pear.phar 文件,地址http://pear.php.com/go-pear.phar 将下载好的文件 go-pear.phar 放到 PHP 安装目录...
内容总结
以上是互联网集市为您收集整理的在WINDOWS下安装PEAR,WINDOWS安装PEAR_PHP教程全部内容,希望文章能够帮你解决在WINDOWS下安装PEAR,WINDOWS安装PEAR_PHP教程所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。