[bug] build problem: compiler is
1
0
Entering edit mode
d.lituiev • 0
@dlituiev-8690
Last seen 8.6 years ago
United States

I am trying to build `DESeq2` module from Bioconductor in `dev_mode`.

`install.packages("/Users/dlituiev/repos/DESeq2", repos = NULL, type = "source")`

 

I am getting:

```

* installing *source* package ‘DESeq2’ ...
** libs
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/RcppArmadillo/include"   -fPIC  -Wall -mtune=core2 -g -O2  -c DESeq2.cpp -o DESeq2.o
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/RcppArmadillo/include"   -fPIC  -Wall -mtune=core2 -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o DESeq2.so DESeq2.o RcppExports.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2 -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [DESeq2.so] Error 1
ERROR: compilation failed for package ‘DESeq2’
* removing ‘/Users/dlituiev/R-dev/DESeq2’
Warning in install.packages :
  installation of package ‘/Users/dlituiev/repos/DESeq2’ had non-zero exit status

```

System: MacOSX. My gcc4.8 is installed in `/usr/local/Cellar/gcc48/4.8.5/lib/gcc/4.8/`. Where can I see makefile or something of that sort which calls the compile command?

DESeq2 • 906 views
ADD COMMENT
0
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 6 months ago
United States

The error says you are  missing gfortran. You can install it from here:

http://r.research.att.com/gfortran-4.2.3.dmg

If you don't need to build it from source, Bioconductor also supplies a binary version, which you can install as follows:

source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")

 

ADD COMMENT

Login before adding your answer.

Traffic: 468 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6