> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/life/di-si-bu-fen-unix-zhi-wai/10.-unix-fu-wu/10.6.-yi-zhi-ji-cheng-yu-an-zhuang.md).

# 10.6 移植、集成与安装

### 10.6.1 移植

UNIX 的优势之一就是可移植，所以你不必犹豫，尽管利用这一能力。不过，移植与其他任何计算机问题并无不同——想做好，总得有些经验。它的问题与用户级编程不同，但在各次移植之间却颇为相似。

技术尚不熟练但称职的程序员，花一年能移植完整个 UNIX 系统；而有经验的移植老手通常四到五个月就能完成，报酬大约 60,000 美元。如果目标硬件与之前某次移植的硬件非常相似，耗时可能更短，反之亦然。把系统移植到“合理”的硬件上，再连同系统其余部分一并打包，这样一整套活儿可能要花一到两年。相比之下，大多数其他操作系统要花十倍的钱，开发周期也长得多。

主要的移植公司有 Interactive、Unisoft（Uniplus+）、SCO（XENIX）、Microsoft（XENIX）和 AT\&T（System V）。关于移植公司的更多信息，参见[UNIX 历史](/life/di-yi-bu-fen-guo-qu-xian-zai-yu-wei-lai/1.-unix-li-shi.md)与[UNIX 现状](/life/di-yi-bu-fen-guo-qu-xian-zai-yu-wei-lai/2.-unix-xian-zhuang.md)两章。

大多数主要的 CPU 制造商都有针对自家硬件的通用 UNIX 移植版本，你可以从它入手。此外还有许多小公司，专门承接整个 UNIX 系统的移植，或者只移植单个应用。其中包括 BOSS Systems Inc.、Genus Systems Ltd.、Glockenspiel Ltd.、HCR Corp.、Lachman Associates Inc.、Microport Systems Inc.、Palomino Computer Systems Inc.、Root Computers Ltd. 和 Technical Solutions Inc.。

### 10.6.2 集成与安装

集成，指的是拿一份移植好的系统，让它在客户想要的配置上运行起来。如果你的系统配置不是标准配置，这项服务就格外有用。

例如，你手头可能已经有一份为 PC 配置好的 XENIX，但你用的机器可能是一台 PC 兼容机，带扩展内存、五块磁盘和一块网络设备。弄清该加载哪些设备驱动程序、每块板卡上的跳线和开关怎么设、还需要哪些其他配套软件，这正是系统集成商的活儿。

此外，集成商还能把一件古怪的硬件配进系统，必要时提供新的设备驱动程序。和移植一样，编写设备驱动程序想做好也得靠经验，它跟用户级应用编程截然不同。

让 UNIX 在你的系统上跑起来的最后一步是安装。完整的安装包括确定一大堆底层却必要的信息——比如决定运行哪些后台进程、机器叫什么名字、网络如何配置，等等。

其实，UNIX 终于跑起来时，安装并没有就此结束。很少有人把 UNIX“原样”开箱即用。你多半还想调优系统、建立各种管理规程、安装第三方软件，等等。

许多公司正是为提供 UNIX 支持、集成与安装而成立的，因为最初无论 AT\&T 还是伯克利都不提供这些服务。伯克利至今仍然不提供。Mt. Xinu 支持 Berkeley UNIX：他们会向你提供一份 Berkeley UNIX，其中打上了所有已知的 bug 修复；此外，他们还会提供真正的支持，比如通知你有新 bug，或者解答疑问。至于 Cambridge Digital，这家公司会拿 Mt. Xinu 的 Berkeley UNIX，按你系统上实际拥有的设备和硬件配置好。

AT\&T 放弃对 DEC 系列计算机上 UNIX 的支持时，抛下了许多客户。Uniq Digital Technologies 就是一家为这类客户提供支持的公司。此外还有许多别的公司——大多做 BSD、System V 和 XENIX 的集成与安装，有些也承接完整的移植。这类公司可举数例：Abmind Corp.、Conner Scelza Associates、Eakins Associates, Inc.、The Instruction Set、Lachman Associates, Inc. 和 SHL Systemhouse, Inc.——当然，还有 DEC。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://book.bsdcn.org/life/di-si-bu-fen-unix-zhi-wai/10.-unix-fu-wu/10.6.-yi-zhi-ji-cheng-yu-an-zhuang.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
