Hi,
I tested orbit again.
But I am facing new problems..
Please help me!
I installed orbit as shown below:
sudo apt-get install luarocks
sudo apt-get install sqlite3 libsqlite3-0 libsqlite3-dev
(sudo updatedb)
(sudo locate sqlite3.h)
(/usr/include/sqlite3.h)
sudo luarocks install luasql-sqlite3
sudo luarocks install orbit
(sudo updatedb)
(sudo locate blog.lua)
(/usr/local/lib/luarocks/rocks/orbit/2.2.2-1/samples/blog/blog.lua)
And then, when I try the command below get some error messages:
#:/usr/local/lib/luarocks/rocks/orbit/2.2.2-1/samples/blog$ sudo orbit blog.lua
/usr/bin/lua: ...b/luarocks/rocks/orbit/2.2.2-1/samples/blog/blog.lua:32: attempt to index field 'cache' (a nil value)
stack traceback:
...b/luarocks/rocks/orbit/2.2.2-1/samples/blog/blog.lua:32: in function 'app_func'
...usr/local/lib/luarocks/rocks/orbit/2.2.2-1/bin/orbit:87: in main chunk
[C]: ?
So I tested like this below :
The result again is some error...
/usr/bin/lua: /usr/local/share/lua/5.1/orbit/model.lua:325: LuaSQL: no such table: post
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/orbit/model.lua:325: in function </usr/local/share/lua/5.1/orbit/model.lua:317>
(tail call): ?
...b/luarocks/rocks/orbit/2.2.2-1/samples/blog/blog.lua:41: in function 'app_func'
...usr/local/lib/luarocks/rocks/orbit/2.2.2-1/bin/orbit:87: in main chunk
[C]: ?
Is this known problme?
Or did I do something wrong?
Thank you very much in advance..
Sincerely
Journeyer