在 Ubuntu 8.10 上安装 Libboost 1.38

发布于 2024-07-30 12:41:32 字数 162 浏览 5 评论 0原文

有没有办法在 Ubuntu 8.10 上安装 Libboost 1.38? 我的存储库中的最高版本是 1.35。 有人建议我可以添加一些存储库来完成此任务,但我的搜索没有产生任何结果。

我必须求助于源代码吗? 如果是这样,实现这一目标的最佳方法是什么?

谢谢

Is there a way to Install Libboost 1.38 on Ubuntu 8.10? The highest version in my repositories is 1.35. It has been suggested that there may be some repositories I could add to accomplish this, but my searches haven't yielded anything.

Do I have to resort to source code? If so, what is the best way to accomplish this?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烧了回忆取暖 2024-08-06 12:41:32

您可以

  • 升级到 Jaunty (Ubuntu 9.04),它有 1.37。 您甚至可以使用我经常使用的更高级方法逐步升级到其 boost 库(google for apt-pinning)
  • :从 Debian stable 下载 Debian 软件包(当前为 1.38,新队列中为 1.39)并且“很快就可以使用”)并在本地重建它们。 您可能想用 google 搜索 Debian 软件包构建——放心,这很容易,因为工作已经完成,您只是从现有源构建本地变体。 向前兼容升级,从源代码构建。
  • 这样,您就可以留在包管理系统中,并且在其他一切失败的情况下

You can either

  • Upgrade to Jaunty (Ubuntu 9.04) which has 1.37. You can even incrementally upgrade to just its boost libraries (google for apt-pinning)
  • use a more advanced method I often use: download the Debian package sources from Debian unstable (currently 1.38 with 1.39 in the NEW queue and available "real soon now") and rebuild those locally. You may want to google Debian package building -- and rest assured it is easy as the work has been done, you are merely building local variants from existing sources. This way you stay inside the package management system and are forward-compatible with upgrades
  • if everything else fails, build from source.
雨轻弹 2024-08-06 12:41:32

在 Ubuntu 上,从源代码安装非常简单。 获取源代码、解压并运行这些命令:

./bootstrap.sh --prefix=/usr/local --libdir=/usr/local/lib
./bjam --layout=system install

或者,您可能希望获取 SVN HEAD,或者等待即将推出的 1.40。 然后,您可以删除除 install 之外的所有上述选项。 您可能需要查看 http://beta.boost.org 上的发行说明,看看即将进行的更改是否是“对于你的情况来说有风险”。

On Ubuntu, installing from source is straightforward. Get source, unpack, and run these commands:

./bootstrap.sh --prefix=/usr/local --libdir=/usr/local/lib
./bjam --layout=system install

Alternatively, you may wish to grab SVN HEAD, or wait for upcoming 1.40. Then, you can drop all of the above options except for install. You may want to review release notes at http://beta.boost.org to see if upcoming changes are "risky" for your case.

倾城花音 2024-08-06 12:41:32

libboost1.37-dev 位于 Jaunty 存储库中。

如果您必须拥有Boost 1.38,则必须自己从源代码编译它。

libboost1.37-dev is in the Jaunty repository.

If you must have Boost 1.38, you'll have to compile it from sources yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文