Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 97 lines (68 sloc) 3.431 kB
fa44a2c Initial revision
r authored
1
2 INSTALLING R UNDER UNIX
3
4
5 GENERALITIES
6
7 R will configure and build under a number of common Unix platforms
8 including dec-alpha-osf, freebsd, hpux, linux-elf, sgi-irix, solaris,
9 and sunos. In general it is relatively easy to adapt R to new
10 platforms. See below for details.
11
12
13 SIMPLE INSTALLATION
14
15 Choose a place to install the R tree (R is not just a binary, but
16 has additional data sets, help files, font metrics etc). Let's call
17 this place RHOME. Untar the source code. This should create
18 directories src, etc, cmd, help and doc. Issue the following
19 commands:
20
21 ./configure
22 make
23 make help
24
25 You can also build a LaTeX version of the manual entries with
26
27 make latex
28
29 and an HTML version of the manual with
30
31 make html
32
33 These are not fully supported yet.
34
35 To build help pages and LaTeX and HTML versions of the manual in one
36 step, do
37
38 make docs
39
40 If these commands execute successfully, the R binary will be copied
41 to the $RHOME/bin directory. In addition, a shell script font-end
42 called "R" will be created and copied to the same directory. You
43 can copy the script to a place where users can invoke it:
44 /usr/local/bin/R for example.
45
46 Now type R and reach for your S manuals ...
47
48
49 USING FORTRAN
50
51 R is "shipped" configured so that it does not need a Fortran compiler
52 to build and install. For performance or other reasons you may
53 wish to use your Fortran compiler to compile those pieces of R
54 which are written in Fortran. To do this, edit the file config.site
55 and change the line "F77=no" as indicated in the comments above
56 before typing configure. There are no guarantees that this will
57 work, but it may.
58
59
60 NEW PLATFORMS (Standards Hah!)
61
62 There are a number of sources of problems when installing R on a new
63 harware/os platform.
64
65 1. Floating Point Arithmetic: R supports the POSIX, SVID and IEEE
66 models for floating point arithmetic. The POSIX and SVID models
67 provide no problems. The IEEE model however can be a pain. The
68 problem is that there is no agreement on how to set the signalling
69 behavior; sgi/irix and linux require no special action, freebsd
70 requires a call to (the macro) fpsetmask(0) and osf1v3.2 requires
71 that computation be done with a -ieee_with_inexact flag etc...
72 On a new platform you must find out the magic recipe and add some
73 code to make it work. This can often be done via the file
74 config.site which resides in the top level directory.
75
76 2. Shared Libraries: There seems to be very little agreement across
77 platforms on what needs to be done to build shared libraries.
78 there are many different combinations of flags for the compilers
79 and loaders. The technique we use is to interrogate the X window
80 system about what it does (using xmkmf). This often works, but
81 you may have to manually override the results. Scanning the cc(1)
82 and ld(1) manual entries usually reveals the correct incantation.
83 Once you know the recipe you can modify the file config.site
84 (following the instructions therein) so that the build will use
85 these options.
86
87 If you do manage to get R running on a new platform please let us know
88 about it so we can modify the configuration procedures to include that
89 platform.
90
91 If you are having trouble getting R to work on your platform please
92 feel free to get in touch to ask questions. We've had a fair amount
93 of practice at porting R to new platforms...
94
95 Ross-n-Robert
96 R@stat.auckland.ac.nz
Something went wrong with that request. Please try again.