How to solve the configure error: No uuid_create or uuid_generate function in library libuuid or uuidgen function present

How to solve the configure error: No uuid_create or uuid_generate function in library libuuid or uuidgen function present

When trying to run the ./configure file in a project that uses make, you will likely to find the following error:

error: No uuid_create or uuid_generate function in library libuuid or uuidgen function present

Specifically when the development package of libuuid isn't installed on your system, so you won't be able to compile. Depending on your environment, the installation will vary.

Cygwin (windows)

If you are in Windows using Cygwin, you will need to re-run the setup of Cygwin and include the following libraries:

  • libuiid-devel
  • libuiid1
  • uuidd

As shown in the following image, be sure to select the latest version:

UUID Package Cygwin

Then click on next and install the packages, this should solve the problem that you have with this dependency.

Debian/Ubuntu

If you are using a debian based distro, you may simply install the library with the following command using apt-get:

sudo apt-get install uuid-dev

This should solve the problem in this environment.

RedHat/Fedora/CentOS

Alternatively if you are working on CentOS, install it using yum:

sudo yum install libuuid-dev

Happy coding ❤️!

This could interest you

Become a more social person