I was trying install htslib as dependencies for Auggustus. I have followed
cd htslib/
autoheader
autoreconf
./configure
make
make install
I got stuck in the last step (make install); it was showing that,
mkdir -p -m 755 /usr/local/bin /usr/local/include /usr/local/include/htslib /usr/local/lib /usr/local/share/man/man1 /usr/local/share/man/man5 /usr/local/lib/pkgconfig
if test -n ""; then mkdir -p -m 755 ; fi
install -p -m 644 libhts.so /usr/local/lib/libhts.so.1.8
install: cannot remove '/usr/local/lib/libhts.so.1.8': Permission denied
Makefile:454: recipe for target 'install-so' failed
make: *** [install-so] Error 1
I couldn't understand what is the problem, PLEASE HELP.
2 answers
Hello,
the problem is described in this line:
install: cannot remove '/usr/local/lib/libhts.so.1.8': Permission denied
make install makes changes on files located in areas that need root permission.
If you are on Ubuntu you need to run make install with sudo.
But at all, I don't like to install programs without using the package manager of the system. So first have a look if the package isn't available through your package manager. If you realy need to build htslib use the --prefix option in the configure step to define where the package should be installed. This should be a folder in the home folder of the user or a subfolder of /opt.
fin swimmer
Seems like you need ROOT privilege.
Log in to answer this question.
Hello kabir.deb0353,
Please use the formatting bar (especially the

codeoption) to present your post better. I've done it for you this time.Thank you!
Thank you every one for the suggestions, the problem has been solved by using
sudo make install.If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.
