我正在尝试在osx 10.15上安装pear。我按照说明安装了here。所以我创建了一个文件check_pear.php
$(this).form.submit()
但是当我尝试检查一切正常时,我会收到错误消息
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
我已经修改了PHP Warning: require_once(System.php): failed to open stream: No such file or directory in /Users/leonardo/Sites/check_pear.php on line 2
PHP Fatal error: require_once(): Failed opening required 'System.php' (include_path='.:/usr/local/php/pear/') in /Users/leonardo/Sites/check_pear.php on line 2
中的include_path
,现在我有了:
php.ini
但是错误仍然存在。我也尝试过重新启动apache并重新启动机器,但是没有任何改变。如果可以解决,则安装pear的目录是
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
include_path=".:/usr/local/php/pear/"