我试图在EC2上安装AMI,并且目前正在停止建设0mq。
最初,我在运行./configure时遇到了这个错误
checking for uuid_generate in -luuid... no
configure: error: cannot link with -luuid, install uuid-dev.我通过yum安装了e2fsprogs-devel和linux-utils,我相信它包含了所需的库,但仍然出现了上述错误。随后我用yum安装uuid-devel并没有进一步的了解。
然后,我创建了一个链接如下:
sudo ln -s /lib64/libuuid.so.1.3.0 /lib64/libuuid.so现在./configure快乐地完成了,但是当我运行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以下是/usr/include/uuid.h的开头,如果这很有用的话。
#ifndef __UUID_H__
#define __UUID_H__
/* workaround conflicts with system headers */
#define uuid_t __vendor_uuid_t
#define uuid_create __vendor_uuid_create
#define uuid_compare __vendor_uuid_compare
#include
#include
#undef uuid_t
#undef uuid_create
#undef uuid_compare在这一点上,我很困难。