Hi Hisham,
using"VS2013 x64 Cross Tools Command Prompt3", and entering the same line 
gives the message below. I must admit that I don't know about MSVC paths 
settings. 
***
C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\x86_amd64>luarocks 
install
luasql-postgres PGSQL_DIR="C:\Program Files\PostgreSQL\9.3"
Installing https://rocks.moonscript.org/luasql-postgres-2.3.0-1.src.rock..
.
Using https://rocks.moonscript.org/luasql-postgres-2.3.0-1.src.rock... 
switching
 to 'build' mode
cl /MD /O2 -c -Fosrc/luasql.obj -IC:/Program Files/Osmose/Lua/5.1/include/ 
src/l
uasql.c -IC:\Program Files\PostgreSQL\9.3/include
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

luasql.c
cl /MD /O2 -c -Fosrc/ls_postgres.obj -IC:/Program 
Files/Osmose/Lua/5.1/include/
src/ls_postgres.c -IC:\Program Files\PostgreSQL\9.3/include
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

ls_postgres.c
src/ls_postgres.c(374) : error C2057: expected constant expression
src/ls_postgres.c(374) : error C2466: cannot allocate an array of constant 
size
0
src/ls_postgres.c(374) : error C2133: 'to' : unknown size

Error: Build error: Failed compiling object src/ls_postgres.obj
***
Initially, when entering simply luarocks install luasql-postgres, I had 
the following message:
Error: Could not find expected file pg_config.h, or pg_config.h for PGSQL 
-- you
 may have to install PGSQL in your system and/or pass PGSQL_DIR or 
PGSQL_INCDIR
to the luarocks command. Example: luarocks install luasql-postgres 
PGSQL_DIR=/us
r/local

Thanks for the support.
Cheers,
Alex



From:   Hisham <h...@hisham.hm>
To:     LuaRocks developers list 
<luarocks-developers@lists.sourceforge.net>, 
Date:   10/10/2014 16:26
Subject:        Re: [Luarocks-developers] Problem installing 
luasql-postgresql



On 10 October 2014 06:51,  <alexandre.bertr...@tudor.lu> wrote:
> Hi Thijs,
> thanks for the feedback. I updated Luarocks, unfortunately, it still 
doesn't
> work. When entering
> luarocks install luasql-postgres PGSQL_DIR="C:\Program 
Files\PostgreSQL\9.3"
>
> I get:
> ***
> Installing 
https://rocks.moonscript.org/luasql-postgres-2.3.0-1.src.rock...
> Using https://rocks.moonscript.org/luasql-postgres-2.3.0-1.src.rock...
> switching to 'build' mode
> cl /MD /O2 -c -Fosrc/luasql.obj -IC:/Program 
Files/Osmose/Lua/5.1/include/
> src/luasql.c -IC:\Program Files\PostgreS
> QL\9.3/include
> Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> luasql.c
> src/luasql.c(6) : fatal error C1083: Cannot open include file: 
'string.h':
> No such file or directory
>
> Error: Build error: Failed compiling object src/luasql.obj
> ***
> When checking, I couldn't find a "src" folder in C:/Program
> Files/Osmose/Lua/5.1/include

That's not the problem, the src/luasql.c file was found. The problem
is that your compiler is failing to find string.h, a standard header.
Perhaps you need to launch it from one of the Visual-Studio-specific
command-prompts, which have all the MSVC paths correctly set?

-- Hisham

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to