How can I fix "uuid/uuid.h - No such file" error in CentOS

7

I am running CentOS 7 (64 bit). I am trying to build a project and I am getting this error.

fatal error: uuid/uuid.h: No such file or directory
 #include <uuid/uuid.h>
                       ^
compilation terminated.
make: *** [all] Error 1

Is this related to a missing package? I have already installed uuid-devel. What package should I install to fix this problem? Thanks!

SyncMaster

Posted 2017-02-06T20:12:53.107

Reputation: 1 399

I was missing the same while trying to compile Syslinux for aarch64. – Dan – 2017-04-11T14:49:58.900

Answers

11

Installing the development package libuuid-devel as suggested here, fixed the issue.

sudo yum install libuuid libuuid-devel

SyncMaster

Posted 2017-02-06T20:12:53.107

Reputation: 1 399

It is libuuid-devel, not libuuid-devl – fpmurphy – 2017-10-09T15:47:18.950

what about old centos 5? – confiq – 2017-11-22T16:52:13.893

The suggested solution works; dear OP, please mark it as "accepted", or justify why you haven't done so yet. – ralien – 2018-04-27T07:56:29.257

This works. Hit this bug when trying to build rpms for mod_gearman on Centos 7 – Ram Prasad – 2019-10-04T22:22:47.110