Question: htslib installation problem
0
gravatar for kabir.deb0353
12 months ago by
kabir.deb03530 wrote:

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 busco augustus • 692 views
ADD COMMENTlink modified 12 months ago • written 12 months ago by kabir.deb03530

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 REPLYlink written 12 months ago by Vijay Lakhujani4.2k

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

ADD REPLYlink modified 12 months ago • written 12 months ago by kabir.deb03530
1

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 REPLYlink written 12 months ago by WouterDeCoster40k
3
gravatar for finswimmer
12 months ago by
finswimmer11k
Germany
finswimmer11k wrote:

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 COMMENTlink modified 12 months ago • written 12 months ago by finswimmer11k
0
gravatar for Arindam Ghosh
12 months ago by
Arindam Ghosh160
India
Arindam Ghosh160 wrote:

Seems like you need ROOT privilege.

ADD COMMENTlink written 12 months ago by Arindam Ghosh160
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: 1465 users visited in the last hour