[R] RSPerl & OS X

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon May 26 11:55:22 CEST 2008


Your problem is a different one -- you do not have the Gtk+ headers nor 
configuration files installed.

There is a specific list (r-sig-mac) for Mac OS X issues -- people there 
will be able to advise you on you to get hold of such addons.

(I should add that RGtk is old and does not install on recent systems 
which only have Gtk2, so finding the appropriate files may not be easy. On 
my Linux box they are in gtk+-devel-1.2..., and that is not part of a 
standard install.)

On Sun, 25 May 2008, DavidM.UK wrote:

>
> Hi Duncan,
>
> That fix worked I tested it with plot.pl and test2.pl, but I think a similar
> problem is occurring with RGtk, which I need to install before I can use
> RGtkviewers which in turn I need before I install IDocs :) I'm hoping the
> combination of those modules will allow me to produce interactive pages with
> data processed by Perl and passed to R via RSPerl?
>
> $ R CMD INSTALL RGtk_*
> * Installing to library '/Library/Frameworks/R.framework/Resources/library'
> * Installing *source* package 'RGtk' ...
> checking for pkg-config... no
> checking for gtk-config... no
> checking for gnome-config... no
> configure: creating ./config.status
> config.status: creating src/Makevars
> config.status: creating cleanup
> ** libs
> ** arch - i386
> make: --cflags: Command not found
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -mmacosx-version-min=10
> .4 -std=gnu99 -no-cpp-precomp
> -I/Library/Frameworks/R.framework/Resources/includ
> e -I/Library/Frameworks/R.framework/Resources/include/i386 -I. -D_R_=1
> -DUSE_R=1
>      -I/Library/Frameworks/R.framework/Resources/include   -msse3    -fPIC
> -g
> -O2 -march=nocona -c GdkManual.c -o GdkManual.o
> GdkManual.c:1:21: error: gdk/gdk.h: No such file or directory
> In file included from GdkManual.c:3:
> gtkUtils.h:6:21: error: gtk/gtk.h: No such file or directory
> In file included from gtkUtils.h:8,
>                 from GdkManual.c:3:
> RGtk.h:20: error: parse error before 'guint'
> RGtk.h:20: warning: no semicolon at end of struct or union
> RGtk.h:21: warning: type defaults to 'int' in declaration of
> 'R_gtk_CallbackData
> '
> RGtk.h:21: warning: data definition has no type or storage class
> RGtk.h:23: error: parse error before '*' token
> RGtk.h:24: error: parse error before '*' token
> RGtk.h:27: error: parse error before 'type'
> In file included from GdkManual.c:3:
> gtkUtils.h:30: warning: parameter names (without types) in function
> declaration
> gtkUtils.h:32: error: parse error before 'arg'
> gtkUtils.h:33: error: parse error before 'GtkArg'
> gtkUtils.h:35: error: parse error before 'type'
> GdkManual.c: In function 'S_gdk_window_get_size':
> GdkManual.c:8: error: 'GdkWindow' undeclared (first use in this function)
> GdkManual.c:8: error: (Each undeclared identifier is reported only once
> GdkManual.c:8: error: for each function it appears in.)
> GdkManual.c:8: error: 'window' undeclared (first use in this function)
> GdkManual.c:8: error: parse error before ')' token
> GdkManual.c:12: warning: implicit declaration of function
> 'gdk_window_get_size'
> GdkManual.c: In function 'S_getGdkEventButtonX':
> GdkManual.c:33: error: 'GdkEventButton' undeclared (first use in this
> function)
> GdkManual.c:33: error: 'obj' undeclared (first use in this function)
> GdkManual.c:33: error: parse error before ')' token
> make: *** [GdkManual.o] Error 1
> chmod:
> /Library/Frameworks/R.framework/Versions/2.6/Resources/library/RGtk/libs/
> i386/*: No such file or directory
> ERROR: compilation failed for package 'RGtk'
> ** Removing
> '/Library/Frameworks/R.framework/Versions/2.6/Resources/library/RGtk
>
> Cheers
>
> David M
>
> Duncan Temple Lang wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>>
>> That will need the architecture-specific directory, e.g. etc/i386/Makeconf
>> or etc/ppc/Makeconf
>>
>> There is an updated version at
>> ~ http://www.omegahat.org/RSPerl/RSPerl_0.92-2.tar.gz
>>
>> that will hopefully bypass that issue. (It is a rapid
>> fix that may have other issues.)
>>
>> As for finding R.pm, use the appropriate shell script
>> in <R-library>/RSPerl/scripts/ to set the relevant
>> environment variables to find the Perl code, etc.
>>
>>
>> Thanks for letting me know
>> ~ D.
>>
>>
>> | `/Library/Frameworks/R.framework/Resources/etc/Makeconf'.  Stop.
>> | calling make -f Makefile.perl install
>> | make: Makefile.perl: No such file or directory
>> | make: *** No rule to make target `Makefile.perl'.  Stop.
>> | chmod: blib/lib/R.pm: No such file or directory
>> | Finished configuration
>> | ** libs
>> | ** arch - i386
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c Converters.c -o Converters.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c ForeignReference.c -o ForeignReference.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c GeneralConverters.c -o GeneralConverters.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlElements.c -o RPerlElements.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlEval.c -o RPerlEval.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlInit.c -o RPerlInit.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlNew.c -o RPerlNew.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlReference.c -o RPerlReference.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c RPerlVars.c -o RPerlVars.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c Reflectance.c -o Reflectance.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c UserConverters.c -o UserConverters.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c Utils.c -o Utils.o
>> | Utils.c: In function 'characterVectorToNullTerminatedArray':
>> | Utils.c:35: warning: assignment discards qualifiers from pointer target
>> type
>> | Utils.c: In function 'characterVectorToArray':
>> | Utils.c:78: warning: assignment discards qualifiers from pointer target
>> type
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -no-cpp-precomp
>> | -I/Library/Frameworks/R.framework/Resources/include
>> | -I/Library/Frameworks/R.framework/Resources/include/i386 -I.  -g -pipe
>> | -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
>> | -I/usr/local/include
>> | -I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE
>> -DPERL_POLLUTE
>> | -D_R_=1 -DUSE_R=1 -DUSE_TOPLEVEL_EXEC=1 -DWITH_R_IN_PERL=1 -msse3
>> -fPIC
>> | -g -O2 -march=nocona -c xsinit.c -o xsinit.o
>> | gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> | -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib
>> | -Wl,-headerpad_max_install_names -Wl,-macosx_version_min -Wl,10.4
>> -undefined
>> | dynamic_lookup -single_module -multiply_defined suppress
>> -L/usr/local/lib -o
>> | RSPerl.so Converters.o ForeignReference.o GeneralConverters.o
>> | RPerlElements.o RPerlEval.o RPerlInit.o RPerlNew.o RPerlReference.o
>> | RPerlVars.o Reflectance.o UserConverters.o Utils.o xsinit.o
>> | -L/usr/local/lib
>> |
>> /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
>> | -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl
>> -lm
>> | -lc   -F/Library/Frameworks/R.framework/.. -framework R
>> | ** R
>> | ** inst
>> | ** help
>> |  >>> Building/Updating help pages for package 'RSPerl'
>> |      Formats: text html latex example
>> |   Perl                              text    html    latex   example
>> |   PerlClear                         text    html    latex   example
>> |   PerlDiscard                       text    html    latex   example
>> |   PerlExists                        text    html    latex   example
>> |   PerlExpr                          text    html    latex   example
>> |   PerlFile                          text    html    latex   example
>> |   PerlGetArray                      text    html    latex   example
>> |   PerlGetCode                       text    html    latex   example
>> |   PerlInit                          text    html    latex   example
>> |   PerlInterpreter                   text    html    latex   example
>> |   PerlLength                        text    html    latex   example
>> |   PerlNames                         text    html    latex   example
>> |   PerlNew                           text    html    latex   example
>> |   PerlNewArray                      text    html    latex   example
>> |   PerlPackage                       text    html    latex   example
>> |   PerlReferenceDollar               text    html    latex   example
>> |   PerlReferenceObjects              text    html    latex   example
>> |   PerlReferenceSubset               text    html    latex   example
>> |   PerlSetHash                       text    html    latex   example
>> |   PerlStashInfo                     text    html    latex   example
>> |   PerlTerminate                     text    html    latex   example
>> |   PerlType                          text    html    latex   example
>> |   PerlTypes                         text    html    latex
>> |   PerlUndef                         text    html    latex   example
>> |   addConverter                      text    html    latex   example
>> |   foreignReference                  text    html    latex   example
>> |   getNumPerlConverters              text    html    latex   example
>> |   getPerlClasses                    text    html    latex   example
>> |   getPerlDynModules                 text    html    latex   example
>> |   getPerlScript                     text    html    latex   example
>> |   mkRef                             text    html    latex   example
>> |   parseEval                         text    html    latex   example
>> |   perlInitArgs                      text    html    latex   example
>> |   perlModuleLoaded                  text    html    latex   example
>> |   referenceHandlerGenerator         text    html    latex   example
>> |   setPerlHandler                    text    html    latex   example
>> | ** building package indices ...
>> | * DONE (RSPerl)
>> |
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFIOHsk9p/Jzwa2QP4RAvfOAJ4mm+L35WzZe77onXRPaTkiZfluCACfXj1J
>> eCLIkaUxh4Th9K/l/pzF/9o=
>> =jj4v
>> -----END PGP SIGNATURE-----
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/RSPerl---OS-X-tp17449813p17457989.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list