简体   繁体   English

无法在Mac OS X 10.9上构建Yaws

[英]Fails to build Yaws on Mac OS X 10.9

I downloaded Yaws 1.98, but when executing ./configure && make if fails with the message provided below: 我下载了Yaws 1.98,但是在执行./configure && make时失败,并显示以下消息:

gcc -c -g -O2 -I/usr/include/security -m64 -I/usr/include/pam -DHAVE_SENDFILE -I"/usr/local/lib/erlang/usr/include" -I/usr/include/pam/  epam.c
epam.c:2:10: fatal error: 'pam_appl.h' file not found
#include <pam_appl.h>
         ^
1 error generated.
make[1]: *** [epam.o] Error 1
make: *** [all] Error 1

Any suggestions on how to solve this? 关于如何解决这个问题有什么建议吗? is there any other way I can run the latest version of Yaws on Mac OS X 10.9? 还有什么其他方法可以在Mac OS X 10.9上运行最新版本的Yaws?

The pam_appl.h include file is normally found in /usr/include/security on OS X 10.6 and higher, and that's installed as part of the Command Line Tools installation. pam_appl.h包含文件通常在OS X 10.6和更高版本的/usr/include/security找到,并且作为命令行工具安装的一部分进行安装。 Normally you would run sudo xcode-select --install from your Terminal command line to install the command line tools, but that sometimes fails — see Failed to install command line tools on OSX Mavericks for details and workarounds. 通常,您可以从终端命令行运行sudo xcode-select --install来安装命令行工具,但这有时会失败—有关详细信息和解决方法,请参阅在OSX Mavericks上无法安装命令行工具 Of course, you can always download the command line tools install package from Apple's Developer site (registration required). 当然,您始终可以从Apple的Developer网站下载命令行工具安装包(需要注册)。

Since your error message shows you already have gcc, be aware that it's also installed as part of the command line tools installation. 由于错误消息表明您已经拥有gcc,因此请注意,它也已作为命令行工具安装的一部分进行了安装。

This shows that pam development library is not available in you mac OS for YAWS to get compiled successfully. 这表明在Mac OS中无法使用pam开发库来使YAWS成功编译。

I do not have experience in installing pam-devel in mac but on unix based machine yum install pam-devel would help me installing. 我没有在Mac中安装pam-devel的经验,但是在基于UNIX的机器上,yum install pam-devel可以帮助我进行安装。 Please check if something helps here http://www.webmin.com/udownload.html 请在这里检查是否有帮助http://www.webmin.com/udownload.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM