OS X 10.7.5
我需要 libjpeg v8 的通用变体(jpeg @8d_0+universal),但 MacPorts 似乎坚持认为,如果我要拥有通用变体,它必须是最新版本(jpeg @9_1+universal)
我查看了 MacPorts 文档和其他资源,找到了有关如何安装旧版本以及如何安装通用版本的说明,但没有解释为什么 MacPorts 会忽略我在查找时请求的版本号一个通用的构建。
这是我所做的,以及发生了什么:
$ port installed jpeg
Warning: port definitions are more than two weeks old, consider using selfupdate
The following ports are currently installed:
jpeg @8c_0
jpeg @8d_0 (active)
jpeg @9_1
$ sudo port install jpeg @8d_0 +universal
Password:
Warning: port definitions are more than two weeks old, consider using selfupdate
---> Fetching archive for jpeg
---> Attempting to fetch jpeg-9_1+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/jpeg
---> Attempting to fetch jpeg-9_1+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/jpeg
---> Attempting to fetch jpeg-9_1+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/jpeg
---> Fetching distfiles for jpeg
---> Attempting to fetch jpegsrc.v9.tar.gz from http://www.ijg.org/files/
---> Verifying checksum(s) for jpeg
---> Extracting jpeg
---> Applying patches to jpeg
---> Configuring jpeg
---> Building jpeg
---> Staging jpeg into destroot
---> Installing jpeg @9_1+universal
---> Deactivating jpeg @8d_0
---> Cleaning jpeg
---> Activating jpeg @9_1+universal
---> Cleaning jpeg
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
$ port installed jpeg
Warning: port definitions are more than two weeks old, consider using selfupdate
The following ports are currently installed:
jpeg @8c_0
jpeg @8d_0
jpeg @9_1
jpeg @9_1+universal (active)
如果不清楚,所需的最终状态是:
jpeg @8c_0
jpeg @8d_0+universal (active)
jpeg @9_1
我尝试先卸载所有已安装的 jpeg 版本,然后重新尝试安装 jpeg @8d_0+universal,但这没有效果 - MacPorts 刚刚获取并安装了 jpeg @9_1+universal。我试过了
sudo port install jpeg @8d_0 +universal
和
sudo port install jpeg @8d_0+universal
但得到了相同的行为。
关于如何实现这一目标的任何建议?谢谢!