R: Difference between revisions
Weibullguy (talk | contribs) mNo edit summary |
Weibullguy (talk | contribs) Added documentation. |
||
| Line 31: | Line 31: | ||
Compile the package: | Compile the package: | ||
CFLAGS="-std=gnu99" ./configure --prefix=/opt/R --libdir=/opt/R/lib \ | |||
--enable-R-profiling --enable-R-shlib --enable-linux-lfs \ | |||
--with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \ | |||
--with-tk-config=/usr/lib/tkConfig.sh && | |||
make | |||
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you have a '''Pure 64''' system, R will install it's libraries in /opt/R/lib64 by default. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you have a '''Pure 64''' system, R will install it's libraries in /opt/R/lib64 by default. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | ||
Install the package: | Install the package: | ||
make install | |||
== Multilib == | == Multilib == | ||
| Line 55: | Line 49: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD32} CFLAGS="-std=gnu99" ./configure \ | |||
--prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \ | |||
--enable-R-shlib --enable-linux-lfs --with-tcltk \ | |||
--with-tcl-config=/usr/lib/tclConfig.sh \ | |||
--with-tk-config=/usr/lib/tkConfig.sh && | |||
make | |||
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | ||
| Line 66: | Line 60: | ||
Install the package: | Install the package: | ||
make install | |||
=== 64Bit === | === 64Bit === | ||
| Line 72: | Line 66: | ||
Compile the package: | Compile the package: | ||
CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \ | |||
--prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \ | |||
--enable-R-shlib --enable-linux-lfs --with-tcltk \ | |||
--with-tcl-config=/usr/lib/tclConfig.sh \ | |||
--with-tk-config=/usr/lib/tkConfig.sh && | |||
make | |||
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options. | ||
Install the package: | |||
make install | |||
== Documentation == | |||
Build and install the info pages for R: | |||
make install-info | |||
Build and install the DVI documentation for R: | |||
make install-dvi | |||
Build and install the PDF documentation for R: | |||
make install-pdf | |||
Copy the R icons to /usr/share/pixmaps: | |||
cp -v doc/html/logo* /usr/share/pixmaps | |||
== Contents == | == Contents == | ||
* Installed Programs: R | |||
* Installed Libraries: libR.so | |||
* Installed Directories: <PREFIX>/{bin,lib,man} | |||
Revision as of 21:18, 13 December 2006
| Download Source: | http://lib.stat.cmu.edu/R/CRAN/src/base/R-2/R-2.4.0.tar.gz |
|---|
Introduction to R
R is GNU S, a language and environment for statistical computing and graphics.
Dependencies
Required
- GMP
- MPFR
- GCC compiled to include F77 (<4.X.X) or gfortran (>=4.X.X). f2c won't work on a 64-bit arch.
Optional
Non-Multilib
Compile the package:
CFLAGS="-std=gnu99" ./configure --prefix=/opt/R --libdir=/opt/R/lib \ --enable-R-profiling --enable-R-shlib --enable-linux-lfs \ --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \ --with-tk-config=/usr/lib/tkConfig.sh && make
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you have a Pure 64 system, R will install it's libraries in /opt/R/lib64 by default. If you are using a system-wide BLAS and/or LAPACK library, add --with-blas and/or --with-lapack to the configure options.
Install the package:
make install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32} CFLAGS="-std=gnu99" ./configure \
--prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
--enable-R-shlib --enable-linux-lfs --with-tcltk \
--with-tcl-config=/usr/lib/tclConfig.sh \
--with-tk-config=/usr/lib/tkConfig.sh &&
make
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide BLAS and/or LAPACK library, add --with-blas and/or --with-lapack to the configure options.
Install the package:
make install
64Bit
Compile the package:
CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \
--prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
--enable-R-shlib --enable-linux-lfs --with-tcltk \
--with-tcl-config=/usr/lib/tclConfig.sh \
--with-tk-config=/usr/lib/tkConfig.sh &&
make
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. If you are using a system-wide BLAS and/or LAPACK library, add --with-blas and/or --with-lapack to the configure options.
Install the package:
make install
Documentation
Build and install the info pages for R:
make install-info
Build and install the DVI documentation for R:
make install-dvi
Build and install the PDF documentation for R:
make install-pdf
Copy the R icons to /usr/share/pixmaps:
cp -v doc/html/logo* /usr/share/pixmaps
Contents
- Installed Programs: R
- Installed Libraries: libR.so
- Installed Directories: <PREFIX>/{bin,lib,man}