Linux InstallationDynamic LibraryTo install the dynamic version of the Lockless memory allocator, you must first copy it to the correct location in your file system. This location depends on which Linux distribution you use, and whether or not you use a 64bit machine. The correct location is:
> su
Copy the library to the correct location (here we assume /usr/lib) > cp libllalloc.so.1.1 /usr/lib Go to that location (here we assume /usr/lib) > cd /usr/lib Make the two symlinks to properly install the library > ln -sf libllalloc.so.1.1 libllalloc.so Regenerate your library cache for the directory you are in (assuming /usr/lib) > ldconfig -n /usr/lib Done - all installed > exit If you have a volume license, then you have both 64bit and 32bit libraries in your download. Don't forget that you can install both on 64bit distributions that support multilib. Just choose the correct lib directories for your Linux distribution and repeat the above twice for the 32bit and 64bit libraries. Once installed, the Lockless memory allocator can be used in several ways.
Note that it is probably not wise to let root run programs linked with the Lockless memory allocator. The allocator is designed for speed, not security. Static LibraryTo use the static version of the Lockless memory allocator, you may want to first copy it to somewhere where your linker will find it. Do this if you wish to avoid adding "-L" directory search options to your linker command line. First determine the correct location for the library in your filesystem. This location depends on which Linux distribution you use, and whether or not you use a 64bit machine. The correct location is:
> su Copy the library to the correct location (here we assume /usr/lib) > cp libllalloc.a /usr/lib Done - all installed > exit If you do this, then linking with "-lllalloc" will include the static library in your executable. Note, if you have also purchased and installed the dynamic library, then you will also need to include the "-static" compile option to select static linking rather than the dynamic library. If you do not wish to install the library in the standard location, then you can compile your programs by adding "/some/path/to/library/libllalloc.a" to the end of your link command line. This method allows you to install the library where ever you wish. Note that it is probably not wise to let root run programs linked with the Lockless memory allocator. The allocator is designed for speed, not security. |
About Us | Returns Policy | Privacy Policy | Send us Feedback |
Company Info |
Product Index |
Category Index |
Help |
Terms of Use
Copyright © Lockless Inc All Rights Reserved. |