On 11/24/2012 02:00 PM, Andrew Roberts wrote:> I would be grateful for a bit of help.
>
> I am on a 32bit build of Ubuntu LTS 12.04 running R version 2.15.2
> (2012-10-26) -- "Trick or Treat" Platform: i686-pc-linux-gnu
(32-bit)
>
> from within RStudio and from within a terminal (sudo R |
> install.packages("tiff") ) I have the following compile error:
>
> > install.packages("tiff")
> Installing package(s) into
'/home/andrew/R/i686-pc-linux-gnu-library/2.15'
> (as 'lib' is unspecified)
> trying URL
'http://www.stats.bris.ac.uk/R/src/contrib/tiff_0.1-3.tar.gz'
> Content type 'application/x-gzip' length 28014 bytes (27 Kb)
> opened URL
> =================================================> downloaded 27 Kb
>
> * installing *source* package 'tiff' ...
> ** package 'tiff' successfully unpacked and MD5 sums checked
> ** libs
> gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
> -g -c common.c -o common.o
> In file included from common.c:1:0:
> common.h:5:18: fatal error: tiff.h: No such file or directory
> compilation terminated.
> make: *** [common.o] Error 1
> ERROR: compilation failed for package 'tiff'
> * removing '/home/andrew/R/i686-pc-linux-gnu-library/2.15/tiff'
> Warning in install.packages :
> installation of package 'tiff' had non-zero exit status
>
> Sure enough when you download the source files manually and hunt inside
> there is no tiff.h
>
> I suspect the problem is me not tiff!
>
> Andrew Roberts
Andrew:
Ubuntu Packages (http://packages.ubuntu.com/) is a great resource. Half
way down the page you can search the contents of packages for the file
that is missing. The package you are missing is "libtiff4-dev".
Install that via apt or synaptic and then try to install the package in
R again.
Hope this helps,
Michael
--
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
4205 College Drive
Erie, PA 16563
http://math.bd.psu.edu/faculty/rutter
mar36 at psu.edu