PartKeepr and Doctrine on Ubuntu


PartKeepr and Doctrine on Ubuntu

在谷歌上搜索了几个小时关于在Ubuntu上安装PartKeeper的信息后,我决定问这个问题。有人能为在PHP(Ubuntu)中集成Doctrine提供一些建议吗?

我已经用Pear和Composer安装了它,但无法摆脱PartKeeper的安装:"Doctrine需要安装在PHP include_path中。您可以在大多数Unix系统上安装条令,使用:

需要在PHP include_path中安装Doctrine。您可以在大多数Unix系统上安装条令,使用:

pear频道发现pear.symfony.com

pear频道发现pear.doctrine-project.org

pear install pear.doctrine-project.org/DoctrineORM

未找到条令''Common''ClassLoader

谢谢。

您是否执行了安装程序提供的pear命令?请注意,您需要以root身份执行这些命令,或者在它们前面加上sudo。如果您执行了这些命令,请检查输出中是否有任何错误。

一个常见的问题是pear安装正常,但php.ini中缺少include_path

您应该首先检查PEAR使用的目录:

pear config-show |grep "PEAR directory"

然后通过调用来检查您的PHP include_path是否包含PEAR目录

php -i |grep include_path

请注意,如果您的web服务器使用不同的php.ini文件(几乎总是这样),请将以下PHP文件放入web服务器根目录,并在浏览器中打开它,以获得web服务器php.ini配置的include_path

<?php echo ini_get("include_path");

确保include_path包含PEAR目录的路径。如果没有,请编辑php.ini并重新启动Web服务器。如果是,恐怕您需要提供更多详细信息,比如操作系统版本和安装PEAR软件包的确切步骤。