Amazon ec2 AWS DSSTNE on Deep Learning AMI(Ubuntu 18.04)-NcExcptionWrap.h:4:105:错误:调用';时间维

Amazon ec2 AWS DSSTNE on Deep Learning AMI(Ubuntu 18.04)-NcExcptionWrap.h:4:105:错误:调用';时间维,amazon-ec2,amazon-ami,Amazon Ec2,Amazon Ami,我目前正在尝试在深度学习AMI(Ubuntu18.04)-AMI-0bddae22e6a2f4c92上设置亚马逊的DSSTNE 我完成了以下步骤: 1) cd amazon-dsstne 2)docker build -t amazon-dsstne . 由于我以前的错误,我已更新中建议的Dockerfile。第50行更改为运行cd/opt/amazon/dsstne/src/amazon/dsstne&&\ 我在dockerfile中的make命令之前添加了RUN-apt-get--yes

我目前正在尝试在深度学习AMI(Ubuntu18.04)-AMI-0bddae22e6a2f4c92上设置亚马逊的DSSTNE

我完成了以下步骤:

1) cd amazon-dsstne

2)docker build -t amazon-dsstne .
由于我以前的错误,我已更新中建议的Dockerfile。第50行更改为运行cd/opt/amazon/dsstne/src/amazon/dsstne&&\

我在dockerfile中的make命令之前添加了RUN-apt-get--yes安装openjdk-8-jdk。错误被解决了

但是,我遇到了另一个与netCDF相关的错误

Makefile:6: **************************************************************************************
Makefile:7: ******************          USE OF DEPRECATED MAKEFILE              ******************
Makefile:8: ****************** PLEASE USE THE ONE AT THE ROOT OF THE REPOSITORY ******************
Makefile:9: **************************************************************************************
cd engine && make
make[1]: Entering directory '/opt/amazon/dsstne/src/amazon/dsstne/engine'
************  RELEASE mode ************
nvcc -E -std=c++11 -Xcompiler "-isystem /usr/local/cuda/bin/../target/x86_64/include -MP,-MM" -I/usr/local/include -isystem /usr/local/cuda/include -isystem /usr/lib/openmpi/include -isystem /usr/include/jsoncpp -IB40C -IB40C/KernelCommon -I/opt/amazon/dsstne/src/amazon/dsstne/../../../build/include -I../utils  kActivation.cu -o /opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cuda/kActivation.d
nvcc -E -std=c++11 -Xcompiler "-isystem /usr/local/cuda/bin/../target/x86_64/include -MP,-MM" -I/usr/local/include -isystem /usr/local/cuda/include -isystem /usr/lib/openmpi/include -isystem /usr/include/jsoncpp -IB40C -IB40C/KernelCommon -I/opt/amazon/dsstne/src/amazon/dsstne/../../../build/include -I../utils  kDelta.cu -o /opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cuda/kDelta.d
nvcc -E -std=c++11 -Xcompiler "-isystem /usr/local/cuda/bin/../target/x86_64/include -MP,-MM" -I/usr/local/include -isystem /usr/local/cuda/include -isystem /usr/lib/openmpi/include -isystem /usr/include/jsoncpp -IB40C -IB40C/KernelCommon -I/opt/amazon/dsstne/src/amazon/dsstne/../../../build/include -I../utils  kLoss.cu -o /opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cuda/kLoss.d
nvcc -E -std=c++11 -Xcompiler "-isystem /usr/local/cuda/bin/../target/x86_64/include -MP,-MM" -I/usr/local/include -isystem /usr/local/cuda/include -isystem /usr/lib/openmpi/include -isystem /usr/include/jsoncpp -IB40C -IB40C/KernelCommon -I/opt/amazon/dsstne/src/amazon/dsstne/../../../build/include -I../utils  kernels.cu -o /opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cuda/kernels.d
************  RELEASE mode ************
mpiCC -O3 -std=c++11 -fPIC -DOMPI_SKIP_MPICXX -MMD -MP -I/usr/local/include -isystem /usr/local/cuda/include -isystem /usr/lib/openmpi/include -isystem /usr/include/jsoncpp -IB40C -IB40C/KernelCommon -I/opt/amazon/dsstne/src/amazon/dsstne/../../../build/include -I../utils -c NNNetwork.cpp -o /opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cpp/NNNetwork.o
In file included from NNNetwork.cpp:14:0:
NNNetwork.cpp: In function 'NNNetwork* LoadNeuralNetworkNetCDF(const string&, uint32_t)':
NcExcptionWrap.h:4:105: error: no matching function for call to 'netCDF::exceptions::NcException::NcException(const char*, const char [14], int)'
 #define NC_EXCEPTION(errorStr, msg, filename, line) NcException(std::string(msg).c_str(), filename, line)
                                                                                                         ^
NNNetwork.cpp:3790:23: note: in expansion of macro 'NC_EXCEPTION'
                 throw NC_EXCEPTION("NcException", "NNNetwork::NNetwork: No version supplied in NetCDF input file " + fname, __FILE__, __LINE__);
                       ^
In file included from NcExcptionWrap.h:2:0,
                 from NNNetwork.cpp:14:
/usr/include/ncException.h:26:7: note: candidate: netCDF::exceptions::NcException::NcException(const string&, const string&, const char*, int)
       NcException(const std::string& exceptionName,const std::string& complaint,const char* fileName,int lineNumber);
       ^
/usr/include/ncException.h:26:7: note:   candidate expects 4 arguments, 3 provided
/usr/include/ncException.h:24:11: note: candidate: netCDF::exceptions::NcException::NcException(const netCDF::exceptions::NcException&)
     class NcException : public std::exception {
           ^
/usr/include/ncException.h:24:11: note:   candidate expects 1 argument, 3 provided
In file included from NNNetwork.cpp:14:0:
NcExcptionWrap.h:4:105: error: no matching function for call to 'netCDF::exceptions::NcException::NcException(const char*, const char [14], int)'
 #define NC_EXCEPTION(errorStr, msg, filename, line) NcException(std::string(msg).c_str(), filename, line)
                                                                                                         
/usr/include/ncException.h:24:11: note:   candidate expects 1 argument, 3 provided
make[1]: *** [/opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cpp/NNNetwork.o] Error 1
Makefile:58: recipe for target '/opt/amazon/dsstne/src/amazon/dsstne/../../../build/tmp/engine/cpp/NNNetwork.o' failed
make[1]: Leaving directory '/opt/amazon/dsstne/src/amazon/dsstne/engine'
Makefile:23: recipe for target '/opt/amazon/dsstne/src/amazon/../../../build/lib/libdsstne.a' failed
make: *** [/opt/amazon/dsstne/src/amazon/../../../build/lib/libdsstne.a] Error 2
The command '/bin/sh -c cd /opt/amazon/dsstne/src/amazon/dsstne &&     make install' returned a non-zero code: 2
netCDF的版本是4.6.0。 链接建议将netCDF改为4.3,这似乎解决了ubuntu 16.04上的问题。然而,我似乎不能降到4.3。如何在使用netCDF 4.6.0的Ubuntu 18.04上解决这个问题