# 4.8.如何处理损坏的 port

当某个 Port 无法构建或安装时，可以尝试以下方法：

1. 在 [问题报告数据库](https://www.freebsd.org/support/) 中搜索该 Port 是否有待解决的修复。如果有，实施提议的修复可能会解决该问题。
2. 向 Port 的维护者寻求帮助。在 Port 目录中输入 `make maintainer`，或阅读 Port 的 `Makefile` 以查找维护者的电子邮件地址。记得在发给维护者的电子邮件中包含导致错误的输出信息。

   > **注意**
   >
   > 有些 Port 不是由个人维护，而是由一个由 [邮件列表](https://docs.freebsd.org/en/articles/mailing-list-faq/) 代表的群体维护。许多（但不是所有）此类地址看起来像 <freebsd-listname@FreeBSD.org>。发送邮件时请注意这一点。
   >
   > 特别是，维护 <ports@FreeBSD.org> 的 Port 并非由特定个人维护。因为所有的修复和支持来自订阅该邮件列表的一般社区。总是需要更多的志愿者！

   如果没有收到邮件回复，请按照 [编写 FreeBSD 问题报告](https://docs.freebsd.org/en/articles/problem-reports/) 中的说明使用 Bugzilla 提交 bug 报告。
3. 修复它！[Porter’s Handbook](https://docs.freebsd.org/en/books/porters-handbook/) 包含有关 Port 基础设施的详细信息，你可以用它来修复偶尔出现的问题 Port ，甚至提交你自己的修复！
4. 使用 [pkg 进行二进制包管理](https://docs.freebsd.org/en/books/handbook/ports/#pkgng-intro) 中的说明，安装包而不是 Port。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.bsdcn.org/hanbook/di-4-zhang-an-zhuang-ying-yong-cheng-xu-ruan-jian-bao-he-ports/4.8.-ru-he-chu-li-sun-huai-de-port.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
