SHZ66 / zinba

Automatically exported from code.google.com/p/zinba
1 stars 1 forks source link

Installation problems on Mac #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using Mac 10.8.1 Mountain Lion with Xcode version 4.4.1 installed. 

Followed directions exactly, running R from the terminal, not the GUI. Didn't 
get error during installation - only after loading the package:
> install.packages("zinba_2.01.tar.gz", repos=NULL) 
> library(zinba)
Error in library(zinba) : ‘zinba’ is not a valid installed package

When trying to install it via the command line, I get lots of compile-time 
errors:
* installing to library 
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
* installing *source* package ‘zinba’ ...
** libs
*** arch - i386
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG  
-I/usr/local/include    -fPIC  -g -O2  -c aliType.c -o aliType.o
In file included from aliType.c:2:
common.h:30:19: error: stdio.h: No such file or directory
common.h:31:20: error: stdlib.h: No such file or directory
common.h:33:20: error: string.h: No such file or directory
common.h:34:19: error: ctype.h: No such file or directory
common.h:35:23: error: sys/types.h: No such file or directory
common.h:36:22: error: sys/stat.h: No such file or directory
common.h:37:21: error: strings.h: No such file or directory
common.h:38:19: error: fcntl.h: No such file or directory
common.h:39:20: error: assert.h: No such file or directory
common.h:40:20: error: setjmp.h: No such file or directory
common.h:41:18: error: time.h: No such file or directory
common.h:42:18: error: math.h: No such file or directory
common.h:43:19: error: errno.h: No such file or directory
common.h:44:20: error: unistd.h: No such file or directory
common.h:45:20: error: libgen.h: No such file or directory
In file included from aliType.c:2:
common.h:178: error: expected ‘)’ before ‘size’
common.h:182: error: expected ‘)’ before ‘size’
common.h:186: error: expected ‘)’ before ‘size’
common.h:189: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:193: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:193: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:197: error: expected ‘)’ before ‘size’
common.h:200: error: expected ‘)’ before ‘size’
common.h:203: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:208: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:208: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:213: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:213: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:216: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:222: error: expected ‘)’ before ‘size’
common.h:819: error: expected ‘)’ before ‘*’ token
common.h:822: error: expected ‘)’ before ‘*’ token
common.h:825: error: expected ‘)’ before ‘*’ token
common.h:918: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ token
common.h:921: error: expected ‘)’ before ‘*’ token
common.h:927: error: expected ‘)’ before ‘*’ token
common.h:939: error: expected ‘)’ before ‘*’ token
common.h:944: error: expected ‘)’ before ‘*’ token
common.h:949: error: expected ‘)’ before ‘*’ token
common.h:952: error: expected ‘)’ before ‘*’ token
common.h:957: error: expected ‘)’ before ‘*’ token
common.h:960: error: expected ‘)’ before ‘*’ token
common.h:963: error: expected ‘)’ before ‘*’ token
common.h:966: error: expected ‘)’ before ‘*’ token
common.h:1028: error: expected ‘)’ before ‘*’ token
common.h:1038: error: expected ‘)’ before ‘*’ token
common.h:1048: error: expected ‘)’ before ‘*’ token
common.h:1058: error: expected ‘)’ before ‘*’ token
common.h:1068: error: expected ‘)’ before ‘*’ token
common.h:1088: error: expected ‘)’ before ‘*’ token
common.h:1091: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘fileSize’
common.h:1117: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:1120: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:1120: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:1124: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:1127: error: expected declaration specifiers or ‘...’ before 
‘size_t’
common.h:1127: error: expected declaration specifiers or ‘...’ before 
‘size_t’
aliType.c: In function ‘gfTypeName’:
aliType.c:16: error: ‘NULL’ undeclared (first use in this function)
aliType.c:16: error: (Each undeclared identifier is reported only once
aliType.c:16: error: for each function it appears in.)
make: *** [aliType.o] Error 1
ERROR: compilation failed for package ‘zinba’
* removing 
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/zinba’
* restoring previous 
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/zinba’

Original issue reported on code.google.com by vustep...@gmail.com on 29 Aug 2012 at 7:55

GoogleCodeExporter commented 8 years ago
I haven't seen a compilation problem like this yet.  It looks like for some 
reason your compiler cannot find the standard header files such as stdio.h, 
which is likely the source of the issue. 

Original comment by homer...@gmail.com on 3 Oct 2012 at 1:36

GoogleCodeExporter commented 8 years ago
Yes, that's what it looks like. I'm unfamiliar with compiling R code from 
source on Mac. Any clue as to how to resolve? Thanks.

Original comment by vustep...@gmail.com on 3 Oct 2012 at 1:44

GoogleCodeExporter commented 8 years ago
we are currently incorporating these issues into a new zinba version, check 
back soon for a comprehensive update

Original comment by homer...@gmail.com on 20 Nov 2012 at 8:54