KRB5-CONFIG(1) MIT Kerberos KRB5-CONFIG(1)
NAME
krb5-config - tool for linking against MIT Kerberos libraries
SYNOPSIS
krb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defcc-
name | --defktname | --defcktname | --cflags | --libs [libraries]]
DESCRIPTION
krb5-config tells the application programmer what flags to use to compile and link pro-
grams against the installed Kerberos libraries.
OPTIONS
--help prints a usage message. This is the default behavior when no options are speci-
fied.
--all prints the version, vendor, prefix, and exec-prefix.
--version
prints the version number of the Kerberos installation.
--vendor
prints the name of the vendor of the Kerberos installation.
--prefix
prints the prefix for which the Kerberos installation was built.
--exec-prefix
prints the prefix for executables for which the Kerberos installation was built.
--defccname
prints the built-in default credentials cache location.
--defktname
prints the built-in default keytab location.
--defcktname
prints the built-in default client (initiator) keytab location.
--cflags
prints the compilation flags used to build the Kerberos installation.
--libs [library]
prints the compiler options needed to link against library. Allowed values for li-
brary are:
+------------+----------------------------------+
|krb5 | Kerberos 5 applications (de- |
| | fault) |
+------------+----------------------------------+
|gssapi | GSSAPI applications with Ker- |
| | beros 5 bindings |
+------------+----------------------------------+
|kadm-client | Kadmin client |
+------------+----------------------------------+
|kadm-server | Kadmin server |
+------------+----------------------------------+
|kdb | Applications that access the |
| | Kerberos database |
+------------+----------------------------------+
EXAMPLES
krb5-config is particularly useful for compiling against a Kerberos installation that was
installed in a non-standard location. For example, a Kerberos installation that is in-
stalled in /opt/krb5/ but uses libraries in /usr/local/lib/ for text localization would
produce the following output:
shell% krb5-config --libs krb5
-L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcom_err
SEE ALSO
kerberos(7), cc(1)
AUTHOR
MIT
COPYRIGHT
1985-2021, MIT
1.19.2 KRB5-CONFIG(1)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2025-11-29 18:35 @216.73.216.105 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)