[Tomcat Wiki] Update of "Building Tomcat on MacOS" by ChristopherSchultz

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Tomcat Wiki] Update of "Building Tomcat on MacOS" by ChristopherSchultz

Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "Building Tomcat on MacOS" page has been changed by ChristopherSchultz:
https://wiki.apache.org/tomcat/Building%20Tomcat%20on%20MacOS?action=diff&rev1=1&rev2=2

- Building Tomcat from source on MacOS can require some additional work, especially if you want to build all of the optional items such as libtcnative.
+ Building Tomcat from source on MacOS can require some additional work, especially if you want to build all of the optional items such as {{{libtcnative}}}.
 
  == Building Tomcat==
+
  Building Tomcat itself is fairly straightforward. Simply download the source distribution of Tomcat and follow the indtructions in the BUILDING.txt file bundled with the distribution.
 
  Briefly, you'll need:
@@ -17, +18 @@

 
  You may have to set your {{{JAVA_HOME}}} environment variable and/or specify the full path to your {{{ant}}} binary.
 
+ == Building {{{libtcnative}}} ==
+
+ Building {{{libtcnative}}} it fairly straightforward as well, but you will need a number of prerequisites that are not terribly obvious as to how to get them.
+
+  1. Xcode command-line tools, available from [[https://developer.apple.com/download/more/|Apple's developer tools download site]]. Make sure you get the proper version for your XCode version (if you have XCode already installed) and your OS version (10.x)
+  1. Apache Portal Runtime (APR), available either directly from Apache ([[https://apr.apache.org/download.cgi|APR downloads]]) or by using [[brew|https://brew.sh/]] ({{{brew install apr}}})
+  1. (Optional) OpenSSL 1.1.1 (latest at the time of this writing), available either directly from OpenSSL ([[|OpenSSL Downloads]]) or by using [[brew|]] ({{{brew install openssl1
+
+ === Using OpenSSL ===
+ If using OpenSSL:
+
+   {{{./configure --with-ssl=[path to OpenSSL] --with-apr=[path to APR] --with-java-home=[your java home]}}}
+
+ For example:
+
+   {{{./configure --with-ssl=/usr/local/Cellar/openssl\@1.1/1.1.1 --with-apr=/usr/local/Cellar/apr/1.6.5 --with-java-home=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home}}}
+
+ === Without OpenSSL (LibreSSL) ===
+
+ If not using OpenSSL:
+
+   {{{./configure --with-ssl=yes --with-apr=[path to APR] --with-java-home=[your java home]}}}
+
+   {{{./configure --with-ssl=yes --with-apr=/usr/local/Cellar/apr/1.6.5 --with-java-home=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home}}}
+

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]