compilation terminated when R package installation in linux without superuser permission
0
0
Entering edit mode
3.4 years ago
whaiyu06 ▴ 80

Hello,

I met a problem when I installed R package "spp" in linux without superuser permission. The error was "bed2vector.cpp:15:10 fatal error: bzliv.h: No such file or directory

#include <bzlib.h>

^~~~~~~~~~~~
compilation terminated.
make : *** [/public/home/yyusy/software/anaconda3/envs/lib/R/etc/Makeconf:176: bed2vector.o] Error 1
ERROR : compilation failed for package 'spp'  "

How can I install the libarary of "libbz2” manually without the permission of sudo ?

r spp bzlib • 1.5k views
ADD COMMENT
0
Entering edit mode

which command line did you use?

ADD REPLY
0
Entering edit mode

Since you are already using conda as it seems you can either install the package (spp) itself via conda, or install the dependencies with it, e.g. https://anaconda.org/anaconda/bzip2 and then try to compile the R package again.

The old fashioned way would be to compile bzip2 from source https://www.sourceware.org/bzip2/downloads.html

ADD REPLY
0
Entering edit mode

Thanks a lot. There was another wrong messeage of a new dependent library when I installed libbz2 and I installed the new library file according to the err hint but another new issue occured. There are so many interdependent header files , it seems too verbose to settle these errors.

ADD REPLY

Login before adding your answer.

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