在 Sat, Aug 9, 2014 at 12:59 AM,Zoom.Quiet <zoom...@gmail.com> 写道:
> 挖个坟, 之前的手册,因为服务问题,迁移到:
> 乱入 OpenResty 手册! — chaos2openResty 2.1.130619 documentation
> http://chaos2.qiniudn.com/openresty/build/html/
>
> 今天尝试 review 时,发现,
>
> - Ubuntu 10.04.4 LTS
> - 无法正常的安装 luaCURL 了
>
进一步的尝试,
安装了 libcurl4-gnutls-dev 后
$ luarocks install luacurl
Installing http://luarocks.org/repositories/rocks/luacurl-1.2.1-1.src.rock...
Archive: /tmp/luarocks_luarocks-rock-luacurl-1.2.1-1-8288/luacurl-1.2.1-1.src.rock
inflating: luacurl-1.2.1-1.rockspec
extracting: luacurl-1.2.1.zip
Archive: luacurl-1.2.1.zip
creating: luacurl-1.2.1/
inflating: luacurl-1.2.1/CMakeLists.txt
inflating: luacurl-1.2.1/luacurl.c
gcc -O2 -I/usr/include/lua5.1 -c luacurl.c -o luacurl.o -I/usr/include
gcc -shared -o luacurl.so -L/usr/local/lib luacurl.o -L/usr/lib -lcurl
/usr/bin/ld: luacurl.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
luacurl.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
cp: cannot stat `luacurl.so': No such file or directory
Error: Build error: Build error
> $ luarocks install luacurl
> Installing http://luarocks.org/repositories/rocks/luacurl-1.2.1-1.src.rock...
> Archive: /tmp/luarocks_luarocks-rock-luacurl-1.2.1-1-1918/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 set the CURL_DIR variable
>
> luarocks 玩的不多,
> 先吼一下,有人知道替代的 OpenResty 模块嘛?
>
>
> 在 Sat, Mar 10, 2012 at 1:20 AM,Zoom.Quiet <zoom...@gmail.com> 写道:
>> http://chaos2openresty.RTFD.org
>> 好吧,这是有关如何在 42分钟之内 超高速上手 OpenResty 的一个不怎么靠谱的手册;-)
>>
>> - 分享,俺这周的快乐体验
>> - 严正接受资深用户的 BS
>> - 回复邮件吼
>> - 在线底部评注
>> - 左侧提案气泡
>> 都可以反馈你的见解 ;-)
>>
>> thanx for all!
>>
>>
>> --
>> 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
>> 俺: http://about.me/zoom.quiet
>> 文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/
>
>
>
> --
> 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
> KM keep growing environment culture which promoting organization be learnning!
> 俺: http://zoomquiet.io
> 许: http://creativecommons.org/licenses/by-sa/2.5/cn/
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization be learnning!
俺: http://zoomquiet.io
许: http://creativecommons.org/licenses/by-sa/2.5/cn/