linux module load, show, 包管理,找到包的路径

1)module avail

查看系统可以加载的包

包太多可以使用grep -i进行筛选

2)module list

查看已经加载的包

3)module load  XXX包

加载XXX包

4)加载完成后,需要查看包的位置在哪里,可以需要头文件或者动态链接库等

env | grep XXX包

module show XXX包

/$ module show opencv-4.5.4-gcc-9.3.0-yojtqzl
-------------------------------------------------------------------
/thfs1/software/spack/spack-0.18/share/spack/modules/linux-ubuntu20.04-aarch64/opencv-4.5.4-gcc-9.3.0-yojtqzl:

module-whatis   {OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.}
prepend-path    LD_LIBRARY_PATH /thfs1/software/spack/optv018/linux-ubuntu20.04-aarch64/gcc-9.3.0/opencv-4.5.4-yojtqzl/lib
prepend-path    PATH /thfs1/software/spack/optv018/linux-ubuntu20.04-aarch64/gcc-9.3.0/opencv-4.5.4-yojtqzl/bin
prepend-path    CMAKE_PREFIX_PATH /thfs1/software/spack/optv018/linux-ubuntu20.04-aarch64/gcc-9.3.0/opencv-4.5.4-yojtqzl/

就这样子了

你可能感兴趣的:(OpenMP)