Return to site

Ldconfig For Mac

broken image


Ldconfig for mac download

What is ldconfig? 3 ldconfig examples Syntax and Options Related Commands. What is ldconfig? Ldconfig is used to create, udpate and remove symbolic links for the current shared libraries based on the lib directories present in the /etc/ld.so.conf. 3 ldconfig Examples 1. Display current libraries from the cache.

What is ldconfig?
3 ldconfig examples
Syntax and Options
Related Commands

What is ldconfig?

ldconfig is used to create, udpate and remove symbolic links for the current shared libraries based on the lib directories present in the /etc/ld.so.conf

Ldconfig: need absolute file name for configuration file when using -r ldconfig: might need uid=0 (root) for chroot /tmp/initrd.is generated, and I could boot from this /tmp/initrd.img with DHCP in initrd. (given /tmp/initrd.img is copied where bootloader could read it) What kind of additional dracut plugins you have? 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 (on some 64-bit architectures such as x86-64, /lib and /usr/lib are the trusted directories for 32-bit libraries, while /lib64.

3 ldconfig Examples

1. Display current libraries from the cache

This displays the list of directories and the libraries that are stored in the current cache. In the following example, it indicates that there are 916 libraries found in the cache file /etc/ld.so.cache, and it lists all of them below.

2. Display libraries from every directory

Scans all the directories, and prints the directory name, and all the links that are created under it.

The /etc/ld.so.conf has an include statement, which indicates that all the *.conf file under /etc/ld.so.conf.d directory should be considered.

As you see below, there are multiple *.conf file located under this ld.so.conf.d directory. All of these files will be used.

Sometimes when you do ldconfig -v, you might get the following error. This is because the directory referred by some of the *.conf file located under /etc/ld.so.conf.d is not valid, and contains directory names that doesn't exist.

Note: You can either ignore these error mesages are remove those *.conf files from the /etc/ld.so.conf.d directory.

3. Inform System about the New Libraries

If you've installed a new program by compiling it from source, you might want to inform the system about the new libraries.

For example, let us assume that you've installed a program called dummy, which has all it's libraries under /opt/dummy/lib directory.

The following example will update the links using only the directory /opt/dummy/lib. This doesn't rebuilt the links by processing the /etc/ld.so.conf file. Please note that this doesn't rebuild the cache. It just updates the link.

Instead of the above, you can also add the '/opt/dummy/lib' to /etc/ld.so.conf and do the following.

Syntax and Options

Syntax:

Short OptionLong OptionOption Description
-v–verboseIndicates verbose mode. Prints current version number, name of each directory as it is scanned and links that are created.
-nProcess the directories that are specified from the command line. This doesn't process the regular /usr/lib and lib directories. This also doesn't process directories specified in the /etc/ld.so.conf. This option implies -N.
-NThis doesn't rebuild the cache. Unless -X is also specified, links are still updated.
-XThis doesn't update the links. Unless -N is also specified, the cache is still rebuilt.
-fUse the specified config file instead of /etc/ld.so.conf.
-CUse the specified cache instead of /etc/ld.so.cache.
-rChange to and use root as the root directory.
-lThis is library mode, which manually links individual libraries.
-p–print-cachePrint the lists of directories and candidate libraries stored in the current cache.
-c FORMAT–format=FORMATUses FORMAT for the cache file. Valid values for FORMAT: old, new and compat. compat is the default value.
-i–ignore-aux-cacheIgnore auxiliary cache file.
-?–help, –usageDisplay help
-V–versionDisplay version number

Ldconfig For Unknown Machine 40

Related Commands

Sbin Ldconfig

ldd
ld.so





broken image