如何安装这个 mcrypt 包?

如何安装这个 mcrypt 包?

我使用的是 MAC os x Mavericks,因此下载后mcrypt-2.6.8,我决定进行配置(根据十几个博客的建议),如下所示:

MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --disable-dependency-tracking

我这样做只是./configure构建得很好,没有错误,但当我尝试使用 mcrypt 时,所有方法都无法访问。所以我猜想是因为我没有执行那么大、那么长、那么复杂的 ./configure,所以它无法正常工作。

然而!

如果我确实使用了那个长字符串 ./configure,它会在 ./configure 末尾返回以下内容:

*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: /usr/local/bin/libmcrypt-config
configure: error: *** libmcrypt was not found

嗯。。。这很奇怪。为什么找不到我的 libmcrypt?我刚刚安装了它,并确保打开了一个新的终端窗口。我可能遗漏了什么?

相关内容