这是我在尝试运行“generate:app frontend”时得到的:
C:\>php xampp\htdocs\development\sfprojects\jobeet\lib\vendor\symfony\data\bin\s
ymfony generate:app frontend
PHP Warning: require_once(C:\config/..xampp/htdocs/development/sfprojects/jobee
t/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php): failed to open stre
am: No such file or directory in C:\config\ProjectConfiguration.class.php on lin
e 3
Warning: require_once(C:\config/..xampp/htdocs/development/sfprojects/jobeet/lib
/vendor/symfony/lib/autoload/sfCoreAutoload.class.php): failed to open stream: N
o such file or directory in C:\config\ProjectConfiguration.class.php on line 3
PHP Fatal error: require_once(): Failed opening required 'C:\config/..xampp/htd
ocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload
.class.php' (include_path='.;C:C:\xampp\php\pear') in C:\config\ProjectConfigura
tion.class.php on line 3
Fatal error: require_once(): Failed opening required 'C:\config/..xampp/htdocs/d
evelopment/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.clas
s.php' (include_path='.;C:C:\xampp\php\pear') in C:\config\ProjectConfiguration.
class.php on line 3
C:\>
我认为这与PEAR有关,但我找不到解决问题的方法,也不是100%它是PEAR,所以......很高兴能在这个问题上得到一些帮助。 我已经尝试过多次重写php.ini,如果找到pear.php有问题,但我认为,我尝试了所有场景,而不是解决方案。那么从现在开始该做什么。 谢谢 -Leron
答案 0 :(得分:2)
cd
进入xampp\htdocs\development\sfprojects\jobeet
并运行命令。
如果您将此路径设置为嵌入式安装(例如,您在项目的lib/vendor
中嵌入了symfony),那么您可能会将require路径设置为错误。您错过了斜杠:
C:\config/..xampp/htdocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php
应该是:
C:\config/../xampp/htdocs/development/sfprojects/jobeet/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php
因此,您需要在projectConfiguration.class.php
中更改require_once语句。
但这可能只是因为你从项目外部调用命令(虽然从技术上讲,如果你把所有东西都设置正确就行了)......