Unable to install rggobi

100 views
Skip to first unread message

Christopher David Desjardins

unread,
Mar 24, 2016, 2:36:41 PM3/24/16
to GGobi users
I am trying to install rggobi_2.1.20.tar.gz on a Mac OS X with ggobi installed in an unusual location. ggobi is installed in ~/localInstall. I have set the following variables:

export GGOBI_CFLAGS='-I/Users/cdesjard/localInstall/include/ggobi'
export GGOBI_LIBS='-L/Users/cdesjard/localInstall/lib/'

When I run R CMD install, I get the following:

cehd-m1651448:Downloads cdesjard$ R CMD install rggobi_2.1.20.tar.gz 
* installing to library ‘/Users/cdesjard/Library/R/3.2/library’
* installing *source* package ‘rggobi’ ...
** package ‘rggobi’ successfully unpacked and MD5 sums checked
checking for pkg-config... no
checking for GGOBI... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -g -DUSE_EXT_PTR=1 -D_R_=1 -I/Users/cdesjard/localInstall/include/ggobi -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c RSEval.c -o RSEval.o
In file included from RSEval.c:6:
In file included from ./RSGGobi.h:5:
/Users/cdesjard/localInstall/include/ggobi/GGobiAPI.h:24:10: fatal error: 
      'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^
1 error generated.
make: *** [RSEval.o] Error 1
ERROR: compilation failed for package ‘rggobi’
* removing ‘/Users/cdesjard/Library/R/3.2/library/rggobi’

Any thoughts? I am guessing I have my CFLAGS and LIBS aren't set up in correct. I have homebrew installed and that's how I installed GTK+2. It is located at ~/.homebrew/homebrew, if that helps.


--

Michael Lawrence

unread,
Mar 24, 2016, 5:26:28 PM3/24/16
to Christopher David Desjardins, GGobi users
It looks like you need pkg-config installed, as well as the GTK+ devel package (with the headers and the .pc file for pkgconfig). Then, make sure PKG_CONFIG_PATH is set to the pkgconfig directory that contains the gtk+-2.0.pc (or similar) file.

Michael

--
You received this message because you are subscribed to the Google Groups "GGobi users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggobi+un...@googlegroups.com.
To post to this group, send email to gg...@googlegroups.com.
Visit this group at https://groups.google.com/group/ggobi.
For more options, visit https://groups.google.com/d/optout.

Christopher David Desjardins

unread,
Apr 25, 2016, 5:31:27 PM4/25/16
to Michael Lawrence, GGobi users
Sorry, for the late response doing:

export PKG_CONFIG_PATH=-L'/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/lib/pkgconfig/'

Made no any difference.

And I had installed pkg-config in:
~./homebrew/homebrew/Cellar/pkg-config

Thanks,
Chris

Michael Lawrence

unread,
Apr 25, 2016, 7:07:21 PM4/25/16
to Christopher David Desjardins, GGobi users
Well for one thing, there shouldn't be a "-L" in PKG_CONFIG_PATH.
pkg-config is not a linker.

On Mon, Apr 25, 2016 at 2:31 PM, Christopher David Desjardins

Christopher David Desjardins

unread,
Apr 26, 2016, 11:02:29 AM4/26/16
to Michael Lawrence, GGobi users
Sorry, that -L flag wasn't meant to be there and removing it doesn't change the error message.

cehd-m1651448:Downloads cdesjard$ R CMD install rggobi_2.1.20.tar.gz
* installing to library ‘/Users/cdesjard/Library/R/3.2/library’
* installing *source* package ‘rggobi’ ...
** package ‘rggobi’ successfully unpacked and MD5 sums checked
checking for pkg-config... no
checking for GGOBI... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -g -DUSE_EXT_PTR=1 -D_R_=1 -I/Users/cdesjard/localInstall/include/ggobi -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c RSEval.c -o RSEval.o
In file included from RSEval.c:6:
In file included from ./RSGGobi.h:5:
/Users/cdesjard/localInstall/include/ggobi/GGobiAPI.h:24:10: fatal error:
      'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^
1 error generated.

Michael Lawrence

unread,
Apr 26, 2016, 12:36:47 PM4/26/16
to Christopher David Desjardins, GGobi users
What does the exact configure output look like now?

On Tue, Apr 26, 2016 at 8:02 AM, Christopher David Desjardins

Christopher David Desjardins

unread,
Apr 26, 2016, 3:21:15 PM4/26/16
to Michael Lawrence, GGobi users
cehd-m1651448:Downloads cdesjard$ export GGOBI_CFLAGS='-I/Users/cdesjard/localInstall/include/ggobi'
cehd-m1651448:Downloads cdesjard$ export GGOBI_LIBS='-L/Users/cdesjard/localInstall/lib/'
cehd-m1651448:Downloads cdesjard$ export PKG_CONFIG_PATH='/Users/cdesjard/.homebrew/homebrew/Cellar/gtk+/2.24.30/lib/pkgconfig/'
cehd-m1651448:Downloads cdesjard$ R CMD INSTALL rggobi_2.1.20.tar.gz
* installing to library ‘/Users/cdesjard/Library/R/3.2/library’
* installing *source* package ‘rggobi’ ...
** package ‘rggobi’ successfully unpacked and MD5 sums checked
checking for pkg-config... no
checking for GGOBI... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -g -DUSE_EXT_PTR=1 -D_R_=1 -I/Users/cdesjard/localInstall/include/ggobi -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c RSEval.c -o RSEval.o
In file included from RSEval.c:6:
In file included from ./RSGGobi.h:5:
/Users/cdesjard/localInstall/include/ggobi/GGobiAPI.h:24:10: fatal error:
      'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^
1 error generated.
make: *** [RSEval.o] Error 1
ERROR: compilation failed for package ‘rggobi’
* removing ‘/Users/cdesjard/Library/R/3.2/library/rggobi’

Michael Lawrence

unread,
Apr 26, 2016, 4:49:16 PM4/26/16
to Christopher David Desjardins, GGobi users
Looks like pkg-config is not in your PATH. Or at least, configure
cannot find the binary.


On Tue, Apr 26, 2016 at 12:21 PM, Christopher David Desjardins
Reply all
Reply to author
Forward
0 new messages