tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Clean up after building and installing ARP on RHEL 6
Date Sat, 03 Aug 2013 02:28:38 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Alec,

On 8/1/13 6:41 PM, Tomcat Random wrote:
> Spent a while getting APR installed and my logs are now showing no
> warning and indicate the native libraries are working. As per the
> docs: "The libraries will be found in $CATALINA_HOME/lib" - Yup,
> that's fine.
> 
> But it seems like I have APR/native directories in several places
> now.

Did you actually compile APR or just tcnative?

> Are the APR libraries in lib self-contained? Anyone know if other 
> directories or files related to their build are safe to delete?
> 
> Examples: /usr/bin/apr-1-config 
> /usr/local/www/apache-tomcat-7.0.42/bin/tomcat-native-1.1.27-src/jni/native
>
>  Would not be heartbroken if I had to wget the same files to
> rebuild. I'm sort of a neat freak with stray files and would rather
> rm them.

The usual build(s) will yield dynamically-linked libraries. That means
that the LD_LIBRARY_PATH for the JVM process needs to ultimately
contain libtcnative.so, libapr.so, and libssl.so. The latter two are
likely provided by your OS via package-manager, and live in /lib or
/usr/lib and you don't have to worry.

The libtcnative.so lives in $CATALINA_HOME/lib as you've said before.
You can remove the entire directory you used to build libtcnative.so
(and associated symlinks -- you probably have 3 or 4 files and/or
links... it's best to keep them all in their original configuration).

If you had to build libapr.so as well, then toss that set of files
into CATALINA_HOME/lib and delete from anywhere else you had them
sitting around for compilation purposes, etc.

That you have /usr/bin/apr-1-config suggests that you have a
package-managed install of libapr -- don't touch that. You can
probably safely delete
/usr/local/www/apache-tomcat-7.0.42/bin/tomcat-native-1.1.27-src and
its contents. You can always re-expand from the tarball and re-build,
right?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJR/GrWAAoJEBzwKT+lPKRYEIkQAL7Typbq9kGPFz6rBxmTYoB1
oIzc1j40Me1ewSXiH9DPXCNDJ9VCbEi8DvGE6m/Wrf51fD5mQ522+zJ48XfVHJAU
VBsumKxq2XS8mLdOOFMGbEIlWOSsS0VxLauqxRfaHVrMV2nAtiQxfoX73iwN4M2x
w/NKsKlbQpojKUZYHIMnr6S+D2p7fPwQ+pa64LxrSTLKkk3LBG+7OVuHNm4CVM6J
8lXuXo0WPgTFGwqFLjNLJsD27Q49cB+iwA7m376rJ0Z4sXzIqruQMRXb/4J6knUi
MvvmnXxduCCF7QUZNygnnbu5cJhCkwPnlwHxIm5XXNLIz2WVCilCWu0rKHQXjnfq
bjFNQ26Gyph3HfBxJt3bxjDtN0DLLKxOizjzN2lnGkDEdZFB1NTOyO2UPQy3CLbX
kPdUQFv0Kai1Qi0sH08Ews+7JedS+U64mohGbMZnYx0fBL7zSljsKtr8hCU0191g
3csQOlfRbpbTNFG9WatDGqsaJANovFb+Xze6ghZf2mcHz9Ff64ZlSxINYcardTcT
Xe9vQODH8mwtDm0YIELpu/MvnL+Or9HePdTsn88s0VqIW3H1i8cIDziGQXMXlsC5
JImb3V17exHhhzpTYCQPxA9SbX44Me2phG5XF7T/4DdfbzlAKPKeci92K79QR/n8
FY3x1ewzrSXas0/0rJQe
=v/WW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message