Hi Thijs, Philipp and Tomas,

So far I believe I solved the problem, which I had first thought about and 
the 3 of you confirmed it (thanks). Actually, I did an manual update of 
luarocks (from an old version 2.0.2 to newest), but wrongly parametrised 
the trees, so that when luasql-postgres got installed, the structure 
became a mess (I actually mentioned this briefly in a former post, with 
"luarocks list" not returning all my rocks anymore). I even had the 
solution before (moving the postgres.dll file to the initial luasql rock 
folder) but hadn't realised it. What I did now was simply take everything 
down, and reinstall lua, luarocks and luasql-postgres. The last 2 errors I 
mentioned then didn't show up anymore. The update from Philipp was still 
necessary, though.
Sorry I didn't come back to you directly, but now I'm stuck with (yet) 
another problem, an error message stating that an ordinal in libeay32.dll 
could not be located. I've tried to find a solution since then, and wanted 
to reply to the post once luasql-postgres was behaving normally. Let's see 
if I can solve this one ;¬).
But thanks to the three of you as well as Hisham for your support and your 
reactivity!
Cheers,
Alex



From:   Thijs Schreijer <th...@thijsschreijer.nl>
To:     "luarocks-developers@lists.sourceforge.net" 
<luarocks-developers@lists.sourceforge.net>, 
Date:   17/10/2014 13:50
Subject:        Re: [Luarocks-developers] Problem installing 
luasql-postgresql



> >>> 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.
> 

@alexandre; can you post the installer output as I requested, that would 
give the exact order in which files are being searched for and found by 
the installer iirc.

Thijs

> 
> 
> 
> 
----------------------------------------------------------------------------
> --
> 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
------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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