Personal tools
You are here: Home LINC Projects ITI-Geospatial Data Analysis Gnu R Installing R on Cangrid

Installing R on Cangrid

Instructions (and results) for installing GNU R onto Cangrid

InstallROnCangrid.txt — Plain Text, 2Kb

File contents

Before proceeding, you will need a install directory for your efforts (I'm assuming the reader is not a root admin).

So, create a directory - say tempInstall. I'm assuming you are doing this at your home directory.

Next, download R-2.5.1.tar.gz - I'm assuming this will also be at your home directory.

Now, gunzip R-2.5.1.tar.gz

Then, run this command:
	tar fx R-2.5.1.tar

You should see a directory by the name R-2.5.1

	cd R-2.5.1

To be safe, type the command:
	mkdir aBuild
	cd aBuild

Essentially, we are building everything in the aBuild directory - helps to prevent the 'source' stays clean.

Next, type this
	../configure --prefix=PATH_TO_YOUR_HOME/tempInstall --enable-R-shlib --enable-BLAS-shlib

The --prefix tells where the install directory will be; you will need to change PATH_TO_YOUR_HOME to be the actual path to your home directory. Again, I'm assuming you created the tempInstall directory in your home directory.  

The second option creates the shared libraries for R. Not sure this is a good idea or not.
***NOTE:  I'm serious about not knowing if this is a good idea or not.  R is used by GRASS - we just are not sure how yet.  So, in the long run, we may need to move to non-shared.  And, I'm not sure about the performance hit, if any, when running on clusters.

The last has R create a shared library of BLAS. Again, working out if this is a good idea or not.
***NOTE:  I'm serious about not knowing if this is a good idea or not.  We may eventually default to non-shared.  And, I'm not sure about the performance hit, if any, when running on clusters.

Otherwise, the defaults should be fine.

If all goes well, you get a list of what has been configured.

Next, type
	make

This will build - it will take a bit.

When done, if you have no reported errors, type

	make check

This runs a set of tests. Assuming all is well, there should be no errors.

Next, let's generate some docs.

	make dvi
	make pdf
	make info

This will generate the dvi, pdf, and info versions of the documentation. Probably overkill.

At this point, we should be ready to install. So, type the following:

	make install
	make install-dvi
	make install-pdf
	make install-info

And, everything should be in tempInstall.

Okay, to clean up.

Type
	make clean
	make distclean

Then, go to the home directory and type

	rm -rf R-2.5.1

Code is now gone.

Only thing left is to add the tempInstall to your PATH, LIB, and MAN pages.
Document Actions
« May 2012 »
May
MoTuWeThFrSaSu
123456
78910111213
14151617181920
21222324252627
28293031