Debian Lenny 和 Sphinx 的问题

Debian Lenny 和 Sphinx 的问题

我对 Linux 系统只有非常基本的了解,但我有一台不久前设置的服务器,用于托管一些 Web 应用程序。最近我决定测试并实施 Sphinx,但不幸的是我无法让安装正常工作。

我正在运行 Debian Lenny 发行版,当我尝试安装 sphinx 时,它显示 -

检查 MySQL 包含文件...配置:错误:缺少包含文件。

******************************************************************************
ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting
this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
   your PATH environment variable.

To disable MySQL support, use --without-mysql option.
******************************************************************************

我确实安装了 mysql 5.1,但我找不到包含文件,还有一件事......我在网上读到我可能需要,libmysqlclient15-dev但是当我尝试使用 apt-get 安装它时,我收到以下错误。

The following packages were automatically installed and are no longer required:
  libxcb-aux0 libts-0.0-0 libxcb-atom1 ttf-dejavu-extra hunspell-en-us g++-4.3
  libmysql++3 libnspr4-0d libdirectfb-1.0-0 libxcb-event1 libasound2
  libstdc++6-4.3-dev libhunspell-1.2-0 ttf-dejavu libmozjs2d
  conkeror-spawn-process-helper libnss3-1d
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libmysqlclient15-dev
0 upgraded, 1 newly installed, 0 to remove and 276 not upgraded.
Need to get 7590 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libmysqlclient15-dev
Install these packages without verification [y/N]? Y
Err http://ftp.us.debian.org/debian/ lenny/main libmysqlclient15-dev amd64 5.0.51a-24+lenny5
  404  Not Found [IP: 35.9.37.225 80]
Err http://security.debian.org/ lenny/updates/main libmysqlclient15-dev amd64 5.0.51a-24+lenny5
  404  Not Found [IP: 149.20.20.6 80]
Failed to fetch http://security.debian.org/pool/updates/main/m/mysql-dfsg-5.0/libmysqlclient15-dev_5.0.51a-24+lenny5_amd64.deb  404  Not Found [IP: 149.20.20.6 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

您能否帮助我建议如何安装所需的软件包并运行 Sphinx。

答案1

是的,您遇到的问题称为弃用。Lenny 不再受 Debian 支持(我想已经有一年了),因此它无法找到存储库中的文件,因为它们不再存在。您唯一的机会是将您的机器升级到下一个稳定版本,即“Squeeze”。

答案2

Lucas 是对的;如果出于某种原因(并且让它成为一个好的原因,因为你不应该在任何可访问互联网的服务器上执行此操作),你必须坚持 lenny - 编辑你的 /etc/apt/sources.list 并更改http://some.mirror/http://archive.debian.org/运行 apt-get update并安装您需要的内容。

相关内容