Setting Environment Variables
After the CANN software is installed in the development environment and operating environment, you need to log in to the environment as the CANN running user to configure environment variables to build and run your application with CANN. Replace ${install_path} with the actual installation path of CANN software.
# Ascend-CANN-Toolkit environment variables
source ${install_path}/set_env.sh
# Configure NCS environment variables.
export LD_LIBRARY_PATH=${install_path}/latest/tools/ncs/lib64/:$LD_LIBRARY_PATH
export PATH=${install_path}/latest/tools/ncs/bin/:$PATH
You can also write the preceding commands to the ~/.bashrc file and run the source ~/.bashrc command to make them valid immediately.
Parent topic: Configuring the Key Certificate