lua-users home
lua-l archive

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


After getting stuck in the Windows environment, with LuaDist (as discussed in another thread), I've setup a Linux based environment in Virtualbox running Crunchbang Linux (based on Debain 'Wheezy').

However, I've faced with this issue where the rock expects to find curl/curl.h but in all the packages I've installed, curl.h is (perhaps no longer) found in that path. Is it that this rock has fallen behind ? Here's the error:-

jay@cacafonix:~$ sudo luarocks install luaCURL CURL_DIR=/usr/lib/x86_64-linux-gnu CURL_INCDIR=/usr/include/lua5.1
Installing http://luarocks.org/repositories/rocks/luacurl-1.2.1-1.src.rock...
Using http://luarocks.org/repositories/rocks/luacurl-1.2.1-1.src.rock... switching to 'build' mode
Archive:  /tmp/luarocks_luarocks-rock-luacurl-1.2.1-1-1936/luacurl-1.2.1-1.src.rock
  inflating: luacurl-1.2.1-1.rockspec 
 extracting: luacurl-1.2.1.zip      

Error: Could not find expected file curl/curl.h for CURL -- you may have to install CURL in your system and/or pass CURL_DIR or CURL_INCDIR to the luarocks command. Example: luarocks install luacurl CURL_DIR=/usr/local


Given that the "lua-curl-dev" package installed has these files --

/usr/include/lua5.1/lua-curl.h
/usr/lib/x86_64-linux-gnu/liblua5.1-curl.a
/usr/lib/x86_64-linux-gnu/liblua5.1-curl.so