topic title: SVG graphics
Posts: 903
plvera
Joined: 11 Oct 2008
#1
Hello:
I'm trying to setup my stats program to create svg graphics (typically I use TIFF without any problems) and that entails dowloading certain packages from R (the stats program).

I'm having a problem with this partcular package installation since it won't install in R. I looked at the wiki site and it has the following instructions:

"The Cairo package requires cairo library 1.2.0 (see
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.cairographics.org/"
linktext was:"http://www.cairographics.org/"
====================================
" onclick="window.open(this.href);return false) or higher with PNG support enabled. Preferably cairo should be registered with pkg-config, otherwise you will have to set CAIRO_CFLAGS and CAIRO_LIBS manually. All other back-ends are optional and will be enabled only if the corresponding support was compiled in cairo or the supporting library is present (libjpeg, libtiff)"

I already have cairo library 2.0 so that's not the problem. I have not idea how to set the flags manually.
Any help would be appreciated.
Thanks.
Pedro
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#2
guess

Code: Select all

pkg-config libcairo2
you may need to be root.
Posts: 903
plvera
Joined: 11 Oct 2008
#3
Erie:
I think there might be some other problem. This is part of what I get when I install the Cairo pkg from R

checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about cairo... no
configure: CAIRO_LIBS is unset, attempting to guess it.
configure: CAIRO_CFLAGS=
checking if R was compiled with the RConn patch... no

checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
configure: error: Cannot find cairo.h! Please install cairo (
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.cairographics.org/"
linktext was:"http://www.cairographics.org/"
====================================
" onclick="window.open(this.href);return false) and/or set CAIRO_CFLAGS/LIBS correspondingly.
ERROR: configuration failed for package 'Cairo'
** Removing '/usr/local/lib/R/site-library/Cairo'

The downloaded packages are in
/var/tmp/Rtmpa9g0fs/downloaded_packages
Warning message:
In install.packages("Cairo") :
installation of package 'Cairo' had non-zero exit status


It might be that Rconn patch they talk about. I'll have to research this some.
thanks.
Pedro
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#4
Possibilities:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api"
linktext was:"http://wiki.r-project.org/rwiki/doku.ph ... ctions_api"
====================================
" onclick="window.open(this.href);return false


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.labkey.org/announcements/home/Server/Forum/thread.view?rowId=2353"
linktext was:"https://www.labkey.org/announcements/ho ... rowId=2353"
====================================
" onclick="window.open(this.href);return false
Posts: 253
mariel77
Joined: 13 Sep 2007
#5
Someone on the MepisLovers forum uses R; there is a post on statistics apps. Maybe you can ask about this there, if eriefisher's links don't solve the issue.
Posts: 903
plvera
Joined: 11 Oct 2008
#6
I posted my question concerning R and a particular package in a an R debian list and got the following answer:

Not at all. In fact when I read the error messages, it says that it
cannot find X11/Intrinsic.h, so that's a problem with Xlib which means
you'll need to install the appropriate"-dev" debian package. For
instance on Ubuntu hardy, I would shoot for installing xserver-xorg-dev.


I wanted to check with the expert in this group to see if installing what this person suggests is reasonable and relatively safe (not looking forward to another reinstall __{{emoticon}}__ .

Thanks.
Pedro
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#7
It's worth a try Pedro. the -dev indicates the tools to build packages against it. It should not affect the rest of your installation.
Posts: 903
plvera
Joined: 11 Oct 2008
#8
Hi Erie:
I fixed the problem by installing the libxt-dev package, not the one suggested by the other post. I was able to install the package I wanted in R and it now seems to be working, so it's a happy ending.
Thanks.
Pedro