alexdobin / STAR

RNA-seq aligner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing STARsolo on M1 mac

jfoedfjwofa opened this issue · comments

Bioinformatics is not my area of expertise, so I'm sorry for the basic question.

I'm now trying to analyze my 10x scRNA-seq data using STARsolo according to the tutorial below, but facing problems at a very basic level.
https://github.com/alexdobin/STAR/blob/master/README.md

I executed the following command, but I got an error message.
wget https://github.com/alexdobin/STAR/archive/2.7.11b.tar.gz
tar -xzf 2.7.11b.tar.gz
cd STAR-2.7.11
cd source
make STARforMacStatic CXX=/usr/local/Cellar/gcc/14.0.0/bin/g++

date: illegal option -- -
usage: date [-jnRu] [-r seconds|file] [-v[+|-]val[ymwdHMS]]
[-I[date | hours | minutes | seconds]]
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
/usr/local/Cellar/gcc/14.0.0/bin/g++-14 -c -O3 -std=c++11 -fopenmp -D'COMPILATION_TIME_PLACE=" :/Users/*****/STAR-2.7.11b/source"' -D'GIT_BRANCH_COMMIT_DIFF=""' -D'COMPILE_FOR_MAC' -pipe -Wall -Wextra systemFunctions.cpp
make: /usr/local/Cellar/gcc/14.0.0/bin/g++-14: No such file or directory
make: *** [systemFunctions.o] Error 1

I checked my gcc version as follows;
gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

I'm conducting the experiment using Mac PC (Apple M1 Max).
I would really appreciate it if someone could give me some advice.

Sincerely,

Compiling STAR from source on Mac may be tricky.
I would recommend using the precompile binary or getting it from conda.

Thank you very much for your kind advice.
I was able to install it successfully via conda.