Late, but hopefully not too late ...
Ben,
I had same problem with Cairo-1.4-5 on FreeBSD CURRENT-8.0 (i386). On of
the authors of Cairo (thanks to Simon Urbanek) reminded me to use gmake
instead of make. So in my case I set the environment variable
temporarily like this (in tcsh):
setenv MAKE gmake
R CMD INSTALL Cairo-1.4-5.tar.gz
unsetenv MAKE
That's all. Good luck,
Rainer
On 21.07.2009 09:53 (UTC+2), Ben Madin wrote:> G'day all,
>
>
> I am trying to install the cairo package on FreeBSD and receiving an
> error to do with Makevars - (I'm not very good at this stuff) so here
is
> my various bits of information. I guess this is a problem with a missing
> library, but I have just been through a lot of grief trying to get png
> and jpeg to work (they do now work!), so I'm not sure where to go for
this.
>
> R version 2.9.0 (2009-04-17)
>
> on
>
> FreeBSD server.ausvet.com.au 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat
> Jun 7 13:33:54 EST 2008
> ben at server.au:/usr/obj/usr/src/sys/AUSVET_CUSTOM i386
>
> with :
>
> cairo-1.8.8,1 and
> p5-Cairo-1.061
>
> using :
>
> install.packages("Cairo")
>
> and I get this:
>
> trying URL
'http://cran.ms.unimelb.edu.au/src/contrib/Cairo_1.4-5.tar.gz'
> Content type 'application/x-tar' length 75318 bytes (73 Kb)
> opened URL
> =================================================> downloaded 73 Kb
>
> * Installing *source* package 'Cairo' ...
> checking for gcc... gcc43 -std=gnu99
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc43 -std=gnu99 accepts -g... yes
> checking for gcc43 -std=gnu99 option to accept ISO C89... none needed
> checking how to run the C preprocessor... cpp
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for string.h... (cached) yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for unistd.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for pkg-config... /usr/local/bin/pkg-config
> checking whether pkg-config knows about cairo... yes
> checking for configurable backends... gnome-config: not found
> gnome-config: not found
> cairo cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib cairo-xlib-xrender
> configure: CAIRO_CFLAGS=-D_THREAD_SAFE -I/usr/local/include/cairo
> -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
> -I/usr/local/include
> checking if R was compiled with the RConn patch... no
> checking cairo.h usability... yes
> checking cairo.h presence... yes
> checking for cairo.h... yes
> checking for PNG support in Cairo... yes
> checking for ATS font support in Cairo... no
> configure: CAIRO_LIBS=-pthread -L/usr/local/lib -lfreetype -lfontconfig
> -lpng -lm -lz -lXrender -lcairo -lX11
> checking for library containing deflate... none required
> checking whether Cairo programs can be compiled... yes
> checking whether cairo_image_surface_get_format is declared... no
> checking for FreeType support in cairo... yes
> checking whether FreeType needs additional flags... no
> checking wheter libjpeg works... yes
> checking wheter libtiff works... yes
> configure: creating ./config.status
> config.status: creating src/Makevars
> config.status: creating src/cconfig.h
> ** libs
> "Makevars", line 2: Need an operator
> "Makevars", line 4: Need an operator
> make: fatal errors encountered -- cannot continue
> ERROR: compilation failed for package 'Cairo'
> * Removing '/usr/local/lib/R/library/Cairo'
>
> The downloaded packages are in
> '/tmp/RtmpcIvbUg/downloaded_packages'
> Updating HTML index of packages in '.Library'
> Warning message:
> In install.packages("Cairo") :
> installation of package 'Cairo' had non-zero exit status
>
> cheers
>
> Ben
>
>
>