Linux error: Fatal error:uuid/uuid.h:no such file or Directory__linux

Source: Internet
Author: User
Tags uuid

Another error occurred after configure: fatal error:uuid/uuid.h:no such file or directory

This is because there is no UUID library and header file, you need to install e2fsprogs, try the Yum command installation, the problem is not resolved, you need to compile from the source code

wget http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.41.14.tar.gz

Tar xvzf e2fsprogs-1.41.14.tar.gz

Execute after entering e2fsprogs-1.41.14 directory

/configure--prefix=/usr/local/e2fsprogs

Make

Make install

And then handcuff the UUID directory to the past.

Cp-r Lib/uuid//usr/include/

Configure again, the error disappears, so execute make

and the error:

libgearman/.libs/libgearman.so:undefined reference to ' uuid_generate '

libgearman/.libs/libgearman.so:undefined reference to ' Uuid_unparse ' Collect2:ld returned 1 exit status

The problem is to find a solution on the Internet, which is to recompile the e2fsprogs and add parameters

CD e2fsprogs-1.41.14

./configure--enable-elf-shlibs

Make

Make install

CP-RF lib/libuuid.so*/usr/lib

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.