从 FreeBSD 降级提升
Downgrading boost from on FreeBSD
对于我正在使用的一些旧项目,我需要有 FreeBSD 并且该项目需要 boost 库。但是,它使用 boost-1_52_0 而端口使用 boost-1_55_0。
根据 this,它应该非常简单直接,但是 portdowngrade
甚至不在 sysutils
之下。它已经过时了,不再是直截了当的了。 portdowngrade
中没有提示了。另外,当我尝试 man portdowngrade
时,它说 no manual for portdowngrade
而没有 help
。
我继续搜索找到this,其中旧版本应该在/var/cache/pkg
下,但又没有运气。
我找到了 boost-lib-1_52_0
(不是源,只是 pkg 分发等,就像在 ports 中一样,下载源和安装)并且它进行完整性检查并说 port 已过时。
最后,我找不到安装不同版本的方法pkg install
。
我必须使用 FreeBSD 并且我想使用 boost-lib-1_52_0 因为我必须用 1_55_0 解决很多其他问题。
感谢任何帮助,
您可以使用 this repo branch(根据您的 FreeBSD 版本和 arch 进行相应调整)使用 pkg
安装 boost 1.52。要将 pkg
指向此存储库,请创建包含以下内容的 /usr/local/etc/pkg/repos/old.conf
文件:
old: {
url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/release_0",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
现在 运行 pkg search boost
以确保 boost-libs-1.52
可用。
另一种方法是在一些具有 1.52 版本的 boost-libs 端口的旧版本上使用 svn
检查端口树,然后构建它。
对于我正在使用的一些旧项目,我需要有 FreeBSD 并且该项目需要 boost 库。但是,它使用 boost-1_52_0 而端口使用 boost-1_55_0。
根据 this,它应该非常简单直接,但是 portdowngrade
甚至不在 sysutils
之下。它已经过时了,不再是直截了当的了。 portdowngrade
中没有提示了。另外,当我尝试 man portdowngrade
时,它说 no manual for portdowngrade
而没有 help
。
我继续搜索找到this,其中旧版本应该在/var/cache/pkg
下,但又没有运气。
我找到了 boost-lib-1_52_0
(不是源,只是 pkg 分发等,就像在 ports 中一样,下载源和安装)并且它进行完整性检查并说 port 已过时。
最后,我找不到安装不同版本的方法pkg install
。
我必须使用 FreeBSD 并且我想使用 boost-lib-1_52_0 因为我必须用 1_55_0 解决很多其他问题。
感谢任何帮助,
您可以使用 this repo branch(根据您的 FreeBSD 版本和 arch 进行相应调整)使用 pkg
安装 boost 1.52。要将 pkg
指向此存储库,请创建包含以下内容的 /usr/local/etc/pkg/repos/old.conf
文件:
old: {
url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/release_0",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
现在 运行 pkg search boost
以确保 boost-libs-1.52
可用。
另一种方法是在一些具有 1.52 版本的 boost-libs 端口的旧版本上使用 svn
检查端口树,然后构建它。