Chapter 3 Programming Demos RIGOL
DSA800E Programming Guide 3-23
Method 1: indicate the search path of the library in the environment variable LD_LIBRARY_PATH.
Operation Method: add the library file path /usr/local/lib in 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.
Add 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) so as to ensure the
location of the library when executing the program.