luarocks和hdf5安装

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

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

2.hdf5安装

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/

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)

相关文章
相关标签/搜索