Error message
Operating system: Ubuntu 20.04 64 bit
An error occurred while installing rhtslib package. Error message:
> BiocManager::install("Rhtslib")
cram/cram_io.c:61:10: fatal error: lzma.h: No such file or directory
61 | #include <lzma.h>
| ^~~~~~~~
compilation terminated.
make[1]: *** [Makefile.Rhtslib:128: cram/cram_io.o] Error 1
make[1]: Leaving directory '/tmp/Rtmp428cj4/R.INSTALL14a4e8febbab/Rhtslib/src/htslib-1.7'
make: *** [Makevars.common:24: htslib] Error 2
ERROR: compilation failed for package ‘Rhtslib’
* removing ‘/usr/local/lib/R/site-library/Rhtslib’
The downloaded source packages are in
‘/tmp/RtmpcHBCud/downloaded_packages’
Solution:
Generally, the compilation fails due to the lack of packages in the system. Solve such problems by installing libbz2 dev, zlib1g Dev and liblzma dev:
sudo apt-get install libbz2-dev
sudo apt-get install zlib1g-dev
sudo apt-get install liblzma-dev
Read More:
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- [Solved] ROS fatal error: alsa/asoundlib. h: There is no such directory or file
- [Solved] fatal error: bits/libc-header-start.h: No such file or directory
- fatal error: libusb.h: No such file or directory [How to Solve]
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- [Solved] src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory
- C++: fatal error: variant: No such file or directory
- crtdbg.h No such file or directory error [How to Solve]
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- [Solved] fatal error: Eigen/Geometry: No such file or directory
- Redis installation error: jemalloc/jemalloc.h: No such file or directory.
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- [Solved] Linux Start jar Error: nohup: failed to run command ‘java‘: No such file or directory