lua-users home
lua-l archive

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


On Oct 21, 2013 3:43 AM, "Jayanth Acharya" <jayachar88@gmail.com> wrote:
>
> Thanks Sean. Already installed the dev package for curl. Didn't help. Probably an issue with packaging.
>
> Here's what the Debian 'Wheezy' has as options for curl.h --
> http://packages.debian.org/search?searchon=contents&keywords=curl.h
>
> Will try with the libssl-dev ...

Yes, use libcurl4-openssl-dev, as suggested by Michal Kottman. Then try launching the luarocks command without passing the CURL_INCDIR variable. Also, use CURL_LIBDIR for the library path (not CURL_DIR, that is a generic variable for setting the prefix of both incdir and libdir at once).

-- Hisham

>
> On Mon, Oct 21, 2013 at 11:08 AM, Sean Conner <sean@conman.org> wrote:
>>
>> It was thus said that the Great Jayanth Acharya once stated:
>> > 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
>>
>>   You may need to install the curl deveopment package.  Usually on Linux
>> distributions, you have a base install (of curl, that would be the curl
>> executable, and libcurl for programs that link to it) and a separate
>> development install that includes the required headers.
>>
>>   -spc (Facing this very issue on my home system, which is running a
>>         Linux distribution so old [1] that it's no longer supported.)
>>
>> [1]     Older than 20 minutes [2]
>>
>> [2]     I kid, but sometimes it feels like anything older than 20 minutes is
>>         considered "ancient, you should try updating to the latest version,
>>         then update again in case thing changed in the two minutes you spent
>>         upgrading." [3]
>>
>> [3]     Which makes Lua a refreshing change.
>>
>>
>