This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Install STAR on MacBook Pro M1

I am trying to install STAR aligner using MacBook Pro M1, but the following error appears and installation does not work.

g++-13: error: unrecognized command-line option '-mavx2'

How can I solve this?

If I cannot use STAR, please recommend another tool that is compatible with M1 pro.

star genomics macbookprom1

Are you generally conversant compiling software on MacBook machines?

Let's download the source code directly and try compiling it for the m1 chip. thank you

I think there's an error in translation. What do you mean by "let's"?

Please provide more details of how you are trying to install

4 answers

Use conda (LINK). Once this is installed installing STAR is a matter of doing

$ conda create -n star star
$ conda activate star

Also, you can use the Docker container biocontainers/star with Colima on Mac

First, various problems occurred because STAR alinger and another tool with the same name, STAR, were installed on my MacBook computer, and I wasted a lot of time because I was not aware of this fact. Fortunately, I was able to solve the problem later by confirming that a different program with the same name was installed. Regarding the problem caused by the MacBook Pro M1 chipset, I was able to take a hint from the answer above and download the STAR source code directly, compile it, and successfully install the STAR aligner.

https://github.com/alexdobin/STAR/blob/master/doc/STARmanual.pdf

There's a whole section describing install on a Mac in the STAR github README https://github.com/alexdobin/STAR#compile-under-mac-os-x. I would try Homebrew or Docker for running STAR on your Mac. But my main concern/question is why are you going to run STAR on a mac? Do you have sufficient memory to support read alignment?

Log in to answer this question.