commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Clay <>
Subject [daemon] compile for use with redhat and debian
Date Thu, 05 Jan 2012 16:48:03 GMT


I would like to be able to use jsvc on both debian and redhat machines.  Ideally, I'd like
to be able to compile jsvc once, and use the same binary on both platforms.

The problem I am encountering is that the version of libcap varies across machines.

For example, if I compile jsvc on a RHEL 5.4 machine (which has, and then attempt
to run the same binary on a Debian 6 machine (which has, then the execution fails

jsvc: error while loading shared libraries: cannot open shared object file: No
such file or directory

So, I have two questions:

1) Is it possible to create a single jsvc binary (that uses libcap), that works if either or is available at runtime?

2) I have experimented with disabling libcap when compiling jsvc. This allows jsvc to run
on both platforms.  What are the implications of this?  Does this result in a "less secure"
binary?  Note that I am using the -user flag to drop the daemon process to a non-root user
at runtime.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message