📄 glibc.html
字号:
EOF</kbd></pre> <p> To determine the local time zone, run the following script: </p> <pre class="userinput"><kbd class="command">tzselect</kbd></pre> <p> After answering a few questions about the location, the script will output the name of the time zone (e.g., <span class= "emphasis"><em>EST5EDT</em></span> or <span class= "emphasis"><em>Canada/Eastern</em></span>). Then create the <tt class="filename">/etc/localtime</tt> file by running: </p> <pre class="userinput"><kbd class="command">cp -v --remove-destination /usr/share/zoneinfo/<em class="replaceable"><tt>[xxx]</tt></em> \ /etc/localtime</kbd></pre> <p> Replace <em class="replaceable"><tt>[xxx]</tt></em> with the name of the time zone that <span><strong class= "command">tzselect</strong></span> provided (e.g., Canada/Eastern). </p> <div class="variablelist"> <p class="title"> <b>The meaning of the cp option:</b> </p> <dl> <dt> <span class="term"><em class= "parameter"><tt>--remove-destination</tt></em></span> </dt> <dd> <p> This is needed to force removal of the already existing symbolic link. The reason for copying the file instead of using a symlink is to cover the situation where <tt class= "filename">/usr</tt> is on a separate partition. This could be important when booted into single user mode. </p> </dd> </dl> </div> </div> <div class="configuration" lang="en" xml:lang="en"> <div class="titlepage"> <a id="conf-ld" name="conf-ld"></a> <h2 class="sect2"> 10.6.4. Configuring The Dynamic Loader </h2> </div> <p> By default, the dynamic loader (<tt class= "filename">/lib/ld-linux.so.2</tt>) searches through <tt class= "filename">/lib</tt> and <tt class="filename">/usr/lib</tt> for dynamic libraries that are needed by programs as they are run. However, if there are libraries in directories other than <tt class="filename">/lib</tt> and <tt class= "filename">/usr/lib</tt>, these need to be added to the <tt class= "filename">/etc/ld.so.conf</tt> file in order for the dynamic loader to find them. Two directories that are commonly known to contain additional libraries are <tt class= "filename">/usr/local/lib</tt> and <tt class= "filename">/opt/lib</tt>, so add those directories to the dynamic loader's search path. </p> <p> Create a new file <tt class="filename">/etc/ld.so.conf</tt> by running the following: </p> <pre class="userinput"><kbd class="command">cat > /etc/ld.so.conf << "EOF"<tt class="literal"># Begin /etc/ld.so.conf/usr/local/lib/opt/lib# End /etc/ld.so.conf</tt>EOF</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-glibc" name="contents-glibc"></a> <h2 class="sect2"> 10.6.5. Contents of Glibc </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed programs:</span></strong> <span class="seg">catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale, localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</span> </div> <div class="seg"> <strong><span class="segtitle">Installed libraries:</span></strong> <span class="seg">ld.so, libBrokenLocale.[a,so], libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so], libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a, libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so, libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so, and libutil.[a,so]</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3661906" name="id3661906"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="catchsegv" name="catchsegv"></a><span class= "term"><span><strong class= "command">catchsegv</strong></span></span> </td> <td> <p> Can be used to create a stack trace when a program terminates with a segmentation fault </p> </td> </tr> <tr> <td> <a id="gencat" name="gencat"></a><span class= "term"><span><strong class= "command">gencat</strong></span></span> </td> <td> <p> Generates message catalogues </p> </td> </tr> <tr> <td> <a id="getconf" name="getconf"></a><span class= "term"><span><strong class= "command">getconf</strong></span></span> </td> <td> <p> Displays the system configuration values for file system specific variables </p> </td> </tr> <tr> <td> <a id="getent" name="getent"></a><span class= "term"><span><strong class= "command">getent</strong></span></span> </td> <td> <p> Gets entries from an administrative database </p> </td> </tr> <tr> <td> <a id="iconv" name="iconv"></a><span class= "term"><span><strong class= "command">iconv</strong></span></span> </td> <td> <p> Performs character set conversion </p> </td> </tr> <tr> <td> <a id="iconvconfig" name="iconvconfig"></a><span class= "term"><span><strong class= "command">iconvconfig</strong></span></span> </td> <td> <p> Creates fastloading <span><strong class= "command">iconv</strong></span> module configuration files </p> </td> </tr> <tr> <td> <a id="ldconfig" name="ldconfig"></a><span class= "term"><span><strong class= "command">ldconfig</strong></span></span> </td> <td> <p> Configures the dynamic linker runtime bindings </p> </td> </tr> <tr> <td> <a id="ldd" name="ldd"></a><span class= "term"><span><strong class= "command">ldd</strong></span></span> </td> <td> <p> Reports which shared libraries are required by each given program or shared library </p> </td> </tr> <tr> <td> <a id="lddlibc4" name="lddlibc4"></a><span class= "term"><span><strong class= "command">lddlibc4</strong></span></span> </td> <td> <p> Assists <span><strong class="command">ldd</strong></span> with object files </p> </td> </tr> <tr> <td> <a id="locale" name="locale"></a><span class= "term"><span><strong class= "command">locale</strong></span></span> </td> <td> <p> Tells the compiler to enable or disable the use of POSIX locales for built-in operations </p> </td> </tr> <tr> <td> <a id="localedef" name="localedef"></a><span class= "term"><span><strong class= "command">localedef</strong></span></span> </td> <td> <p> Compiles locale specifications </p> </td> </tr> <tr> <td> <a id="mtrace" name="mtrace"></a><span class= "term"><span><strong class= "command">mtrace</strong></span></span> </td> <td> <p> Reads and interprets a memory trace file and displays a summary in human-readable format </p> </td> </tr> <tr> <td> <a id="nscd" name="nscd"></a><span class= "term"><span><strong class= "command">nscd</strong></span></span> </td> <td> <p> A daemon that provides a cache for the most common name service requests </p> </td> </tr> <tr> <td> <a id="nscd_nischeck" name="nscd_nischeck"></a><span class= "term"><span><strong class= "command">nscd_nischeck</strong></span></span> </td> <td> <p> Checks whether or not secure mode is necessary for NIS+ lookup </p> </td> </tr> <tr> <td> <a id="pcprofiledump" name="pcprofiledump"></a><span class= "term"><span><strong class= "command">pcprofiledump</strong></span></span> </td> <td> <p> Dumps information generated by PC profiling </p> </td> </tr> <tr> <td> <a id="pt_chown" name="pt_chown"></a><span class= "term"><span><strong class= "command">pt_chown</strong></span></span> </td> <td> <p> A helper program for <span><strong class= "command">grantpt</strong></span> to set the owner, group and access permissions of a slave pseudo terminal </p> </td> </tr> <tr> <td> <a id="rpcgen" name="rpcgen"></a><span class= "term"><span><strong class= "command">rpcgen</strong></span></span> </td> <td> <p> Generates C code to implement the Remote Procecure Call (RPC) protocol </p> </td> </tr> <tr> <td> <a id="rpcinfo" name="rpcinfo"></a><span class= "term"><span><strong class= "command">rpcinfo</strong></span></span> </td> <td> <p> Makes an RPC call to an RPC server </p> </td> </tr> <tr> <td> <a id="sln" name="sln"></a><span class= "term"><span><strong class= "command">sln</strong></span></span> </td> <td> <p> A statically linked <span><strong class=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -