douxunwei7083 2013-08-18 22:42
浏览 165
已采纳

没有加载INI文件(php.ini)

When I was trying to install propel and tried to run it with this command:

library/propel/generator/bin/propel-gen

I always get this error:

Warning: require_once(phing/Phing.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/GentseFeesten/library/propel/generator/bin/phing.php on line 39

Fatal error: require_once(): Failed opening required 'phing/Phing.php' (include_path='.:') in /Applications/MAMP/htdocs/GentseFeesten/library/propel/generator/bin/phing.php on line 39

When I searched for a solution I found this topic on stackoverflow.

At the following step :

Check that correct php.ini is used:

Run php --ini and see what INI file is being loaded. Then make sure this INI files contains PEAR directory in it's include_path

I got this from my command line:

enter image description here

No ini files are loaded ...

I am using MAMP with php version 5.4.4 . When I check the php version with <?php phpinfo(); ?>
I see that the php version is "5.4.4".
And when I check the php version in terminal with

php -v

I get this:

enter image description here

What am I doing wrong?

UPDATE: When I run

locate php.ini

in terminal I get this result: enter image description here

I've added .:/usr/lib/php/pear to the php.ini file in php5.4.4/ but still the same result ..

  • 写回答

2条回答 默认 最新

  • dongshao1021 2013-08-19 17:41
    关注

    Changed the version to the version of my MAMP and it worked!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建