uuid.h: No such file or directory
Last month, I tried installing Apache2 in my Macbook using MacPorts. The installation failed in the installation of a dependency apr, and port install ended with this error:
misc/unix/rand.c:39:18: error: uuid.h: No such file or directory
make[1]: *** [misc/unix/rand.lo] Error 1
make: *** [all-recursive] Error 1
I never solved this problem after all the googling I did. I gave up on installing Apache2.
But the problem emerged again when I tried installing the py25-gtk package, a dependency of TinyERP. I installed ossp-uuid. Nope. That didn't solve the problem. After looking around the include folders, I found the built-in uuid.h in /usr/include/uuid/. I tried linking uuid.h to the include directory:
~$ cd /usr/include
/usr/include$ sudo ln -nfs uuid/uuid.h uuid.h
It worked. The compilation went smoothly.
Now all that's left to do is hope that everything will work out fine.



