报错: fatal error: check.h: No such file or directory

报错:

./src/tests.c:15:19: fatal error: check.h: No such file or directory
 #include 
                   ^
compilation terminated.
make: *** [example.o] Error 1

解决方法:

sudo apt-get install check
root@ubuntu:/mnt/hgfs/Ubuntu12.04-share/minmea-master# sudo apt-get install check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  attr libaio1 libencode-locale-perl libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl liblwp-mediatypes-perl libnet-http-perl libwww-robotrules-perl libyaml-0-2 python-chardet-whl
  python-colorama python-colorama-whl python-distlib python-distlib-whl python-dnspython python-html5lib python-html5lib-whl python-setuptools-whl python-six-whl python-urllib3-whl
  python-wheel samba-dsdb-modules samba-vfs-modules tdb-tools
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  check
0 upgraded, 1 newly installed, 0 to remove and 699 not upgraded.
Need to get 117 kB of archives.
After this operation, 352 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu/ trusty/main check amd64 0.9.10-6ubuntu3 [117 kB]
Fetched 117 kB in 0s (551 kB/s) 
Selecting previously unselected package check:amd64.
(Reading database ... 175482 files and directories currently installed.)
Preparing to unpack .../check_0.9.10-6ubuntu3_amd64.deb ...
Unpacking check:amd64 (0.9.10-6ubuntu3) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up check:amd64 (0.9.10-6ubuntu3) ...
root@ubuntu:/mnt/hgfs/Ubuntu12.04-share/minmea-master# 
root@ubuntu:/mnt/hgfs/Ubuntu12.04-share/minmea-master# sudo apt-get install check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
check is already the newest version.
The following packages were automatically installed and are no longer required:
  attr libaio1 libencode-locale-perl libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl liblwp-mediatypes-perl libnet-http-perl libwww-robotrules-perl libyaml-0-2 python-chardet-whl
  python-colorama python-colorama-whl python-distlib python-distlib-whl python-dnspython python-html5lib python-html5lib-whl python-setuptools-whl python-six-whl python-urllib3-whl
  python-wheel samba-dsdb-modules samba-vfs-modules tdb-tools
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 699 not upgraded.

参考链接:
https://blog.csdn.net/zcf1002797280/article/details/50421336/

你可能感兴趣的:(Errors)