[OS X TeX] Failure to compile Rgraphviz on Mac OS X

Peter Dyballa Peter_Dyballa at Web.DE
Thu Oct 18 15:40:43 EDT 2007


Am 18.10.2007 um 13:52 schrieb Michael Kubovy:

> Here is what the console says when I ask it to compile Rgraphviz:
>
> WARNING: ignoring environment value of R_HOME
> * Installing *source* package 'Rgraphviz' ...
> configure: No --with-graphviz option was specified. Trying to find  
> graphviz using other methods.
> checking for pkg-config... no
> configure: Using dotneato-config to find graphviz
> checking for dotneato-config... no
> configure: dotneato-config not found in PATH.
> configure: Trying default graphviz dir /usr/local.  Consider  
> specifying --with-graphviz
> configure: Using graphviz root directory /usr/local
> configure: Found graphviz not
> Referenced
> Reason:

The last two lines are erroneous, the line above them looks  
incorrect. You should report this failure to the author. And: where  
did you really install this "graphviz?"

> configure: We have inferred the following flags for graphviz
> configure: ..PKG_CPPFLAGS=-I/usr/local/include/graphviz
> configure: ..PKG_LIBS=-L/usr/local/lib/graphviz -L/usr/local/lib -lgvc
> checking for whether compiler has bool... checking for gcc... gcc
> ./configure: line 1459: test: too many arguments
> ./configure: line 1481: test: too many arguments
> ./configure: line 1481: test: too many arguments

Here above other failures happened. I can imagine that your  
environment is faulty. Check it with: env | sort. And look into the  
configure.log file to find details for what failed here. The line  
numbers will help to find the right lines in the LOG file. And in the  
configure script.

>
> checking for _Bool... yes
> yes

This "yes" is caused by a slightly faulty statement in the configure  
script. You should report it.

> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> ** arch - i386
>
> The downloaded packages are in
> 	/private/tmp/RtmpkHbLv7/downloaded_packages
> gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
> std=gnu99 -no-cpp-precomp -I/Library/Frameworks/R.framework/ 
> Resources/include -I/Library/Frameworks/R.framework/Resources/ 
> include/i386 -I/usr/local/include/graphviz  -DGRAPHVIZ_MAJOR=not  
> Referenced Reason: -DGRAPHVIZ_MINOR=not Referenced Reason:  - 
> DHAVE_STDBOOL_H=1 -DHAVE_BOOL=1 -msse3    -fPIC  -g -O2 - 
> march=nocona -c LL_funcs.c -o LL_funcs.o

This looks like cross-compiling. "-arch <whatever> -isysroot  
<whereever>" should not be used when compiling for the native target.  
The errors below come from something faulty as noted first:

> i686-apple-darwin8-gcc-4.0.1: Referenced: No such file or directory
> i686-apple-darwin8-gcc-4.0.1: Reason:: No such file or directory
> i686-apple-darwin8-gcc-4.0.1: Referenced: No such file or directory
> i686-apple-darwin8-gcc-4.0.1: Reason:: No such file or directory

The other errors can be due to incorrectly using -isysroot. You  
should find the reason for this. Did you look into the configure.log  
file?

>
> locale:
> en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

*This* value cannot be correct.

--
Greetings

   Pete

If all else fails read the instructions.
                                          - Donald Knuth



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list