deweylab / RSEM

RSEM: accurate quantification of gene and isoform expression from RNA-Seq data
http://deweylab.biostat.wisc.edu/rsem/
GNU General Public License v3.0
410 stars 118 forks source link

Compile on Mac #162

Open ghost opened 3 years ago

ghost commented 3 years ago

I am trying to compile on Mac Catalina with make ebseq and I get this error:

Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
opt_par_ss_com.f90:366:24:

  364 |   call intpr("iter", -1, iter, 1)
      |                         2
  365 |   call intpr("nclu", -1, nclu, k)
  366 |   call intpr("clu", -1, clu, n)
      |                        1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
make[2]: *** [opt_par_ss_com.o] Error 1
ERROR: compilation failed for package ‘blockmodeling’
* removing ‘/Users/brian/tools/RSEM/EBSeq/blockmodeling’

Then it keeps compiling and I get this error: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Then I get:

ERROR: dependency ‘blockmodeling’ is not available for package ‘EBSeq’
* removing ‘/Users/brian/tools/RSEM/EBSeq/EBSeq’
Failed to install EBSeq v1.2.0 locally!

I tried alias my gcc to homebrew many ways but terminal still blinks with "gfortran f951 clang" and get same errors.

ghost commented 3 years ago

looks related to @https://github.com/Unidata/netcdf-fortran/issues/212

joelnitta commented 2 years ago

Have you tried installing blockmodeling from R directly before running make ebseq? That solved the problem for me.

You can either do it interactively at the R terminal, or with

Rscript -e 'install.packages("blockmodeling")'