问题描述
当尝试编译RNNLib时,我在NetcdfDataset.hpp:26:24中收到一个错误,指出找不到Netcdfcpp.h.我环顾四周,发现2011年的错误报告表明这是一个错误,但声称已得到修复.我已经尝试了所有我能想到的一切,包括使用各种不同的标志重建NetCDF(RNNLib的依赖项),并且无法修复此错误.有人可以帮我吗?
When attempting to compile RNNLib, I got an error in NetcdfDataset.hpp:26:24 saying that Netcdfcpp.h could not be found. I looked around and found a bug report from 2011 that suggested that this was a bug, but it claimed to have been fixed. I have tried everything I can think of, including rebuilding NetCDF (a dependency of RNNLib) with various different flags, and have been unable to fix this bug. Can anyone give me a hand?
推荐答案
我在构建rnnlib的虚拟机上遇到了一些麻烦.我必须安装NetCDF的C和C ++版本才能使其正常工作.
I had some trouble on a virtual machine building rnnlib.I had to install the C and C++ version of NetCDF to get it to work.
可以通过sudo apt-get install libnetcdf-dev
我必须通过构建来安装C ++版本.
I had to install the C++ version by building it.
希望它会有所帮助.这是一个很难安装的库.
Hope it will help. It's quite a difficult lib to install.
这篇关于RNNLib配置期间出错:找不到netcdfcpp.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!