I am trying to build AMI on EC2, and currently I am focusing on creating 0mq.
Initially, I got this error while working. / configure
checking for uuid_generate in -luuid... no configure: error: cannot link with -luuid, install uuid-dev.
I installed e2fsprogs-devel and linux-utils via yum, which I believe contains the required library, but still got the error above. Subsequently, I installed uuid-devel with yum and did not get any more.
Then I created a link as shown below:
sudo ln -s /lib64/libuuid.so.1.3.0 /lib64/libuuid.so
and now. / configure succeeds, but I get an error when running make
[...] CXX libzmq_la-signaler.lo CXX libzmq_la-socket_base.lo In file included from socket_base.cpp:50: uuid.hpp:31:23: error: uuid/uuid.h: No such file or directory In file included from socket_base.cpp:50: uuid.hpp:92: error: 'uuid_t' in namespace '::' does not name a type make[2]: *** [libzmq_la-socket_base.lo] Error 1 make[2]: Leaving directory `/home/this/infrastructure/zeromq2-2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/this/infrastructure/zeromq2-2/src' make: *** [all-recursive] Error 1
The following is the start of /usr/include/uuid.h, if useful.
#ifndef __UUID_H__ #define __UUID_H__ #define uuid_t __vendor_uuid_t #define uuid_create __vendor_uuid_create #define uuid_compare __vendor_uuid_compare #include <sys/types.h> #include <unistd.h> #undef uuid_t #undef uuid_create #undef uuid_compare
At this moment, I am very excited.
source share