Hi Philipp,
many thanks for your help. Unfortunately, after I've downloaded both
luasql-postgres-2.3.0.1-1.rockspec and luasql-postgres-2.3.0.1-1.src.rock
files and used
luarocks install luasql-postgres-2.3.0.1-1.src.rock PGSQL_DIR="C:\Program
Files\PostgreSQL\9.3"
I'm now stuck with the following error:
..switching to build mode.
Error: could not fetch rock file: file not found:
luasql-postgres-2.3.0.1-1.src.rock
I've tried several commands (luarocks --from="C:\Program
Files\Osmose\Lua\5.1\rocks\luasql" install
luasql-postgres-2.3.0.1-1.src.rock PGSQL_DIR="C:\Program
Files\PostgreSQL\9.3", also luarocks
--server=https://github.com/siffiejoe/lua-rockspecs/ install
luasql-postgres-2.3.0.1-1.rockspec PGSQL_DIR="C:\Program
Files\PostgreSQL\9.3), but I always obtain the same error (also with the
.rockspec).
I don't know if the issue is related, but using "luarocks list" I don't
see older rocks already installed with an former luarock version (2.0.2)
in the list.
Btw, thanks for the type on Mingw, I'll look into that!
Cheers,
Alex
From: Philipp Janda <siffie...@gmx.net>
To: luarocks-developers@lists.sourceforge.net,
Date: 15/10/2014 10:28
Subject: Re: [Luarocks-developers] Problem installing
luasql-postgresql
Am 14.10.2014 um 13:41 schröbte
alexandre.bertr...@tudor.lu:
> Hi,
Hi!
> I'm glad that I've started what seems to be an interesting discussion.
> Unfortunately, as I'm no developer, I must admit that I've no clue on
how
> to (if I even can) adapt the code with any of the suggestions discussed.
I've uploaded a modified rockspec (and a source rock) to my Github
account[1]. You can install the modified version by downloading either
one and running:
luarocks install luasql-postgres-2.3.0.1-1.rockspec
PGSQL_DIR="C:\Program Files\PostgreSQL\9.3"
(requires `git` command), or:
luarocks install luasql-postgres-2.3.0.1-1.src.rock
PGSQL_DIR="C:\Program Files\PostgreSQL\9.3"
I did _not_ run any test code! I only checked that it compiles on Linux
using GCC, but if that variable length array was the only problem, it
should compile with Visual C as well.
That said, if you keep playing with Lua modules, you will sooner or
later encounter one that intentionally uses C99 features. People are
getting tired of sticking to a 24 year old standard for Microsoft's
sake. So you may want to start looking for a better C compiler (MinGW is
the only one besides Visual C that is supported by LuaRocks on Windows;
other compilers may require some fiddling) ...
> So, support on next steps would be more than welcome ;¬).
> Cheers,
> Alex
>
Good luck!
Philipp
[1]: https://github.com/siffiejoe/lua-rockspecs
------------------------------------------------------------------------------
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