« -: Sep 17, 2005, 11:59 »
Здравейте ,
имам следният проблем опитвам да подкарам VPN на Слак 10.2.
Инсталирах Lua 5.0.2 , като пакета взех от линукспакети.нет но трябва да сложа и pluto library. ОК, взех архива от официалния сайт обаче ми гърми при компилирането със следните грешки:
root@Slack-laptop:/home/zhoro/pluto-1.2# make
cc -g3 -Wall -ansi -pedantic -c -o pptest.o pptest.c
pptest.c:4:17: lua.h: No such file or directory
pptest.c:5:20: lualib.h: No such file or directory
pptest.c:6:21: lauxlib.h: No such file or directory
In file included from pptest.c:7:
pluto.h:21: error: syntax error before '*' token
pluto.h:23: error: syntax error before '*' token
pluto.h:25: error: syntax error before '*' token
pptest.c:9: error: syntax error before '*' token
pptest.c: In function `LUAF_createludata':
pptest.c:11: warning: implicit declaration of function `lua_pushlightuserdata'
pptest.c:11: error: `L' undeclared (first use in this function)
pptest.c:11: error: (Each undeclared identifier is reported only once
pptest.c:11: error: for each function it appears in.)
pptest.c: At top level:
pptest.c:16: error: syntax error before '*' token
pptest.c: In function `LUAF_boxinteger':
pptest.c:19: warning: implicit declaration of function `lua_newuserdata'
pptest.c:19: error: `L' undeclared (first use in this function)
pptest.c:19: warning: initialization makes pointer from integer without a cast
pptest.c:21: warning: implicit declaration of function `luaL_checkint'
pptest.c:22: warning: implicit declaration of function `lua_newtable'
pptest.c:24: warning: implicit declaration of function `lua_pushstring'
pptest.c:26: warning: implicit declaration of function `lua_pushboolean'
pptest.c:28: warning: implicit declaration of function `lua_rawset'
pptest.c:30: warning: implicit declaration of function `lua_setmetatable'
pptest.c: At top level:
pptest.c:35: error: syntax error before '*' token
pptest.c: In function `LUAF_boxboolean':
pptest.c:38: error: `L' undeclared (first use in this function)
pptest.c:38: warning: initialization makes pointer from integer without a cast
pptest.c:40: warning: implicit declaration of function `lua_toboolean'
pptest.c:45: warning: implicit declaration of function `lua_getglobal'
pptest.c: At top level:
pptest.c:54: error: syntax error before '*' token
pptest.c: In function `LUAF_unboxboolean':
pptest.c:57: error: `L' undeclared (first use in this function)
pptest.c:57: warning: implicit declaration of function `lua_touserdata'
pptest.c: In function `main':
pptest.c:64: error: `lua_State' undeclared (first use in this function)
pptest.c:64: error: `L' undeclared (first use in this function)
pptest.c:64: warning: implicit declaration of function `lua_open'
pptest.c:66: warning: implicit declaration of function `luaopen_base'
pptest.c:67: warning: implicit declaration of function `luaopen_table'
pptest.c:68: warning: implicit declaration of function `luaopen_string'
pptest.c:69: warning: implicit declaration of function `luaopen_math'
pptest.c:70: warning: implicit declaration of function `luaopen_io'
pptest.c:71: warning: implicit declaration of function `luaopen_debug'
pptest.c:73: warning: implicit declaration of function `lua_settop'
pptest.c:75: warning: implicit declaration of function `lua_register'
pptest.c:80: warning: implicit declaration of function `lua_dofile'
pptest.c:82: warning: implicit declaration of function `lua_close'
make: *** [pptest.o] Error 1
Разбира се питах гуугле по няколко различни начина на не успях да намеря решение на проблема си.
Ще бъда благодарен ако ме насочите как да компилирам плуто или ми кажете някое друго решение за VPN успешно подкарано под Слак ?