SHZ66 / zinba

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

Installation problem with MAC OS X 10.10 #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1) What operating system are you using?
OS X 10.10

2) What error message was displayed?
- Warning message: package ‘multicore’ is not available (for R version 
3.1.1)  
-> install.packages("zinba_2.01.tar.gz", repos=NULL) 
Installing package into ‘/Users/simsuede/Library/R/3.1/library’
(as ‘lib’ is unspecified) Error: file ‘zinba_2.01.tar.gz’ is not an OS 
X binary package

3) What was the exact command you used that resulted in the error?
system("wget http://zinba.googlecode.com/files/zinba_2.01.tar.gz")
install.packages(c('multicore','doMC','foreach','quantreg','R.utils'))
install.packages("zinba_2.01.tar.gz", repos=NULL)

R version 3.1.1
Xcode Version 6.1 with Xcode Command Line Tools for Mac OS X Yosemite

I also tried to switch to the older version of R 2.15 as suggested

Original issue reported on code.google.com by simsu...@gmail.com on 29 Oct 2014 at 12:07

GoogleCodeExporter commented 8 years ago
same issue on 10.9.5; any solutions?

Original comment by wac...@gmail.com on 27 Nov 2014 at 12:07

GoogleCodeExporter commented 8 years ago
Zinba need C compiler (gcc and g++) to install, doesn’t work when using 
clang/clang++ (Mac default). To install gcc and g++, you need first install 
lasted version of Xcode from app market, then install its developer tools from 
Terminal.
Then, edit the file ~/.R/Makevars
Originally, it was like:

CC=clang
CXX=clang++ -stdlib=libstdc++
CFLAGS=-mtune=native -Wall -pedantic -Wconversion
CXXFLAGS=-mtune=native -Wall -pedantic -Wconversion
FLIBS=-lgfortran

Need to be changed to:

CC = gcc -arch x86_64 -std=gnu99
CXX = g++ -arch x86_64
CXXCPP = g++ -arch x86_64 -E
FC = gfortran -arch x86_64
F77 = gfortran -arch x86_64
OBJC = clang -arch x86_64
OBJCXX = clang++ -arch x86_64
CFLAGS=-g -O -mtune=native
CXXFLAGS=-g -O -mtune=native
FFLAGS=-g -O -mtune=native
FLIBS=-lgfortran

Then, install it using the command “R CMD INSTALL zinba_2.01.tar.gz” in 
terminal

Original comment by slykua...@gmail.com on 14 Jan 2015 at 3:50

GoogleCodeExporter commented 8 years ago
Thank you for this.  If you also obtain an error similar to 

In file included from analysis.cc:18:
./analysis.h:10:10: fatal error: 'ext/slist' file not found

you can change 

CXX = g++ -arch x86_64

to 

CXX = g++ -arch x86_64  -stdlib=libstdc++

to avoid the issue.  We are currently trying to remove legacy code in the 
buildwindows step to avoid these sorts of issues.

Original comment by homer...@gmail.com on 26 Jan 2015 at 4:31

GoogleCodeExporter commented 8 years ago

Original comment by homer...@gmail.com on 26 Jan 2015 at 4:49

GoogleCodeExporter commented 8 years ago
How do you install the developer tools of Xcode from terminal? And also how do 
you go about editing the file ~/.R/Makevars? Do you do this through terminal?

Original comment by rushm...@umbc.edu on 29 May 2015 at 5:58