mac osx lion xampp上的Pear位置
从我的phpinfo中,我看到pear是在/Applications/XAMPP/xamppfiles/lib/php/pear位置配置的。但当我从/Applications/xampp/xamppfiles/lib/php/pear位置在终端键入pear命令时,它返回错误:“无法打开输入文件:/usr/lib/php/pearcmd.php” 为什么它将成为/usr/lib 我不明白为什么会发生这种情况。我只是这样做了:mac osx lion xampp上的Pear位置,xampp,pear,Xampp,Pear,从我的phpinfo中,我看到pear是在/Applications/XAMPP/xamppfiles/lib/php/pear位置配置的。但当我从/Applications/xampp/xamppfiles/lib/php/pear位置在终端键入pear命令时,它返回错误:“无法打开输入文件:/usr/lib/php/pearcmd.php” 为什么它将成为/usr/lib 我不明白为什么会发生这种情况。我只是这样做了: $ cd /usr/lib/php $ sudo php install
$ cd /usr/lib/php
$ sudo php install-pear-nozlib.phar