Skip to content

RGTK2

2 messages · Massimo Di Stefano, Diego Diez

#
hi,

i've problem to install RGTK2,

when i try to install it, i've this error:

WARNING: ignoring environment value of R_HOME
* 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 GTK... configure: error: GTK version 2.8.0 required
ERROR: configuration failed for package 'RGtk2'
** Removing '/Library/Frameworks/R.framework/Versions/2.4/Resources/ 
library/RGtk2'


sorry for the O.T. question
but i need to update gtk to 2.8.0 ....

i've installed GTK from darwinports,
i've tryed to update " GTK2 "  using darvinports but i've this error:

powerbook-g4-12-di-epifanio:~ epifanio$ sudo port install gtk2
Password:
Portfile changed since last build; discarding previous state.
--->  Fetching gtk2
--->  Attempting to fetch gtk+-2.10.3.tar.bz2 from ftp://ftp.gtk.org/ 
pub/gtk/v2.10
--->  Verifying checksum(s) for gtk2
--->  Extracting gtk2
--->  Configuring gtk2
Error: Target com.apple.configure returned: configure failure: shell  
command "cd "/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_x11_gtk2/work/gtk+-2.10.3" && LDFLAGS="-L/opt/local/lib - 
lpango-1.0" CPPFLAGS="-I/opt/local/include -no-cpp-precomp - 
DX_LOCALE" CFLAGS="-O3 -funroll-loops -fstrict-aliasing" ./configure  
--prefix=/opt/local --disable-shm --disable-gtk-doc --with-included- 
loaders --mandir=/opt/local/share/man" returned error 1
Command output: checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking dynamic linker characteristics... darwin8.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for nm... /usr/bin/nm -p
checking whether to enable maintainer-specific portions of  
Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package  
requirements (glib-2.0 >= 2.12.0    atk >= 1.9.0    pango >=  
1.12.0    cairo >= 1.2.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and  
BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.

Error: Status 1 encountered during processing.
powerbook-g4-12-di-epifanio:~ epifanio$



have you any experince about?
any help is most appreciated!
thanks.
Massimo.
#
I dont know why it is failing the macports install as I have gtk2  
(gtk2.10) installed without problems. You may want to try in the  
macports mailing list (at http://www.macports.org).

Anyway, even if you install it this way it is not going to work for  
you because R and macports use different compilers and the installed  
RGtk2 package behaves incorrectly (different structure sizes). You  
have to manually install the gtk package and its dependencies -that  
happens to be the ones in the error message of the macports log- with  
the same compiler used to compile R (found in /usr/local/gcc4.0). If  
you have a macports installation it is better to move the directory  
while you install the new gtk and RGtk2 packages as if not you are  
going to enter into problems (as I did) with the different versions.  
It is a little bit tedious but it works.

I was told by Michael Lawrence, the maintainer and co-author of the  
package that an easy to install solution is on the way, but no idea  
when it will come into life.

If anyone has a better way to deal with this please let me know.

HTH,

Diego.


P.D.
i think i have sent the reply to you two times, sorry.
On Nov 10, 2006, at 7:37 PM, massimodisasha wrote: