内容简介:代码日志版权声明:翻译自:http://stackoverflow.com/questions/14257209/php-codesniffer-include-once-error
我试图在OS X Mountain Lion上安装PHP CodeSniffer,而我似乎正在出现一个奇怪的问题
当运行’phpcs’我得到以下错误:
PHP Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in /usr/lib/php/pear/bin/phpcs on line 31 PHP Warning: include_once(): Failed opening 'PHP/CodeSniffer/CLI.php' for inclusion (include_path='.;/usr/lib/php/pear/share/pear/') in /usr/lib/php/pear/bin/phpcs on line 31 PHP Fatal error: Class 'PHP_CodeSniffer_CLI' not found in /usr/lib/php/pear/bin/phpcs on line 34
文件/usr/lib/php/pear/share/pear/PHP/CodeSniffer/CLI.php存在,这让我很困惑
在我的配置中,PHP /路径不是phpcs所期望的.
我通过创建符号链接到缺失的路径来解决它.
去梨目录并运行:
ln -s share/pear/PHP/ PHP
代码日志版权声明:
翻译自:http://stackoverflow.com/questions/14257209/php-codesniffer-include-once-error
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Golang学习笔记之错误处理error、panic (抛出错误),recover(捕获错误)
- c – 构建PBRT v2错误 – 错误1错误U1077:’if’:返回代码’0x1′
- !错误!在 Android 下这么用 ShowModal 是错误的!
- Google开源ClusterFuzz:使得查找错误并修复错误变得异常简单
- 脚本错误量极致优化-定位压缩且无 SourceMap 文件的脚本错误
- php – 解析错误:语法错误,意外’未设置'(T_UNSET)
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Build Your Own Web Site the Right Way Using HTML & CSS
Ian Lloyd / SitePoint / 2006-05-02 / USD 29.95
Build Your Own Website The Right Way Using HTML & CSS teaches web development from scratch, without assuming any previous knowledge of HTML, CSS or web development techniques. This book introduces you......一起来看看 《Build Your Own Web Site the Right Way Using HTML & CSS》 这本书的介绍吧!