Closed GoogleCodeExporter closed 8 years ago
same issue on 10.9.5; any solutions?
Original comment by wac...@gmail.com
on 27 Nov 2014 at 12:07
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
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
Original comment by homer...@gmail.com
on 26 Jan 2015 at 4:49
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
Original issue reported on code.google.com by
simsu...@gmail.com
on 29 Oct 2014 at 12:07