Add search path under Linux

[Path] Add executable program
(1) Open the "/ etc / profile" file, configuration global variable "PATH", for example:
the PATH = $ the PATH: /opt/opencv-3.4.2/bin
(2) enter commands for the configuration entry into force: source / etc / profile

Add a dynamic library path []
(1) Open the "/ etc / profile" file, configuration global variable "LD_LIBRARY_PATH", for example:
the LD_LIBRARY_PATH the LD_LIBRARY_PATH = $: /opt/opencv-3.4.2/lib
(2) enter commands to validate the configuration : source / etc / profile

Add a static library path []
(1) Open the "/ etc / profile" file, configure the global variable "LIBRARY_PATH", for example:
LIBRARY_PATH = $ LIBRARY_PATH: /opt/opencv-3.4.2/lib
(2) enter commands to validate the configuration : source / etc / profile

[Add] C header file path
(1) Open the "/ etc / profile" file, configuration global variable "C_INCLUDE_PATH", for example:
C_INCLUDE_PATH = $ C_INCLUDE_PATH: /opt/opencv-3.4.2/include
(2) enter commands for the configuration entry into force: source / etc / profile

[Add] C ++ header file path
(1) Open the "/ etc / profile" file, configuration global variable "CPLUS_INCLUDE_PATH", for example:
CPLUS_INCLUDE_PATH = $ CPLUS_INCLUDE_PATH: /opt/opencv-3.4.2/include
(2) enter commands for the configuration entry into force: source / etc / profile

Published 17 original articles · won praise 0 · Views 1520

Guess you like

Origin blog.csdn.net/hezhanran/article/details/101439657