Help installing Cairo on Ubuntu 10.04

2,477 views
Skip to first unread message

Roger Bos

unread,
Jul 1, 2010, 10:45:25 AM7/1/10
to rapache
I am trying to install the R Cairo package on my Ubuntu 10.04 / R
2.11.1 setup. First I installed cairo okay using

sudo apt-get install libcairo2-dev. This command showed no errors,
but when I try to install Cairo into R, using the following command:

install.packages('Cairo',lib='/usr/lib/R/site-library')

I get an error regarding xlib-backend:

xlib-backend.c:34:74: error: X11/Intrinsic.h: No such file or
directory
xlib-backend.c: In function ‘Rcairo_init_xlib’:
xlib-backend.c:158: warning: implicit declaration of function
‘XrmUniqueQuark’
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/usr/lib/R/site-library/Cairo’
Warning: closing unused RODBC handle 4
Warning: closing unused RODBC handle 3
Warning: closing unused RODBC handle 2
Warning: closing unused RODBC handle 1

The downloaded packages are in
‘/tmp/Rtmp0Nv6Kj/downloaded_packages’
Warning message:
In install.packages("Cairo", lib = "/usr/lib/R/site-library") :
installation of package 'Cairo' had non-zero exit status

Any help anyone could provide would be appreciated.

Thanks,

Roger

Laura Perovich

unread,
Jul 1, 2010, 10:58:34 AM7/1/10
to rap...@googlegroups.com
Hi Roger,

I had a similar error when installing the R Cairo package on my CentOS setup that was solved by doing:

yum install libXt-devel

I think it might be named slightly differently for Ubuntu apt-get install (maybe libxt-dev or something?), but hopefully that helps get you closer.

LJ


--
You received this message because you are subscribed to the Google Groups "rapache" group.
To post to this group, send email to rap...@googlegroups.com.
To unsubscribe from this group, send email to rapache+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rapache?hl=en.


Roger Bos

unread,
Jul 2, 2010, 11:12:59 AM7/2/10
to rapache
Thanks LJ, you suggestion worked perfectly. Anyone as clueless as me
who wants to install Cairo in R should run these two commands first:

sudo apt-get install libcairo2-dev
sudo apt-get install libxt-dev

Thanks,

Roger

On Jul 1, 10:58 am, Laura Perovich <perov...@silentspring.org> wrote:
> Hi Roger,
>
> I had a similar error when installing the R Cairo package on my CentOS setup
> that was solved by doing:
>
> yum install libXt-devel
>
> I think it might be named slightly differently for Ubuntu apt-get install
> (maybe libxt-dev or something?), but hopefully that helps get you closer.
>
> LJ
>
> > rapache+u...@googlegroups.com<rapache%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages