Environmental Science:
Ubuntu18. 04×86-64
Error phenomenon:
When compiling ffmpeg code, the following errors sometimes occur:
libavformat/http.c:25:10: fatal error: zlib.h: Not having that file or directory
#include <zlib.h>
Solution:
Enter the following on the command line
sudo apt-get install zlib1g-dev
Press enter to execute, and the following output appears:
Reading the package list... Done
Analyzing the dependency tree of the package
Reading status information... Done
The following [new] packages will be installed.
zlib1g-dev
0 packages upgraded, 1 new package installed, 0 packages to uninstall, and 316 packages not upgraded.
176 kB of archives need to be downloaded.
Unpacking will consume 457 kB of additional space.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2 [176 kB]
Downloaded 176 kB in 2 seconds (82.2 kB/s)
Unselected package zlib1g-dev:amd64 is being selected.
(Database is being read ... The system currently has 149705 files and directories installed.)
Preparing to unpack ... /zlib1g-dev_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
Working on triggers for man-db (2.8.3-2ubuntu0.1) ...
Problem solving
Read More:
- Fatal error: sys/cdefs.h: No such file or directory
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- [Solved] fatal error: linux/videodev.h: No such file or directory
- [Solved] Fatal error: GLOG/logging. H: there is no such file or directory
- [Solved] fatal error: openssl/hmac.h: No such file or directory
- [Solved] xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory #include <expat.h>
- [Solved] fatal error: jemalloc/jemalloc.h: No such file or directory
- [Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] Denseflow Install Error: fatal error: opencv2/cudaarithm.hpp: No such file or directory
- [How to Solve] ffprobe ‘***: No such file or directory‘
- [Solved] tar (child): bzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: ex
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- [Solved] FATAL CONFIG FILE ERROR: Bad directive or wrong number of arguments
- [Solved] Ubuntu Compile AOSP Error: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] gcc: error trying to exec ‘cc1‘: execvp: No such file or directory
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory