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
但也有同样的行为。
有关如何实现这一目标的任何建议?谢谢!