lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

I'm now a first-time user of LuaRocks (which indeed rocks). I've
successfully installed over two dozen rocks (incl. dependencies)
without a fuss, and I am impressed :) But I've run into some trouble
installing certain other rocks, all from the default luarocks
repository as well. Most (if not all) of these problems are not due to
LuaRocks itself, I should add (but please see lua-discount.log).
Attached are some installation log files I created (by copy/pasting
the relevant text from my VS2005 command prompt, which I use so it can
find the compiler).

Many of the errors are obviously because the rock in question does not
expect a windows/MSVS platform (e.g. missing headers usually only
present on *nix systems, or missing Makefile.win). However some of the
problems are a bit more puzzling to me. Most notably:

- LuaLanes appears to be compiling successfully (aside from a few
harmless-looking warnings), but when compiling is done it doesn't seem
to find the .dll that should have been produced.

- The lposix installation fails after applying some patches, and
attempting to rename a file to one that already exists.

- The lua-discount installation appears to demonstrate a bug in one of
the LuaRocks sourcefiles.

- The stdlib installation fails because its only dependency fails
(lrexlib-pcre). This on itself was not surprising (missing pcre.h,
although this does not become apparent until I try to install
lrexlib-pcre explicitly, please see stdlib.log and lrexlib-pcre.log
resp). But after a quick inspection of a stdlib version downloaded
from luaforge, it appears that the pcre lib is used exactly once,
namely in the string.writeXML function in xml.lua, from what I can
tell to replace ampersands with "&amp" (although perl regexes are not
my specialty). Since the rest of stdlib is implemented in pure lua and
has no other dependencies, it seems a bit odd to have it depend on an
external pcre lib for just this one statement. Especially seeing that
it uses lua-style string.gsub for other pattern matching/replacing
needs. Was there a specific reason to do it this way?

If anyone could shed some light on any of these problems, it would be
most appreciated. I'm not in dire need of all of these libraries
(although I was hoping to use some of them). Mostly I was taking
LuaRocks on a testdrive at home, and just figured I should report the
problems I ran into.

