Hi,

AFAIK on debian (for sure on my machine :) you cannot link against lua but you have to link against a specific lua version. So when building the lua plugin try to query pkg-config before using -llua.

thanks,
riccardo
diff -r 021f64210a19 plugins/lua/uwsgiplugin.py
--- a/plugins/lua/uwsgiplugin.py	Fri Apr 01 16:11:18 2011 +0200
+++ b/plugins/lua/uwsgiplugin.py	Fri Apr 01 21:26:38 2011 +0200
@@ -4,6 +4,15 @@
         LUALIB = os.environ['UWSGICONFIG_LUALIB']
 except:
         LUALIB = 'lua'
+        # On Debian at least you have to link against a specific version
+        try:
+                f = os.popen('pkg-config lua5.1 --libs', 'r')
+                pkgcfg_lua = f.read().strip()[2:]
+                if pkgcfg_lua:
+                        LUALIB = pkgcfg_lua
+                f.close()
+        except:
+                pass
 
 try:
         LUAINC = os.environ['UWSGICONFIG_LUAINC']
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to