【centos】error: uuid/uuid.h: No such file or directory

error: uuid/uuid.h: No such file or directory



参考

http://blog.csdn.net/wxy8402/article/details/6902871



[root@iCentos7 cpp]# yum install uuid uuid-devel

已加载插件:axelget, fastestmirror, langpacks
No metadata available for base
No metadata available for epel
No metadata available for extras
No metadata available for mosquito-myrepo
No metadata available for mysql-connectors-community
No metadata available for mysql-tools-community
No metadata available for mysql56-community
No metadata available for nginx
No metadata available for updates
Loading mirror speeds from cached hostfile
 * base: mirrors.cug.edu.cn
 * epel: mirrors.neusoft.edu.cn
 * extras: mirrors.cug.edu.cn
 * updates: mirrors.cug.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 uuid.x86_64.0.1.6.2-26.el7 将被 安装
---> 软件包 uuid-devel.x86_64.0.1.6.2-26.el7 将被 安装
--> 解决依赖关系完成


依赖关系解决                                       塔机配件大全


====================================================================================================
 Package                  架构                 版本                        源                  大小
====================================================================================================
正在安装:
 uuid                     x86_64               1.6.2-26.el7                base                55 k
 uuid-devel               x86_64               1.6.2-26.el7                base                24 k


事务概要
====================================================================================================
安装  2 软件包


总下载量:79 k
安装大小:138 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): uuid-devel-1.6.2-26.el7.x86_64.rpm                                    |  24 kB  00:00:00     
(2/2): uuid-1.6.2-26.el7.x86_64.rpm                                          |  55 kB  00:00:00     
----------------------------------------------------------------------------------------------------
总计                                                                127 kB/s |  79 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : uuid-1.6.2-26.el7.x86_64                                                        1/2 
  正在安装    : uuid-devel-1.6.2-26.el7.x86_64                                                  2/2 
  验证中      : uuid-devel-1.6.2-26.el7.x86_64                                                  1/2 
  验证中      : uuid-1.6.2-26.el7.x86_64                                                        2/2 


已安装:
  uuid.x86_64 0:1.6.2-26.el7                    uuid-devel.x86_64 0:1.6.2-26.el7                   


完毕!

[root@iCentos7 cpp]# 


[root@iCentos7 cpp]# mkdir /usr/include/uuid
[root@iCentos7 cpp]#  cp /usr/include/uuid.h  /usr/include/uuid/
[root@iCentos7 cpp]# yum install e2fsprogs-devel  
已加载插件:axelget, fastestmirror, langpacks
No metadata available for base
No metadata available for epel
No metadata available for extras
No metadata available for mosquito-myrepo
No metadata available for mysql-connectors-community
No metadata available for mysql-tools-community
No metadata available for mysql56-community
No metadata available for nginx
No metadata available for updates
Loading mirror speeds from cached hostfile
 * base: mirrors.cug.edu.cn
 * epel: mirror01.idc.hinet.net
 * extras: mirrors.cug.edu.cn
 * updates: mirrors.cug.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 e2fsprogs-devel.x86_64.0.1.42.9-4.el7 将被 安装
--> 解决依赖关系完成


依赖关系解决


====================================================================================================
 Package                      架构                版本                      源                 大小
====================================================================================================
正在安装:
 e2fsprogs-devel              x86_64              1.42.9-4.el7              base               70 k


事务概要
====================================================================================================
安装  1 软件包


总下载量:70 k
安装大小:161 k
Is this ok [y/d/N]: y
Downloading packages:
e2fsprogs-devel-1.42.9-4.el7.x86_64.rpm                                      |  70 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : e2fsprogs-devel-1.42.9-4.el7.x86_64                                             1/1 
  验证中      : e2fsprogs-devel-1.42.9-4.el7.x86_64                                             1/1 


已安装:
  e2fsprogs-devel.x86_64 0:1.42.9-4.el7                                                             


完毕!
[root@iCentos7 cpp]# yum install libuuid libuuid-devel
已加载插件:axelget, fastestmirror, langpacks
No metadata available for base
No metadata available for epel
No metadata available for extras
No metadata available for mosquito-myrepo
No metadata available for mysql-connectors-community
No metadata available for mysql-tools-community
No metadata available for mysql56-community
No metadata available for nginx
No metadata available for updates
Loading mirror speeds from cached hostfile
 * base: mirrors.cug.edu.cn
 * epel: mirrors.neusoft.edu.cn
 * extras: mirrors.cug.edu.cn
 * updates: mirrors.cug.edu.cn
软件包 libuuid-2.23.2-16.el7.x86_64 已安装并且是最新版本
正在解决依赖关系
--> 正在检查事务
---> 软件包 libuuid-devel.x86_64.0.2.23.2-16.el7 将被 安装
--> 解决依赖关系完成


依赖关系解决


====================================================================================================
 Package                    架构                版本                        源                 大小
====================================================================================================
正在安装:
 libuuid-devel              x86_64              2.23.2-16.el7               base               81 k


事务概要
====================================================================================================
安装  1 软件包


总下载量:81 k
安装大小:17 k
Is this ok [y/d/N]: y
Downloading packages:
libuuid-devel-2.23.2-16.el7.x86_64.rpm                                       |  81 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : libuuid-devel-2.23.2-16.el7.x86_64                                              1/1 
  验证中      : libuuid-devel-2.23.2-16.el7.x86_64                                              1/1 


已安装:
  libuuid-devel.x86_64 0:2.23.2-16.el7                                                              


完毕!
[root@iCentos7 cpp]# 

你可能感兴趣的:(linux菜鸟手记)