NAME
ocaml-ldconf - small utility to manage ocaml ld.conf path
SYNOPSIS
ocaml-ldconf [options]
ocaml-ldconf [options] -l
ocaml-ldconf [options] -ppackage -a/-r dirs ...
DESCRIPTION
This manual page documents briefly the ocaml-ldconf command. This manual page was written for the Debian distribution because the original program does not have a manual page.
ocaml-ldconf is a program that handles the ocaml specific ld.conf paths. It can be invoked in three different ways.
Without argument, it will generate a new /usr/lib/ocaml/ld.conf file using the content of the system administrator defined /etc/ocaml/ld.conf and the dpkg handled /var/lib/ocaml/ld.conf.
With the -l argument, it will simply list the currently active path (well only those in /usr/lib/ocaml/ld.conf for now).
In the -a/-r variant, ocaml-ldconf will add or remove a list of directories to the dpkg handled /var/lib/ocaml/ld.conf file for the package named with the -ppackage argument.
Notice that after having manually updated the /etc/ocaml/ld.conf file, the system administrator should recreate the /usr/lib/ocaml/ld.conf file by running ocaml-ldconf without arguments.
OPTIONS
- -a
-
Adds given paths to the dynamic loading standard path
- -r
-
Removes given paths from the dynamic loading standard path
- -p
-
Gives the package name which adds/removes the paths
- -l
-
Displays the current dynamic loading paths
- -v
-
Display more verbose messages.
- -n
-
Don't update the /usr/lib/ocaml/ld.conf file
- -help, --help
-
Show summary of options.
FILE FORMATS
All three handled files are a list of lines, each containing a directory (for /usr/lib/ocaml/ld.conf) or a directory plus some other stuff, separated by a space or tabulation (for the two other files). A line begining by a # is considered a comment and ignored.
The /etc/ocaml/ld.conf file format is :
- [ directory ] command
Where command can be one of :
- add
-
Adds the directory before the dpkg managed ones.
- addafter
-
Adds the directory after the dpkg managed ones.
- remove
-
If the directory is present in the dpkg managed file, then it get removed.
The /var/lib/ocaml/ld.conf file format is :
- [ directory ] add [ package ]
FILES
- /etc/ocaml/ld.conf
-
The system administrator configuration file.
- /var/lib/ocaml/ld.conf
-
The dpkg managed configuration file.
- /usr/lib/ocaml/ld.conf
-
The true ld.conf file taken in account by the ocaml runtime system.
SEE ALSO
ocamlrun(1),
The Objective Caml user's manual, chapter "Runtime system".
The /usr/share/doc/ocaml/README.Debian
AUTHOR
This manual page was written by Sven Luther <[email protected]>, for the Debian GNU/Linux system (but may be used by others).