htslib installation problem
2
1
Entering edit mode
5.8 years ago
kabir.deb ▴ 80

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.

htslib Augustus Busco • 4.7k views
ADD COMMENT
0
Entering edit mode

Hello kabir.deb0353,

Please use the formatting bar (especially the code option) to present your post better. I've done it for you this time.
code_formatting

Thank you!

ADD REPLY
0
Entering edit mode

Thank you every one for the suggestions, the problem has been solved by using sudo make install.

ADD REPLY
1
Entering edit mode

If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.
Upvote|Bookmark|Accept

ADD REPLY
3
Entering edit mode
5.8 years ago

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

ADD COMMENT
0
Entering edit mode
5.8 years ago
Arindam Ghosh ▴ 510

Seems like you need ROOT privilege.

ADD COMMENT

Login before adding your answer.

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