2014-07-07 3 views
0

Я пытаюсь установить HiddenMarkov_1.3-1 на R-2.12.2, и я получаю следующую ошибку компиляции. Есть идеи?Установка пакета на 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’ 
+1

Согласно http://cran.github.io/w/r/r2122/search/?q=hiddenmarkov HiddenMarkov 1.4-3 был текущим, когда R 2.12.2 был выпущен, так что, возможно, вы можете попробовать установить этот первый , Если это не сработает, вы, вероятно, захотите включить в вопрос номер своей версии gcc/gfortran и вашу ОС. –

+0

Это был компилятор gfortran. Спасибо за помощь – Andres

ответ

0

Как было предложено @Gabor Csardi была несовместимость между HiddenMarkov 1.4-3 и в gfortran компилятором.

Смежные вопросы