krb5-config - tool for linking against MIT Kerberos libraries
krb5-config [--help | --all | --version | --vendor | --prefix | --exec-prefix | --defccname | --defktname | --defcktname | --cflags | --libs [libraries]]
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 | --defccname | --defktname | --defcktname | --cflags | --libs [libraries]] DESCRIPTION krb5-config tells the application programmer what flags to use to com- pile and link programs against the installed Kerberos libraries. OPTIONS --help prints a usage message. This is the default behavior when no options are specified. --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 instal- lation 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 instal- lation. --libs [library] prints the compiler options needed to link against library. Allowed values for library are: +------------+----------------------------+ |krb5 | Kerberos 5 applications | | | (default) | +------------+----------------------------+ |gssapi | GSSAPI applications with | | | Kerberos 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 exam- ple, a Kerberos installation that is installed 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 ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+--------------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+--------------------------+ |Availability | security/kerberos-5 | +---------------+--------------------------+ |Stability | Pass-through uncommitted | +---------------+--------------------------+ SEE ALSO kerberos(7), cc(1) AUTHOR MIT COPYRIGHT 1985-2021, MIT NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://web.mit.edu/ker- beros/dist/krb5/1.18/krb5-1.18.4.tar.gz. Further information about this software can be found on the open source community website at http://web.mit.edu/kerberos/. 1.18.4 KRB5-CONFIG(1)