我试图在R-2.12.2上安装HiddenMarkov_1.3-1,我收到以下编译错误。有什么想法吗?
$ R CMD INSTALL HiddenMarkov_1.3-1.tar.gz
* installing to library ‘/R/library’
* installing *source* package ‘HiddenMarkov’ ...
** libs
g77 -fpic -O3 -c dthmm.f -o dthmm.o
g77 -fpic -O3 -c extract.f -o extract.o
extract.f: In subroutine `getrow':
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
e
xtract.f:5: (continued):
double precision a(n,m), b(m)
2
Invalid declaration of or reference to symbol `n' at (2) [initially seen at (1)]
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
extract.f:5: (continued):
double precision a(n,m), b(m)
2
Invalid declaration of or reference to symbol `m' at (2) [initially seen at (1)]
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
extract.f:6: (continued):
integer m, n, j, k
2
Invalid declaration of or reference to symbol `m' at (2) [initially seen at (1)]
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
extract.f:6: (continued):
integer m, n, j, k
2
Invalid declaration of or reference to symbol `n' at (2) [initially seen at (1)]
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
extract.f:7: (continued):
j = 1
2
Invalid declaration of or reference to symbol `a' at (2) [initially seen at (1)]
extract.f:1:
subroutine getrow(m, n, k, a, b)
1
extract.f:7: (continued):
j = 1
2
Invalid declaration of or reference to symbol `b' at (2) [initially seen at (1)]
extract.f: In subroutine `getmat':
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:19: (continued):
double precision a(n,m,m), b(m,m)
2
Invalid declaration of or reference to symbol `n' at (2) [initially seen at (1)]
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:19: (continued):
double precision a(n,m,m), b(m,m)
2
Invalid declaration of or reference to symbol `m' at (2) [initially seen at (1)]
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:20: (continued):
integer i, j, k, m, n
2
Invalid declaration of or reference to symbol `m' at (2) [initially seen at (1)]
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:20: (continued):
integer i, j, k, m, n
2
Invalid declaration of or reference to symbol `n' at (2) [initially seen at (1)]
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:21: (continued):
i = 1
2
Invalid declaration of or reference to symbol `a' at (2) [initially seen at (1)]
extract.f:15:
subroutine getmat(m, n, k, a, b)
1
extract.f:21: (continued):
i = 1
2
Invalid declaration of or reference to symbol `b' at (2) [initially seen at (1)]
make: *** [extract.o] Error 1
ERROR: compilation failed for package ‘HiddenMarkov’
* removing ‘/R/library/HiddenMarkov’
答案 0 :(得分:0)
根据@Gabor Csardi的建议,HiddenMarkov 1.4-3和gfortran编译器之间存在不兼容性。