No manual entry for printf in section 3
Posted on 2019-11-04 18:30 SliverLee 阅读(1128) 评论(0) 编辑 收藏 举报在引入标准库头文件的时候,很多时候要先查询一下该函数所属的库,以及基本用法,在linux系统下,可以使用 man 1-9 函数名称
但是 问题来了,No manual entry for printf in section 3
那这个问题也很容易解决了,yum在线安装解决!!
[root@Zabbix-Server-192 tmp]#yum install -y man-pages
[root@Zabbix-Server-192 tmp]# yum install -y man-pages
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
zabbix | 2.9 kB 00:00:00
zabbix-non-supported | 951 B 00:00:00
(1/3): extras/7/x86_64/primary_db | 153 kB 00:00:00
(2/3): updates/7/x86_64/primary_db | 2.8 MB 00:00:00
(3/3): zabbix/x86_64/primary_db | 71 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package man-pages.noarch 0:3.53-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================================================================
Installing:
man-pages noarch 3.53-5.el7 base 5.0 M
Transaction Summary
==================================================================================================================================================================================================================================
Install 1 Package
Total download size: 5.0 M
Installed size: 4.6 M
Downloading packages:
man-pages-3.53-5.el7.noarch.rpm | 5.0 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : man-pages-3.53-5.el7.noarch 1/1
Verifying : man-pages-3.53-5.el7.noarch 1/1
Installed:
man-pages.noarch 0:3.53-5.el7
Complete!
下面以printf为例
再次执行 man 3 printf