buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

zimg.lua load failed 问题 #168

Closed linjunnan closed 7 years ago

linjunnan commented 7 years ago

启动zimg遇到提示lua配置文件加载失败。 if(load_conf(conf_file) == -1) { fprintf(stderr, "'%s' load failed!\n", conf_file); return -1; }

static int load_conf(const char conf) { lua_State L = luaL_newstate(); luaL_openlibs(L); if (luaL_loadfile(L, conf) || lua_pcall(L, 0, 0, 0)) { lua_close(L); return -1; } 应该是这里出错,请问要怎么解决这个问题?

buaazp commented 7 years ago

启动命令和错误提示贴一下,如果自己改了配置文件的话,最好用默认的试试,改过不符合lua语法的话会解析失败。

linjunnan commented 7 years ago

嗯,已经找到是配置语法有误,注释习惯了用#,。。没仔细检查就提了,抱歉!