Last active
December 26, 2015 08:19
-
-
Save jclausen/7121183 to your computer and use it in GitHub Desktop.
Recompiling mod_jk.so for OSX Mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Updade XCode via App Store: | |
2) Install command line tools: | |
xcode-select --install (click install on prompt) | |
3) Create Missing symlink | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain | |
(UPDATED via http://www.n42designs.com/blog/index.cfm/2013/10/23/Running-ColdFusion-10-on-OS-X-Mavericks) | |
4) http://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration/_jcr_content/main-pars/download_1/file.res/connector-source.zip | |
Replace in /native/common/jk_map.c: | |
strcpy(buf, rc); | |
with: | |
memmove(buf, rc, len + 1); | |
cd ~/Desktop/connector-source/native | |
./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs | |
make | |
sudo make install | |
For Coldfusion 10 connector only: | |
5) Copy created mod_jk.so: | |
cp /usr/libexec/apache2/mod_jk.so /Applications/Coldfusion10/config/wsconfig/1/mod_jk.so | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was my experience compiling mod_jk on Mac OS Mavericks: http://demisx.github.io/tomcat/connector/2014/02/06/install-mod_jk-mac-os-x.html. Hope it helps.