Also, what are the thoughts on this list about rocks that do not
install on all platforms that LuaRocks itself supports, especially
those in the default LuaRocks repository? By platform I don't only
mean OS, but also compiler (I imagine that most of these rocks would
compile with cygwin or MinGW, although I haven't tried it since I
don't normally use either of them, yet).

Lastly, slightly off-topic, I am considering stepping away from Visual
Studio for my day-to-day needs (I'm sick and tired of the
compatibility problems). If anyone has any suggestions or
considerations regarding what my next choice of compiler might be (for
use on windows), I'm all ears. I'm not too keen on cygwin, but MinGW
seems like a good choice.

- Cheers
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install bitlib
Installing http://luarocks.luaforge.net/rocks/bitlib-23-2.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-bitlib-23-2-5195/bitl
ib-23-2.src.rock
  inflating: bitlib-23-2.rockspec
  inflating: bitlib-23.tar.gz
cl /MD /O2 -c -Folbitlib.obj -IC:/LuaRocks/0.6/include lbitlib.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

lbitlib.c
lbitlib.c(5) : fatal error C1083: Cannot open include file: 'inttypes.h': No suc
h file or directory

Error: Build error: Build error
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lanes
Installing http://luarocks.luaforge.net/rocks/lanes-2.0-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lanes-2.0-1-1078/lane
s-2.0-1.src.rock
  inflating: lanes-2.0-1.rockspec
  inflating: lanes-2.0.tgz

***
*** Using Lua from: C:\LuaRocks\0.6
***


C:\DOCUME~1\MURMAN~1\LOCALS~1\Temp\lanes-2.0-1-7124\lanes-2.0>"C:\LuaRocks\0.6\l
uac5.1.exe" -o delme src/keeper.lua

C:\DOCUME~1\MURMAN~1\LOCALS~1\Temp\lanes-2.0-1-7124\lanes-2.0>"C:\LuaRocks\0.6\l
ua5.1.exe" tools/bin2c.lua -o src/keeper.lch delme

C:\DOCUME~1\MURMAN~1\LOCALS~1\Temp\lanes-2.0-1-7124\lanes-2.0>cl /Wall /wd4054 /
wd4127 /wd4255 /wd4668 /wd4711 /wd4820 /wd4826 /O2 /I "C:\LuaRocks\0.6\include"
/LDd /Felua51-lanes.dll src\*.c "C:\LuaRocks\0.6\lua5.1.lib" /link /NODEFAULTLIB
:libcmt
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

lanes.c
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(141) : warning C4
619: #pragma warning : there is no warning number '4609'
threading.c
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(141) : warning C4
619: #pragma warning : there is no warning number '4609'
tools.c
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(141) : warning C4
619: #pragma warning : there is no warning number '4609'
Generating Code...
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

/dll
/implib:lua51-lanes.lib
/out:lua51-lanes.dll
/NODEFAULTLIB:libcmt
lanes.obj
threading.obj
tools.obj
C:\LuaRocks\0.6\lua5.1.lib
   Creating library lua51-lanes.lib and object lua51-lanes.exp
cp: src/lua51-lanes.dll: No such file or directory

Error: Failed copying src/lua51-lanes.dll
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lpc
Installing http://luarocks.luaforge.net/rocks/lpc-1.0.0-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lpc-1.0.0-1-2942/lpc-
1.0.0-1.src.rock
  inflating: lpc-1.0.0-1.rockspec
 extracting: lpc-1.0.0.tar.gz

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1052: file 'Makefile.win' not found
Stop.

Error: Build error: Failed building.
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lposix
Installing http://luarocks.luaforge.net/rocks/lposix-20031107-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lposix-20031107-1-838
5/lposix-20031107-1.src.rock
  inflating: lposix-20031107-1.rockspec
 extracting: lposix.tar.gz
Applying patch 01-luaL_findstring.patch...
patching file `lposix.c'
Applying patch 02-luaL_register.patch...
patching file `lposix.c'
Hunk #1 succeeded at 813 (offset 9 lines).
Applying patch 03-CLK_TCK.patch...
patching file `lposix.c'
Hunk #1 succeeded at 42 with fuzz 2 (offset 9 lines).
patch: **** can't rename `lposix.c' to `lposix.c.orig' : File exists

Error: Failed applying patch 03-CLK_TCK.patch
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lrexlib-pcre
Installing http://luarocks.luaforge.net/rocks/lrexlib-pcre-2.3.0-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lrexlib-pcre-2.3.0-1-
964/lrexlib-pcre-2.3.0-1.src.rock
  inflating: lrexlib-pcre-2.3.0-1.rockspec
 extracting: lrexlib-2.3.0.zip

Error: Could not find expected file pcre.h for PCRE -- you may have to install P
CRE in your system and/or set the PCRE_DIR variable
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lua-discount
Installing http://luarocks.luaforge.net/rocks/lua-discount-1.2.7-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lua-discount-1.2.7-1-
727/lua-discount-1.2.7-1.src.rock
  inflating: lua-discount-1.2.7-1.rockspec
  inflating: lua-discount-1.2.7.tar.gz

Error: LuaRocks 0.6 bug (please report at luarocks-developers@lists.luaforge.net
).
C:\LuaRocks\0.6\lua\luarocks\deps.lua:423: attempt to concatenate global 'plat'
(a nil value)
stack traceback:
        C:\LuaRocks\0.6\lua\luarocks\deps.lua:423: in function 'fulfill_dependen
cies'
        C:\LuaRocks\0.6\lua\luarocks\build.lua:109: in function 'build_rockspec'

        C:\LuaRocks\0.6\lua\luarocks\build.lua:232: in function <C:\LuaRocks\0.6
\lua\luarocks\build.lua:222>
        (tail call): ?
        (tail call): ?
        (tail call): ?
        (tail call): ?
        [C]: in function 'xpcall'
        C:\LuaRocks\0.6\lua\luarocks\command_line.lua:112: in function 'run_comm
and'
        C:\LuaRocks\0.6\luarocks.lua:19: in main chunk
        [C]: ?
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install luaposix
Installing http://luarocks.luaforge.net/rocks/luaposix-5.1.2-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-luaposix-5.1.2-1-6369
/luaposix-5.1.2-1.src.rock
  inflating: luaposix-5.1.2-1.rockspec
 extracting: luaposix-5.1.2.tar.gz
cl /MD /O2 -c -Folposix.obj -IC:/LuaRocks/0.6/include lposix.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

lposix.c
lposix.c(12) : fatal error C1083: Cannot open include file: 'sys/times.h': No su
ch file or directory

Error: Build error: Build error
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install lua-tinycdb
Installing http://luarocks.luaforge.net/rocks/lua-tinycdb-0.1-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lua-tinycdb-0.1-1-314
0/lua-tinycdb-0.1-1.src.rock
  inflating: lua-tinycdb-0.1-1.rockspec
  inflating: lua-tinycdb-0.1.tar.gz
tar: Unknown file type 'g' for pax_global_header, extracted as normal file

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1052: file 'Makefile.win' not found
Stop.

Error: Build error: Failed building.
C:\Program Files\Microsoft Visual Studio 8\VC>luarocks install stdlib
Installing http://luarocks.luaforge.net/rocks/stdlib-6-1.src.rock...
Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-stdlib-6-1-77/stdlib-
6-1.src.rock
  inflating: stdlib-6-1.rockspec
 extracting: stdlib-6.tar.gz

Missing dependencies for stdlib:
lrexlib-pcre >= 2.2.2

Archive:  C:/DOCUME~1/MURMAN~1/LOCALS~1/Temp/luarocks-rock-lrexlib-pcre-2.3.0-1-
1159/lrexlib-pcre-2.3.0-1.src.rock
  inflating: lrexlib-pcre-2.3.0-1.rockspec
 extracting: lrexlib-2.3.0.zip

Error: Failed installing dependency: http://luarocks.luaforge.net/rocks/lrexlib-
pcre-2.3.0-1.src.rock