Compile lsyncd with Lua at special location

June 11th, 2013 by bostjan

The Situation

First we installed latest Lua (5.2.2) from source. initials iphone 6 case We installed it into separate prefix: /usr/local/lua-5.2.2-1 Symlinks were made to point to actual locations from /usr/local/bin

The Symptoms

This symptom occured first:

It is BOGUS as anyone from the sky could see. Digging into configure and I first disabled this check altogether. iphone 7 plus phone cases charger iphone 8 plus case ultra thin iphone 7 phone cases drag race iphone 6 plus cover case iphone 7 phone cases ladies Then the next symptom occured:


The First Hope

It turns out that we need to set some variables, and we did. bentley iphone 7 case As with any normal software you can point it to the actual software locations, like this:

But the same error persisted. iphone 6 case snugg blue iphone 6 cases with screen cover WTF #2? Digging into config.log, debugging around for an hour and to our surprise we found… pdair iphone x case iphone 6 lighter case 360 shockproof iphone 8 case

The Solution

What is actually going on is lsyncd being lazy. iphone 7 thin battery case gaming phone case iphone x Outright lazy! It turns out that you not only have to give it the path to Lua libraries and includes, but you actually have to force it to include it by adding -llua. printed iphone 7 case iphone 8 survivor case griffin And then another error occurs, so you have to add the -ldl too, and yet another error comes, solving which requires adding -lm too. apple silicon case iphone 6 Therefore, the grand final solution was this:

Have fun.

Tags: , , , ,

One Response to “Compile lsyncd with Lua at special location”

  1. Chandrasekhar Gopal says:

    Thank you very much for all these details. This is exactly what I needed to compile lsyncd.

    [gopalc@hdp4-mdw1 lsyncd-2.1.5]$ export LUA_CFLAGS=”-I/usr/local/include” && export LUA_LIBS=”-L/usr/local/lib -llua -ldl -lm” && ./configure

    Thanks !!

Leave a Reply