RHmm 安装错误

RHmm 安装错误

我正在尝试在 Ubuntu 上安装 RHmm,但出现以下错误。如能得到任何帮助,我将不胜感激。祝好,ilyas。

:~/Desktop/RHmm/src$ g++ -c *.cpp
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cBaumWelch.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cBaumWelchInParam.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cDerivative.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cDiscrete.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from cDMatrix.cpp:11:0:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
cDVector.cpp: In member function ‘void cDVector::Initialize(uint)’:
cDVector.cpp:16:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 { myAssert(mvV == NULL, "Problem") ;
                              ^
cDVector.cpp: In function ‘cDVector operator+(const cDVector&, const cDVector&)’:
cDVector.cpp:297:92: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   myAssert(myN==theRightVect.GetSize(), "operator +: vectors must have the same dimensions") ;
                                                                                        ^
cDVector.cpp: In function ‘cDVector operator+=(cDVector&, const cDVector&)’:
cDVector.cpp:307:95: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   myAssert(myN == theRightVect.GetSize(), "operator +=: vectors must have the same dimensions") ;
                                                                                           ^
cDVector.cpp: In function ‘cDVector operator-(const cDVector&, const cDVector&)’:
cDVector.cpp:316:95: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   myAssert( myN == theRightVect.GetSize(), "operator -: vectors must have the same dimensions") ;
                                                                                           ^
cDVector.cpp: In function ‘cDVector operator-=(cDVector&, const cDVector&)’:
cDVector.cpp:326:95: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   myAssert(myN == theRightVect.GetSize(), "operator -=: vectors must have the same dimensions") ;
                                                                                           ^
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cHmm.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cHmmFit.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cInParam.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cLogBaumWelch.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cMixtMultivariateNormal.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cMixtUnivariateNormal.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cMultivariateNormal.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cRUtils.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cUnivariateNormal.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from cViterbi.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from Kmeans.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from Main.cpp:14:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from MultivariateNormalUtil.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from RHmm.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from SamplesUtil.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from StatUtil.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.
In file included from OTMathUtil.h:17:0,
                 from StdAfxRHmm.h:11,
                 from StdAfxRHmm.cpp:11:
cDMatrix.h:23:26: fatal error: R_ext/Lapack.h: No such file or directory
compilation terminated.

答案1

使用以下命令安装本地源 tarball:

命令行:

R CMD INSTALL RHmm_2.0.3.tar.gz

或者在 R 中:

install.packages("RHmm_2.0.3.tar.gz", repos = NULL, type = "source")

相关内容