我的设置原则1和B4但似乎现在当我尝试学说2失败需要帮助建立学说2
我已经安装在D:\ResourceLibrary\Frameworks\Doctrine
D:\ResourceLibrary\Frameworks\Doctrine\bin
D:\ResourceLibrary\Frameworks\Doctrine\Doctrine
D:\ResourceLibrary\Frameworks\Doctrine\Doctrine\Common
D:\ResourceLibrary\Frameworks\Doctrine\Doctrine\DBAL
D:\ResourceLibrary\Frameworks\Doctrine\Doctrine\ORM
主义我把D:\ResourceLibrary\Frameworks\Doctrine\bin
在PATH
的Windows环境变量 并添加D:\ResourceLibrary\Frameworks\Doctrine
在php.ini中include_path
我发现,当我尝试做
D:\>php doctrine.php
Could not open input file: doctrine.php
失败...我认为,因为我在PATH
Windows环境变量D:\ResourceLibrary\Frameworks\Doctrine\bin
,它可以找到doctrine.php
?
D:\ResourceLibrary\Frameworks\Doctrine\bin>php doctrine.php
Warning: require(D:\ResourceLibrary\Frameworks\Doctrine\bin/../lib/vendor\Symfony\Components\Console\Helper\HelperSet.ph
p): failed to open stream: No such file or directory in D:\ResourceLibrary\Frameworks\Doctrine\Doctrine\Common\ClassLoad
er.php on line 143
Fatal error: require(): Failed opening required 'D:\ResourceLibrary\Frameworks\Doctrine\bin/../lib/vendor\Symfony\Compon
ents\Console\Helper\HelperSet.php' (include_path='D:\ResourceLibrary\Frameworks\ZendFramework\library;D:\ResourceLibrary
\Frameworks\Doctrine;.;c:\php\includes') in D:\ResourceLibrary\Frameworks\Doctrine\Doctrine\Common\ClassLoader.php on li
ne 143
然后第二个尝试,通过与错误...
'PATH'只是用来查找命令(在你的情况下是'php'),而不是解析传递给命令的文件名。 – BenV 2010-07-15 13:56:07