luarocks和hdf5安装

1.luarocks安装(lua的模块管理工具)

1)apt安装:sudo apt-get install luarocks

2)自定义安装

a. 下载http://luarocks.org/releases/luarocks-3.2.1.tar.gz

b. tar -xzf luarocks-3.2.1.tar.gz

c. cd luarocks-3.2.1

d. ./configure --prefix=/home/yinwenbin/local/luarocks/ --rocks-tree=/home/yinwenbin/local --sysconfdir=/home/yinwenbin/local/etc/luarocks

e. make build

f. make install

2.hdf5安装

1)luarocks安装:sudo luarocks install hdf5

2)自定义安装

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/

3. 安装过gcc但是没有gcc-plugin.h

缺少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)

原文地址:https://www.cnblogs.com/walker-lin/p/11798012.html