install - R Cairo installation without apt-get, sudo -
i working on headless ubuntu machine of cairo requirements preinstalled, stumbling on getting r use cairo. know flags or additional packages need set/install in order have install.packages build cairo correctly existing installs of dependencies? tricks: i cannot use sudo commands or apt-get, , additional software must involve <50mb of memory. possible? looks need present, if can wire r.
> library('cairo') error in library("cairo") : there no package called ‘cairo’ > install.packages('cairo') ... * installing *source* package ‘cairo’ ... ... checking pkg-config... /usr/bin/pkg-config configure: cairo_cflags=/usr/lib:/usr/bin:/usr/include checking if r compiled rconn patch... no checking cairo.h usability... no checking cairo.h presence... no checking cairo.h... no configure: error: cannot find cairo.h! please install cairo (http://www.cairographics.org/) and/or set cairo_cflags/libs correspondingly. error: configuration failed package ‘cairo’ * removing ‘/app/vendor/r/lib64/r/library/cairo’
this means need install libcairo2-dev package, doing via configure/make runs pixman error despite pixman being present on system:
package pixman-1 not found in pkg-config search path. perhaps should add directory containing `pixman-1.pc' pkg_config_path environment variable no package 'pixman-1' found no package 'pixman-1' found checking whether cairo's image surface backend feature enabled no (requires pixman-1 >= 0.22.0 http://cairographics.org/releases/)error: mandatory image surface backend feature not enabled
what installed:
$ dpkg -l | grep 'cairo\|png\|fontc\|pix' ii fontconfig 2.8.0-2ubuntu1 generic font configuration library - support ii fontconfig-con 2.8.0-2ubuntu1 generic font configuration library - configu ii libcairo2 1.8.10-2ubuntu cairo 2d vector graphics library ii libfontconfig1 2.8.0-2ubuntu1 generic font configuration library - runtime ii libpixman-1-0 0.16.4-1ubuntu pixel-manipulation library x , cairo ii libpng12-0 1.2.42-1ubuntu png library - runtime ii libpng12-dev 1.2.42-1ubuntu png library - development
my session info:
> sessioninfo() r version 2.15.1 (2012-06-22) platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] lc_ctype=en_us.utf-8 lc_numeric=c [3] lc_time=en_us.utf-8 lc_collate=en_us.utf-8 [5] lc_monetary=en_us.utf-8 lc_messages=en_us.utf-8 [7] lc_paper=c lc_name=c [9] lc_address=c lc_telephone=c [11] lc_measurement=en_us.utf-8 lc_identification=c attached base packages: [1] stats graphics grdevices utils datasets methods base
r not see cairo:
> capabilities() jpeg png tiff tcltk x11 aqua http/ftp sockets false false false false false false true true libxml fifo cledit iconv nls profmem cairo true true true true true false false
you need cario dev files
apt-get install libcairo2-dev
i needed install following
apt-get install libxt-dev
Comments
Post a Comment