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 instructions in the BUILDING.txt file bundled with the distribution.
...
- Xcode command-line tools, available from 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)unmigrated-wiki-markup
Apache
Portal
Runtime
(APR),
available
either
directly
from
Apache
(
[ |https://apr.apache.org/download.cgi])
or
by
using
[|brew](
{{brew
install
}}apr
)
1.(Optional)
OpenSSL
1.1.1
(latest
at
the
time
of
this
writing),
available
either
directly
from
OpenSSL
(
[| ])
or
by
using
[|]({{{brew
install
openssl1
Download and unpack the libtcnative sources:
...
Next, copy the APR libraries:
No Format |
---|
$ cp -a$aR $APR_HOME/libexec/lib/* apache-tomcat-x.y.z-src/output/build/bin/ |
Finally, if you are using a custom OpenSSL build, copy those libraries as well:
No Format |
---|
$ cp -a$aR $OPENSSL_HOME/lib/* apache-tomcat-x.y.z-src/output/build/bin/ |
...