Question: samtools installation errors
0
gravatar for saj98
8 weeks ago by
saj9850
saj9850 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 • 219 views
ADD COMMENTlink modified 8 weeks ago by fishka20 • written 8 weeks ago by saj9850
1
gravatar for fishka
8 weeks ago by
fishka20
fishka20 wrote:

try

make clean


make


sudo make install
ADD COMMENTlink modified 8 weeks ago • written 8 weeks ago by fishka20

Thank you I got it

ADD REPLYlink written 8 weeks ago by saj9850
0
gravatar for fishka
8 weeks ago by
fishka20
fishka20 wrote:

you have to add sudo

sudo make install

ADD COMMENTlink written 8 weeks 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 8 weeks ago by saj9850

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 8 weeks ago by Charles Plessy2.3k
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: 1498 users visited in the last hour