Instructions

Table Of Contents
Chapter 3 Programming Examples RIGOL
RSA5000 Programming Guide 3-21
4. Use either of the following two methods to add the library location to the search path of the library, so
that the program can load the installed library file automatically.
Method 1: Specify the search path of the library in the environment variable LD_LIBRARY_PATH.
Operation Method: Add the library file path /usr/local/lib to the LD_LIBRARY_PATH variable in the
/etc/profile file, as shown in the figure below.
Method 2: Add the search path of the library in the /etc/ld.so.conf file.
Operation Method: #echo "/usr/local/lib" >> /etc/ld.so.conf, as shown in the figure below.
After setting the search path of the library in /etc/ld.so.conf, run the /sbin/ldconfig command to
update /etc/ld.so.cache (this command should have the root permission) to ensure the location of the
library when executing the program.