lua-users home
lua-l archive

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

Ok I found my problem...

I have to use "curl.easy_init()" and non ""

But it seems  not support scp ? I try this sample of code :

c=curl.easy_init ()

Unsupported protocol: scp

2007/9/4, Luc1an0 <>:
Hi all,

my question is a little bit too easy...

I try to use luacurl. Here a sample of a test code on a Windows XP (SP2), 32 bits:

print( curl.version_info())

D:\freepops-luacurl-binary-win32-gnutls>lua5.1.exe test.lua
NOTE: you should run 'diskperf -y' to enable the disk statistics ==> What is this message ?
NOTE: you should run 'diskperf -y' to enable the disk statistics
libcurl/7.15.5 GnuTLS/1.4.4 zlib/1.2.3  ==> ok, curl is correctly loaded...
table: 009E6938 ==> idem..
lua5.1.exe: test.lua:5: attempt to call field 'new' (a nil value)
stack traceback:
        test.lua:5: in main chunk
        [C]: ?

I can't create a curl object...

If I try : require("luacurl") I have this message :
D:\freepops-luacurl-binary-win32-gnutls>lua5.1.exe test.lua
lua5.1.exe: test.lua:5: module 'luacurl' not found:
        no field package.preload['luacurl']
        no file '.\luacurl.lua'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\lua\luacurl.lua'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\lua\luacurl\init.lua'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl.lua'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl\init.lua'
        no file '.\luacurl.dll'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl.dll'
        no file 'D:\freepops-luacurl-binary-win32-gnutls\loadall.dll'
stack traceback:
        [C]: in function 'require'
        test.lua:5: in main chunk
        [C]: ?

I take all packages version on the luacurl project page, but i can't find these files...

Someone could help me ?

Thanks all !

Frédéric ASTIC

Frédéric ASTIC