Question: samtools installation errors
0
gravatar for saj98
11 months ago by
saj9880
saj9880 wrote:

Hello everyone I am trying to install samtools version 1.6 I downloaded it from the following resource [https://sourceforge.net/projects/samtools/files/samtools/1.6/]. Then I run the following command ./configure , so it came fine with no error. Then I run make, it came fine with no error. When I run make install . It gave the following error shaima@sarkarlab-MS-7885-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/samtools-1.6$ make install, the error is mkdir -p -m 755 /usr/local/bin /usr/local/bin /usr/local/share/man/man1 install -p samtools /usr/local/bin install: cannot create regular file '/usr/local/bin/samtools': Permission denied Makefile:292: recipe for target 'install' failed make: *** [install] Error 1

I appreciate your help and time

software error • 908 views
ADD COMMENTlink modified 11 months ago by fishka20 • written 11 months ago by saj9880
1
gravatar for fishka
11 months ago by
fishka20
fishka20 wrote:

try

make clean


make


sudo make install
ADD COMMENTlink modified 11 months ago • written 11 months ago by fishka20

Thank you I got it

ADD REPLYlink written 11 months ago by saj9880
0
gravatar for fishka
11 months ago by
fishka20
fishka20 wrote:

you have to add sudo

sudo make install

ADD COMMENTlink written 11 months ago by fishka20

I did it, but now gave me the following error cd htslib-1.6 && make htslib_static.mk make[1]: Entering directory '/home/shaima/Downloads/samtools-1.6/htslib-1.6' sed -n '/^static_libs=/s/[^=]*=/HTSLIB_static_LIBS = /p;/^static_ldflags=/s/[^=]*=/HTSLIB_static_LDFLAGS = /p' htslib.pc.tmp > htslib_static.mk make[1]: Leaving directory '/home/shaima/Downloads/samtools-1.6/htslib-1.6' make: Nothing to be done for 'all'.

ADD REPLYlink written 11 months ago by saj9880

If you have administrator privileges (and therefore can use sudo) you can also try to install samtools from your package manager. For instance on Debian and Ubuntu: sudo apt install samtools. It may not be the latest version, though backports often get eventually provided.

ADD REPLYlink written 11 months ago by Charles Plessy2.5k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1336 users visited in the last hour