- /軟件/linux/spglib-develop
$ mkdir _build
$ cd _build
$ cmake -DCMAKE_INSTALL_PREFIX="" ..
$ make
$ make DESTDIR=/home/xxx/xxx install
- 寫(xiě)入環(huán)境變量
LD_LIBRARY_PATH=/home/xxx/spglib/lib64:$LD_LIBRARY_PATH
- 在spglib/include下運(yùn)行命令
$ mkdir spglib
$ cp spglib.h ./spglib