How can I compile the libmesos.so file?

I am working on elasticsearch on meso. I want to set up elasticsearch-mesos on my local machine running ubuntu. I did it according to the documentation for meso. Also I am setting up elasticsearch according to the instructions here . When I start elasticsearch I get the error

Failed to load native Mesos library from /home/me/workspace/mesos-  
0.20.1/src/java/generated/org/apache/mesos
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: no mesos in   
java.library.path  

      

After searching the internet for a while, I tried to change the path to / usr / local / lib and some other java paths, but then I saw that looking for it in I referenced some SO posts like this , but I couldn't find libmesos.so anywhere in the mesos directory or on my filesystem but found libmesos.la. Can libmesos.so be compiled from libmesos.la?

+3


source to share


2 answers


Try to create again according to the get_started meso guide. This will create libmesos.so. You may need to provide root privilleges during make install.



+3


source


Download this file and extract it. You will find the compiled libmesos.so file. Copy it to some place like / usr / local / lib and edit the mesos.yml file to point java.library.path to that file. Hope this solves your problem.



+2


source







All Articles