[Snort-devel] [Snort-users] --enable-open-appid failing even though luajit is installed

Avery Rozar avery.rozar at ...3576...
Mon Dec 7 14:23:54 EST 2015


adding luajit_CFLAGS="-I/usr/local/include/luajit-2.0" and
luajit_LIBS="-L/usr/local/lib -lluajit-5.1" did the trick, thank you very
much!

On Mon, Dec 7, 2015 at 2:21 PM, Y M <snort at ...3347...> wrote:

>
> Avery,
>
>
> Here is what I did on FreeBSD 10.2 which succeeded with me:
>
>
> ./configure --enable-sourcefire --enable-open-appid
> luajit_CFLAGS="-I/usr/local/include/luajit-2.0"
> luajit_LIBS="-L/usr/local/lib -lluajit-5.1"
>
>
> # which luajit
> /usr/local/bin/luajit
>
> # which lua51
> /usr/local/bin/lua51
>
> YM
> ------------------------------
> *From:* Avery Rozar <avery.rozar at ...3576...>
> *Sent:* Monday, December 7, 2015 7:14 PM
> *To:* William S
> *Cc:* Y M; snort-users at lists.sourceforge.net;
> snort-devel at lists.sourceforge.net
> *Subject:* Re: [Snort-users] --enable-open-appid failing even though
> luajit is installed
>
> I did see this one but from what I can see freeBSD 10.2 is not using
> pkg-config, but I could be wrong.
>
> Thank you,
> Avery
>
> On Mon, Dec 7, 2015 at 2:03 PM, William S <willst at ...2499...> wrote:
>
>> Hi,
>> Back in May I had issues installing on OS X, with --enable-open-appid
>> complaining about LuaJIT.  I sent my solution to the list.  Maybe this will
>> help?  Text from my response:
>>
>> """
>> Hi,
>> Well, this is fun.  I started picking apart the configure script again to
>> figure out which pkg-config commands it was running.  I then realized I
>> didn't have pkg-config installed at all, which was actually evidenced in
>> the script output.  Just before the "checking for luajit... no" line, it
>> also said "checking for pkg-config... no".  Further, grepping for
>> PKG_CONFIG variables in config.log shows that PKG_CONFIG and
>> PKG_CONFIG_LIBDIR were empty.  I installed pkg-config via brew, reran my
>> configure script with options, and voila.  It configures and compiles just
>> fine!
>>
>> To further validate, I uninstalled pkg-config, reran configure, and it
>> failed as expected.
>>
>> Moral of the story - pkg-config is required for the configure script on
>> OS X, at least when enabling OpenAppID.
>>
>> Thanks for the prompting to check on pkg-config.
>>
>>
>> For future reference, this was what my reply was GOING to be before I did
>> that one last configure after installing pkg-config:
>>
>> """
>> I believe this means that pkgconfig can find LuaJIT:
>>
>> $ pkg-config --libs luajit
>> -L/usr/local/lib -lluajit-5.1
>>
>> And
>>
>> $ pkg-config --list-all | grep -i lua
>> lua5.2               Lua - An Extensible Extension Language
>> lua-5.2              Lua - An Extensible Extension Language
>> luajit               LuaJIT - Just-in-time compiler for Lua
>> lua                  Lua - An Extensible Extension Language
>>
>>
>> If I'm pulling the right lines from configure script, I think this also
>> means yes it can find LuaJIT:
>>
>> $ pkg-config --print-errors --cflags --libs luajit
>> -I/usr/local/include/luajit-2.0 -L/usr/local/lib -lluajit-5.1
>> """
>>
>>
>>
>>
>>
>> On Mon, Dec 7, 2015 at 1:56 PM, Y M <snort at ...3347...> wrote:
>>
>>> In my case I also had to install lua51 (which may be unnecessary). Also
>>> you need to set the "luajit_CFLAGS" and "luajit_LIBS" when compiling Snort.
>>>
>>> _____________________________
>>> From: Avery Rozar <avery.rozar at ...3576...>
>>> Sent: Monday, December 7, 2015 9:53 PM
>>> Subject: [Snort-users] --enable-open-appid failing even though luajit is
>>> installed
>>> To: <snort-users at lists.sourceforge.net>, <
>>> snort-devel at lists.sourceforge.net>
>>>
>>>
>>>
>>> I'm trying trying to install Snort 2.8 on FreeBSD with the
>>> --enable-open-appid configuration option. It's failing complaining
>>> that luajit is not installed. I did install luajit 2.0.4 from source with
>>> default options and verified with "which luajit", this is the response
>>> "/usr/local/bin/luajit". There does not seem to be an option for
>>> "--with-luajit-libraries=DIR" in the ./configure --help.
>>>
>>> checking for luajit... no
>>>
>>>   ERROR!  LuaJIT library not found.....
>>>
>>> Am I missing another dependency?
>>>
>>> Thanks,
>>>
>>>
>>> Avery
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Go from Idea to Many App Stores Faster with Intel(R) XDK
>>> Give your users amazing mobile app experiences with Intel(R) XDK.
>>> Use one codebase in this all-in-one HTML5 development environment.
>>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
>>> OSs.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>>> _______________________________________________
>>> Snort-users mailing list
>>> Snort-users at lists.sourceforge.net
>>> Go to this URL to change user options or unsubscribe:
>>> https://lists.sourceforge.net/lists/listinfo/snort-users
>>> Snort-users list archive:
>>> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
>>>
>>> Please visit http://blog.snort.org to stay current on all the latest
>>> Snort news!
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20151207/1a9bac42/attachment.html>


More information about the Snort-devel mailing list