On Jan 5, 2009, at 5:36 , Ivan Alves wrote:
Dear all,
Installing the dependencies of rattle (http://datamining.togaware.com/survivor/Install_Macintosh.html
), I encountered a problem installing the RGtk2 library from
source. It appears that the GTK+ libraries can't be found by R (I
had successfully installed the runtime libraries from http://r.research.att.com/)
.
I would much appreciate some guidance as to how to get R to look in
the right place (/Library/Frameworks/) for the the GTK+ shared
objects. Many thanks in advance.
If you have your environment set correctly this is automatic. However,
from your output it seems you don't so make sure you set something like:
export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
Also make sure you're not setting PKG_CONFIG_PATH anywhere (this is
usually not the case, but it appears you have another pkg-config
installed) and if you do (and want to use it), you must make sure the
framework path to .pc is first.
Cheers,
Simon
(BTW: normally you should not need to install RGtk2 from sources since
it's available on CRAN).
Kind regards,
Ivan
> install.packages("RGtk2",type="source")
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/RGtk2_2.12.7.tar.gz'
Content type 'application/x-gzip' length 2168446 bytes (2.1 Mb)
opened URL
==================================================
downloaded 2.1 Mb
* Installing *source* package 'RGtk2' ...
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBGLADE... no
configure: WARNING: libglade not found
checking for INTROSPECTION... no
checking for GTK... no
configure: error: GTK version 2.8.0 required
ERROR: configuration failed for package 'RGtk2'
** Removing '/Library/Frameworks/R.framework/Resources/library/RGtk2'
The downloaded packages are in
/private/var/folders/CI/CIUrzruqFvKG37WOj2xd6E+++TI/-Tmp-/
RtmpqK95DC/downloaded_packages
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("RGtk2", type = "source") :
installation of package 'RGtk2' had non-zero exit status
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac