Problem installing zmq on amazon linux (could not find uuid)

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__ /* workaround conflicts with system headers */ #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.

+6
source share
3 answers

ultimately, I satisfied the addiction by running

 $ yum install uuid-devel 

It is also worth noting that in order for libzmq to communicate with other programs that needed it along the line (for example, Mongrel2), I had to add the line

 /usr/local/lib 

in / etc / ldconfig.so.conf and run

 $ ldconfig -v | grep zmq 

(if you do not see the entry for libzmq.so in the output, something is turned off)

+7
source

As stated in https://bugzilla.redhat.com/show_bug.cgi?id=576296#c0 , use libuuid-devel instead of uuid-devel,

 $ sudo yum install libuuid-devel 

This resolved the missing /usr/include/uuid/uuid.h file for me.

+19
source

Alternatively, read the zeromq installation documentation! :)

i.e.

Make sure libtool , autoconf , automake installed. Check if uuid-dev package, uuid / e2fsprogs RPM or equivalent is installed on your system. Unzip the source .tar.gz archive. Run ./configure and then make . To install the system start ØMQ sudo make install . On Linux, run sudo ldconfig after installing ØMQ.

As already mentioned, on Amazon Linux you must install deps by doing:

 sudo yum install uuid uuid-devel 

NB the instructions also indicate the requirement:

 sudo ldconfig 

after installation too.

0
source

Source: https://habr.com/ru/post/894329/


All Articles