This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Help Compiling STAR

Hi All,

I am trying to compile STAR on my PC lab top. I am using Ubuntu 20.04 LTS. I have the STAR source code on the computer. Trying to run

landrjos@DESKTOP-GDG318A:/mnt/c/Program Files/Bioinformatics/STAR-2.7.7a/source$ make STAR

and I get the following error:

make -C htslib lib-static
make[1]: Entering directory '/mnt/c/Program Files/Bioinformatics/STAR-2.7.7a/source/htslib'
cc -g -Wall -O2  -I. -DSAMTOOLS=1 -c -o kfunc.o kfunc.c
make[1]: cc: Command not found
make[1]: *** [Makefile:99: kfunc.o] Error 127
make[1]: Leaving directory '/mnt/c/Program Files/Bioinformatics/STAR-2.7.7a/source/htslib'
Makefile:111: Depend.list: No such file or directory
make: *** [Makefile:121: htslib/libhts.a] Error 2

Any suggestions?

I tried the following:

sudo apt install gcc
sudo apt install build-essential
sudo apt-get update
sudo apt-get install libz-dev

still get the same error.

star

You can also try installing via conda to resolve dependencies: conda install -c bioconda star

1 answer

install the gnu c compiler.

sudo apt install build-essential

Log in to answer this question.