使用法: ldconfig [オプション...]
ダイナミックリンカのランタイムバインディングを設定します.
-c, --format=FORMAT 使用フォーマット: 新, 旧, 互換
(デフォルト)
-C CACHE キャッシュファイルとして CACHE
を使用します
-f CONF 設定ファイルとして CONF
を使用します
-i, --ignore-aux-cache Ignore auxiliary cache file
-l
個々のライブラリに手動でリンクしてください.
-n コマンドラインに指定されたディレクトリのみ処理します.
キャッシュを構築しません.
-N キャッシュの構築を行わない
-p, --print-cache キャッシュの表示
-r ROOT
ルートディレクトリとしてROOTを使用し、そこへ変更します
-v, --verbose 詳細なメッセージの表示
-X リンクを生成しない
-?, --help このヘルプの表示
--usage 短い使用方法の表示
-V, --version プログラムのバージョンを表示する
ロングオプションで必須または任意の引数は、それに対応するショートオプションでも同じように必須または任意です.
For bug reporting instructions, please see:
Usage: ldconfig [OPTION...]
Configure Dynamic Linker Run Time Bindings.
-c, --format=FORMAT Format to use: new, old or compat (default)
-C CACHE Use CACHE as cache file
-f CONF Use CONF as configuration file
-i, --ignore-aux-cache Ignore auxiliary cache file
-l Manually link individual libraries.
-n Only process directories specified on the command
line. Don't build cache.
-N Don't build cache
-p, --print-cache Print cache
-r ROOT Change to and use ROOT as root directory
-v, --verbose Generate verbose messages
-X Don't generate links
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
For bug reporting instructions, please see:
LDCONFIG(8) Linux Programmer’s Manual LDCONFIG(8) 名前 /sbin/ldconfig - 動的リンカによる実行時の結合関係を設定する 書式 /sbin/ldconfig [ -nNvXV ] [ -f conf ] [ -C cache ] [ -r root ] direc- tory ... /sbin/ldconfig -l [ -v ] library ... /sbin/ldconfig -p 説明 ldcofig は最新の共有ライブラリに対して必要なリンクを作成したり、ライ ブ ラ リ を キ ャ ッ シ ュ し た り す る 。ライブラリは、コマンドラインや /etc/ld.so.conf ファイルで指定されたディレクトリや、共有ライブラリが 通 常 置かれるディレクトリ (/lib と /usr/lib) から検索される。キャッシュは 実行時リンカ ld.so または ld-linux.so によって使われる。 ldconfig は 処 理 するライブラリのヘッダ部分とファイル名をチェックし、どのバージョンに 対してリンクを更新すべきかを判断する。 ldconfig は ELF ライブラリの種類 (libc5 か libc6/glibc か) を判断すると き、そのライブラリがリンクしている C ライブラリを参考にする。 す でに存在しているライブラリの中には、種類を区別するために充分な情報が 含まれていないものもある。このため /etc/ld.so.conf ファイルでライブラリ の形式を指定することができるようになっている。これは区別不能な ELF ライ ブラリ「だけ」に用いるものである。フォーマットは "dirname=TYPE" とす る 。ここで TYPE は libc4, libc5, libc6 のいずれかである (この書式はコマン ドラインでも使える)。「スペースを入れてはならない」。 -p オプションも見 て おくこと。 ldconfig は通常スーパーユーザー権限で実行しなければならな い。 root が所有しているディレクトリやファイルへの書き込み権限が必要 に なるからである。 オプション -v 詳細表示モード。現在のバージョン番号を表示する。またそれぞれのデ ィレクトリをスキャンし、新しいリンクを生成するたびに、その内容を 表示する。メッセージ抑制モードを上書きする。 -n コマンドラインで指定されたディレクトリのみを処理する。通常共有 ライブラリが置かれるディ レ ク ト リ (/lib と /usr/lib) や /etc/ld.so.conf で指定されたディレクトリは処理しない。暗黙のうち に -N が指定される。 -N キャッシュを再構成しない。同時に -X が同時に指定されなければ、リ ンクのほうは更新される。 -X リンクを更新しない。 -N が同時に指定されなければ、キャッシュのほ うは再構成される。 -f conf conf を /etc/ld.so.conf の代わりに用いる。 -C cache cache を /etc/ld.so.cache の代わりに用いる。 -r root root にカレントディレクトリを変更し、ここをルートディレクトリ と して用いる。 -l ライブラリモード。それぞれのライブラリを手動でリンクする。熟練者 のみが用いるべきである。 -p 現在のキャッシュに保存されているディレクトリのリストと、ライブラ リの候補を表示する。 ファイル /lib/ld.so 実行時リンカ/ローダー。 /etc/ld.so.conf コロン・スペース・タブ・改行・コンマで区切られたデ ィレクトリのリスト。それぞれのディレクトリでライ ブ ラリが検索される。 /etc/ld.so.cache /etc/ld.so.conf で指定されたディレクトリにあるライ ブラリ、および /lib と /usr/lib にあるライブラリ の 順序付きリスト。 関連項目 ldd(1), ld.so(8) GNU 2009-04-15 LDCONFIG(8)
LDCONFIG(8) Linux Programmer’s Manual LDCONFIG(8) NAME /sbin/ldconfig - configure dynamic linker run-time bindings SYNOPSIS /sbin/ldconfig [ -nNvXV ] [ -f conf ] [ -C cache ] [ -r root ] direc- tory ... /sbin/ldconfig -l [ -v ] library ... /sbin/ldconfig -p DESCRIPTION ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, ld.so or ld- linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated. ldconfig will attempt to deduce the type of ELF libs (i.e., libc5 or libc6/glibc) based on what C libs, if any, the library was linked against. Some existing libs do not contain enough information to allow the deduction of their type. Therefore, the /etc/ld.so.conf file format allows the specification of an expected type. This is only used for those ELF libs which we can not work out. The format is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6. (This syntax also works on the command line.) Spaces are not allowed. Also see the -p option. ldconfig should normally be run by the superuser as it may require write permission on some root owned directories and files. OPTIONS -v Verbose mode. Print current version number, the name of each directory as it is scanned, and any links that are created. Overrides quiet mode. -n Only process directories specified on the command line. Don’t process the trusted directories (/lib and /usr/lib) nor those specified in /etc/ld.so.conf. Implies -N. -N Don’t rebuild the cache. Unless -X is also specified, links are still updated. -X Don’t update links. Unless -N is also specified, the cache is still rebuilt. -f conf Use conf instead of /etc/ld.so.conf. -C cache Use cache instead of /etc/ld.so.cache. -r root Change to and use root as the root directory. -l Library mode. Manually link individual libraries. Intended for use by experts only. -p Print the lists of directories and candidate libraries stored in the current cache. FILES /lib/ld.so run-time linker/loader /etc/ld.so.conf File containing a list of colon, space, tab, new- line, or comma-separated directories in which to search for libraries. /etc/ld.so.cache File containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found in /lib and /usr/lib. SEE ALSO ldd(1), ld.so(8) COLOPHON This page is part of release 3.22 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU 2009-04-15 LDCONFIG(8)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa