Ping-Lek Lee
2006-Jan-02 15:54 UTC
[Instiki] Newbie: Problems with setting up Instiki-AR-beta1
Hi,
I''m trying to setup a wiki and use it as a scratchpad for my pet
project.
However, I''m also a newbie to SQLite and Instiki.
I''ve a problem with installing Instiki. Tried searching the web and
instiki-user list for December and November 2005 briefly but to no avail.
Help needed.
(A) My Setup
System: Win2k
Ruby: ruby182-15.exe (the one-stop Windows installer, not for cygwin)
SQLite: sqlite-3_2_8.zip, sqlitedll-3_2_8.zip, both in
<ruby-install-dir>\bin
sqlite-ruby: sqlite3-ruby-1.1.0-mswin32.gem
Instiki: instiki-ar-beta1.zip
(B) My Problem
(i) I copied config\database.default.yml to config\database.yml
(ii) In the command window I did the following :-
====win-cmd-top===dos> cd <instiki-install-dir>
dos> ruby instiki.rb
=> Instiki started on http://0.0.0.0:2500
=> Ctrl-C to shutdown; call with --help for options
[2006-01-02 23:13:23] INFO WEBrick 1.3.1
[2006-01-02 23:13:23] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32]
[2006-01-02 23:13:23] INFO WEBrick::HTTPServer#start: pid=944 port=2500
====win-cmd-bot===
(iii) From my browser, I goto http://localhost:2500 and get the following
page:
====win-firefox-top===ActiveRecord::StatementInvalid in Wiki#index
no such table: webs: SELECT COUNT(*) FROM webs
/app/models/wiki.rb:82:in `setup?''
/app/controllers/wiki_controller.rb:17:in `index''
./script/server:49
instiki.rb:3:in `load''
instiki.rb:3
Show framework trace
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:462:in
`log''
/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:108:in
`execute''
:
:
:
<Retry with Breakpoint>
Request
Parameters: None
Show session dump
---
flash: !ruby/hash:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[],
"Content-Type"=>"text/html; charset=UTF-8",
"Cache-Control"=>"no-cache"}
====win-firefox-bot===
What have I missed out?
Thanks in advance!
ping-lek
Assaph Mehr
2006-Jan-02 19:43 UTC
[Instiki] Newbie: Problems with setting up Instiki-AR-beta1
Hi Ping-Lek,> (i) I copied config\database.default.yml to config\database.yml > > (ii) In the command window I did the following :- > ====win-cmd-top===> dos> cd <instiki-install-dir>On the first time only, you will need to run: ruby script/create_db at this stage (from the command line)> dos> rub instiki.rbHTH, Assaph