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

蝦咪喜R ?

之後可能要來研究這個了!? XDD

http://www.r-project.org/

Introduction to R

R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.
R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.
One of R's strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed. Great care has been taken over the defaults for the minor design choices in graphics, but the user retains full control.
R is available as Free Software under the terms of the Free Software Foundation's GNU General Public License in source code form. It compiles and runs on a wide variety of UNIX platforms and similar systems (including FreeBSD and Linux), Windows and MacOS.