我有一个 Ubuntu Hardy VPS,我正在尝试安装带有 SQLite 的 PHP5.3。我添加了 dotdeb PHP5.3 存储库并成功安装了 PHP5.3。但我还需要安装 SQLite。当我尝试安装 php5-sqlite3 ( sudo aptitude install php5-sqlite3
) 时,这是输出:
The following packages are BROKEN:
php5-sqlite3
The following NEW packages will be automatically installed:
php-db php-pear php-sqlite3
The following NEW packages will be installed:
php-db php-pear php-sqlite3
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 460kB of archives. After unpacking 3027kB will be used.
The following packages have unmet dependencies:
php5-sqlite3: Depends: phpapi-20060613 which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:
Remove the following packages:
libapache2-mod-php5
php5
php5-mysql
Install the following packages:
php-pear [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]
Downgrade the following packages:
php5-cli [5.3.1-0.dotdeb.1 (<NULL>, now) -> 5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]
php5-common [5.3.1-0.dotdeb.1 (<NULL>, now) -> 5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]
php5-suhosin [5.3.1-0.dotdeb.1 (<NULL>, now) -> 0.9.22-1 (hardy)]
Score is 197
Accept this solution? [Y/n/q/?]
显然,降级 PHP 不是一个选择。
请帮帮我!如果将服务器升级到较新版本的 Ubuntu 可以让事情变得更容易,那就没问题。
答案1
执行 apt-cache search sqlite ...查看 dot deb 是否有 sqlite 包..如果没有则..
我去年写了这篇博客文章,其中大部分内容也适用于 8.04。
http://thirdpartycode.com/2009/08/building-php-5-3-packages-on-ubuntu-9-04-jaunty-for-apache-2/