|
From: | Michael Braun |
Subject: | Re: [igraph] Problem installing igraph R package on 64-bit Mac Pro |
Date: | Tue, 10 Feb 2009 13:36:46 -0500 |
gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/ Resources/include -I/Library/Frameworks/R.framework/Resources/include/ x86_64 -I/usr/local/include -I/usr/local/include/apophenia -I/usr/ local/include -Wall -O3 -g -p -pg -DHAVE_INLINE -fPIC -Wall -O3 -g -p -pg -DHAVE_INLINE -c random.c -o random.o random.c:36: error: static declaration of ‘expm1’ follows non-static declaration random.c:64: error: static declaration of ‘rint’ follows non-static declaration
make: *** [random.o] Error 1chmod: /Library/Frameworks/R.framework/Resources/library/igraph/libs/ x86_64/*: No such file or directory
ERROR: compilation failed for package 'igraph' ** Removing '/Library/Frameworks/R.framework/Resources/library/igraph'** Restoring previous '/Library/Frameworks/R.framework/Resources/ library/igraph'
On Feb 10, 2009, at 1:23 PM, Gábor Csárdi wrote:
On Tue, Feb 10, 2009 at 6:55 PM, Michael Braun <address@hidden> wrote:Gabor: As requested, here is the complete output. I did try installing theprecompiled binary from CRAN, but got a message "Error: package 'igraph' isnot installed for 'arch=x86_64' " when trying to load the library (of course, it works fine on a 32-bit build).I mean, install the binary that you mentioned in your first email. And then check that it links to GMP correctly. Or do the workaround below. [...]foreign.c: In function 'igraph_write_graph_gml':foreign.c:2367: error: 'PACKAGE_VERSION' undeclared (first use in thisfunction)foreign.c:2367: error: (Each undeclared identifier is reported only onceforeign.c:2367: error: for each function it appears in.) foreign.c: In function 'igraph_write_graph_dot':foreign.c:2603: error: 'PACKAGE_VERSION' undeclared (first use in thisfunction)This should be in config.h, generated by configure from config.h.in. Anyway, just add #define PACKAGE_VERSION "0.6" to the beginning of foreign.c and that should do it. Gabor [...] -- Gabor Csardi <address@hidden> UNIL DGM
------------------------------------------- Michael Braun Homer A. Burnell Career Development Professor, and Assistant Professor of Management Science (Marketing Group) MIT Sloan School of Management One Amherst St., E40-169 Cambridge, MA 02142 address@hidden 617-253-3436
[Prev in Thread] | Current Thread | [Next in Thread] |