2014年5月31日 星期六

安裝libg2c.so

照這個網頁的步驟, 安裝檔案後

回到R裡面 ./configure 就解決這個錯誤訊息了 XD

checking whether mixed C/Fortran code can be run... configure:
WARNING: cannot run mixed C/Fortran code
configure: error: Maybe check LDFLAGS for paths to Fortran libraries?


--------------------------
http://gnxas.unicam.it/XASLABwww/pag_gnxas/gnxas_install_g77lib.html

Procedure:
  • download the package g77_pack.tar in a suitable folder.
  • unpack the tar archive:
    tar -xvf g77_pack.tar
  • the generated directory will contain the following files:
    cpp-3.4_3.4.6-6ubuntu3_i386.deb
    g77-3.4_3.4.6-6ubuntu3_i386.deb
    gcc-3.4_3.4.6-6ubuntu3_i386.deb
    gcc-3.4-base_3.4.6-6ubuntu3_i386.deb
    libg2c0_3.4.6-6ubuntu3_i386.deb
    libg2c0-dev_3.4.6-6ubuntu3_i386.deb
    install.sh
  • install the g77 package using the following command:
    sudo ./install.sh 
 --------------------------  

可是後來make的時候遇到另一個錯誤訊息

Invalid declaration of or reference to symbol `tiny' at (^) [initially seen at (^)]
make[4]: *** [dlamch.o] Error 1

然後安裝  openjdk-6-jdk 就好了 XDD

沒有留言: