# Error compiling MATLink on Linux: /bin/ld: cannot find -luuid

Specifically how do you get a successful compilation of mengine? I tried the following:

sudo make -f Makefile.lin64

and got the following output:

set.cpp: In function ‘void eng_make_String(const short unsigned int*, int)’:
set.cpp:160:31: warning: narrowing conversion of ‘len’ from ‘int’ to ‘mwSize {aka long unsigned int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
mwSize mbDims[2] = {1, len};
^
In file included from /usr/include/c++/4.9.2/cassert:43:0,
from set.cpp:13:
set.cpp: In function ‘void eng_make_Struct()’:
set.cpp:192:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(mxGetNumberOfElements(var) == len);
^
/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status
Makefile.lin64:21: recipe for target 'mengine' failed
make: *** [mengine] Error 1
• Welcome! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – user9660 Sep 19 '16 at 8:41
• Don't use sudo for this, it should not be necessary. Even though in this case I could see what was wrong without additional information, please always give the following information with future requests: MATLAB version, Linux distro & version, gcc version, and the output of MATLinkDeveloperGetInfo[]. – Szabolcs Sep 19 '16 at 8:55