lua-users home
lua-l archive

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


Hi,

I'm trying to install the the Lua library "lzlib" via LuaRocks, but the compiler can't seem to find the appropriate binary for zlib. When I run "luarocks install lzlib" at the command line, I get one of these errors:

On Ubuntu 11.10 64 bit: "Error: Could not find expected file libz.so for ZLIB -- you may have to install ZLIB in your system and/or set the ZLIB_DIR variable"

On Windows 7 64 bit "Error: Could not find expected file libz.dll for ZLIB -- you may have to install ZLIB in your system and/or set the ZLIB_DIR variable"


I've tried setting the ZLIB_DIR variable both at the command line (luarocks ZLIB=/blah/blah/blah install lzlib) and in the build.build_variables section of the rockspec (after downloading and extracting manually through LuaRocks) but I still get the same error.

I'm writing a program (in Lua) that receives data compressed in either deflate or gzip format (I'm not entirely sure which) from a website, so I need a library that can decompress it for me.

Could anyone please help me resolve this?

Thanks,
Choonster