0
R-2.12.2에 HiddenMarkov_1.3-1을 설치하려고하는데 다음과 같은 컴파일 오류가 발생합니다. 어떤 아이디어? @Gabor Csardi 제안 HiddenMarkov 1.4-3 및 gfortran 컴파일러 간의 호환성이 있었다 같이R에 패키지를 설치하면 컴파일 오류가 발생합니다
$ 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’
http://cran.github.io/w/r/r2122/search/?q=hiddenmarkov에 따르면 HiddenMarkov 1.4-3은 현재 R 2.12.2가 출시되었을 때의 최신 버전 이었으므로 아마도 처음 설치했을 수 있습니다. . 그래도 문제가 해결되지 않으면 gcc/gfortran 버전 번호와 OS를 질문에 포함하고 싶을 것입니다. –
gfortran 컴파일러였습니다. 도와 주셔서 감사합니다 – Andres