[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LuaRocks can't find libz.so or libz.dll when installing lzlib
- From: Choonster TheMage <choonster.2010@...>
- Date: Tue, 28 Feb 2012 19:35:37 +1100
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?