Am 16.10.2014 um 22:26 schröbte Thijs Schreijer:
>
>> -----Original Message-----
>> From: Philipp Janda [mailto:siffie...@gmx.net]
>> Sent: donderdag 16 oktober 2014 14:40
>> To: luarocks-developers@lists.sourceforge.net
>> Subject: Re: [Luarocks-developers] Problem installing luasql-postgresql
>>
>> Am 16.10.2014 um 11:36 schröbte
>> alexandre.bertr...@tudor.lu:
>>> Hi Philipp,
>>
>> Hi!
>>
>>> thanks for the tip, that was my error. I still encountered 2 problems
>>> (described here: https://github.com/keplerproject/luafilesystem/issues/22
>>> and here http://comments.gmane.org/gmane.comp.lang.lua.luarocks/4299),
>>> which I managed to solve. I was just wondering: to solve the link error
>>> issue, I added in the luarocks config. lua "LUALIB = '/lib/lua5.1.lib'",
>>> without deleting the line "LUALIB = 'lua5.1.dll',". Is this going to cause
>>> problems, shall I maybe delete the latter?
>>
>> Visual C can't link to a DLL directly like MinGW can, but instead must
>> link to an import library (we probably should make sure that it does in
>> the LuaRocks installation script).
>
> Considering this;
> https://github.com/keplerproject/luarocks/blob/master/install.bat#L23-L26
>
> That should have worked. If you try to install again, what does the LuaRocks 
> installer display for the file locations found? (you can try and then abort 
> at the confirmation prompt, so nothing gets actually updated)

Yes, that should handle most cases. My guess is that the import library 
is in the `lib` subdirectory, while the DLL is in the same directory as 
the `lua` executable. So the install script found the DLL but not the 
import library and continued without warning. The OP should have 
specified a `/LIB` option. On the other hand, the install script could 
have caught this by removing *.dll and *.a from 
`variables.LUA_LIB_NAMES` when using Visual C.

>
> Thijs

Philipp




------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to