如何构建mod_jk的在Mac OS X山狮? [英] How do I build mod_jk on Mac OS X Mountain Lion?

查看:267
本文介绍了如何构建mod_jk的在Mac OS X山狮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也跟着在本地目录BUILDING.txt指令和执行

I followed the instructions in BUILDING.txt in the native directory and executed

./configure --with-apxs=/usr/sbin/apxs

下面是一些输出

building connector for "apache-2.0"
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

当然,我搜索计算器的解决方案,因为GCC在的/ usr / bin中不是。所以,我突然打开X code和安装命令行工具。 GCC现在是在/ usr / bin中...但我不断收到同样的错误。

Naturally, I searched StackOverflow for solutions since gcc was not in /usr/bin. So I popped open XCode and installed Command Line Tools. GCC was now in /usr/bin ... but I keep getting the same error.

任何想法?

推荐答案

挖了一个小时后,我终于跑进<一个href=\"http://stackoverflow.com/questions/10357804/configure-error-c-compiler-cannot-create-executables/10358412#comment18636594_10358412\">this帖子并补充我的回应是把我的问题的关心。

After an hour of digging, I finally ran into this post and added my responses that took care of my problem.

所以,首先你需要从X code安装命令行工具,那么你必须通过执行来创建此符号链接

So first you need to install Command Line Tools from XCode THEN you have to create this symlink by executing

sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain

这是由苹果在Mac OS X 10.8提供的APXS一个问题。配置脚本试图通过执行 / usr / sbin目录/ apxs的-q CC 找到C编译器。路径输出不正确或苹果忘记了创建符号链接为您在安装10.8。

This is a problem in the APXS supplied by apple in Mac OS X 10.8. The configure script tries to find the C compiler by executing /usr/sbin/apxs -q CC. The path output is either incorrect OR Apple forgot to create the symlink for you upon install 10.8.

一旦创建符号链接,一切都会好的,你就可以编译mod_jk的

Once you create the symlink, everything will be ok and you'll be able to compile mod_jk

这篇关于如何构建mod_jk的在Mac OS X山狮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