1)apt安裝:sudo apt-get install luarockslinux
2)自定義安裝bash
a. 下載http://luarocks.org/releases/luarocks-3.2.1.tar.gz工具
b. tar -xzf luarocks-3.2.1.tar.gzui
c. cd luarocks-3.2.1lua
d. ./configure --prefix=/home/yinwenbin/local/luarocks/ --rocks-tree=/home/yinwenbin/local --sysconfdir=/home/yinwenbin/local/etc/luarocksspa
e. make buildcode
f. make installblog
1)luarocks安裝:sudo luarocks install hdf5ip
2)自定義安裝get
a. 下載https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/
b. tar -xzf hdf5-1.10.5.tar.gz
若報錯:
gzip -d hdf5-1.10.5.tar.gz
tar -xf hdf5-1.10.5.tar
c. cd hdf5-1.10.5/
d. ./configure --prefix=/usr/local/hdf5
make
make check
sudo make install
sudo make check-install
e. 驗證
cd /usr/local/hdf5/share/hdf5_examples/c
sudo ./run-c-ex.sh
參考:http://linux.zhizuobiao.com/linux-18090700215/
缺乏gcc-plugin-dev
解決方法:
a. 執行g++ -print-file-name=plugin
,確認gcc是否支持plugin,
若是輸出結果是一串路徑,那麼說明您的gcc支持Plugin。4.5.0以上版本支持。
b. 執行gcc -v,查看gcc版本
c. sudo apt-get install gcc-5-plugin-dev(假設gcc版本爲5.x.x)