Help Compiling STAR
1
0
Entering edit mode
3.9 years ago

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 • 2.1k views
ADD COMMENT
1
Entering edit mode

Why not use the binary ?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode
3.9 years ago

install the gnu c compiler.

sudo apt install build-essential
ADD COMMENT

Login before adding your answer.

Traffic: 1672 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