Am 29.06.2006 um 18:21 John wrote:> Tyson Tate wrote: >> undefined method `files_path'' for nil:NilClass" > > Hi Tyson, > > This error is almost certainly that the SWIG library is missing. > When SWIG isn''t present, sqlite3-ruby reverts to a broken pure Ruby > implementation. Does ''port installed'' show the swig port is > present? If so, then you might try reinstalling the sqlite3-ruby gem. > > Give that a try; sorting out the SWIG issues will definitely sort out > not being able to run and work with Instiki 0.11.0. I expect it will > also fix the migration tool''s problems as well. > > -- JohnJohn, I have the same problem. When trying to install/reinstall SWIG, after doing the ./configure as in the INSTALL instructions, when I try the "make" step I get this message: Build system is out of date. Please reconfigure (rerun: ./autogen.sh && ./configure) make[2]: *** [am--refresh] Error 1 make[1]: *** [Makefile.in] Error 1 make: *** [source] Error 2 I tried (rerun: ./autogen.sh && ./configure) to no avail (assuming that means to run and rerun those commands). This is definitely beyond me -- any further suggestion on this? I''d be grateful. Thanks, Bob OS 10.4.6 Rails installed according to hivelogic.com''s instructions -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20060629/7d305683/attachment.html
Tyson Tate
2006-Jun-29 20:13 UTC
[Instiki] undefined method `files_path'' for nil:NilClass"
I installed Swig with DarwinPorts sucessfully and am still having the same problem creating a new web: NoMethodError in Admin#create_system undefined method `files_path'' for nil:NilClass Trace: #{RAILS_ROOT}/app/models/wiki_file.rb:49:in `content_path'' #{RAILS_ROOT}/app/models/web.rb:86:in `create_files_directory'' #{RAILS_ROOT}/app/models/wiki.rb:13:in `create_web'' #{RAILS_ROOT}/app/models/wiki.rb:70:in `setup'' #{RAILS_ROOT}/app/controllers/admin_controller.rb:17:in `create_system'' instiki:6 The migration fails with the same error before, as well: script/import_storage:97:in `require'': no such file to load -- wiki_service (LoadError) from script/import_storage:97 Any ideas? -Tyson On 6/29/06, BobR <robert.bruce at t-online.de> wrote:> > Am 29.06.2006 um 18:21 John wrote: > > Hi Tyson, > > This error is almost certainly that the SWIG library is missing. > When SWIG isn''t present, sqlite3-ruby reverts to a broken pure Ruby > implementation. Does ''port installed'' show the swig port is > present? If so, then you might try reinstalling the sqlite3-ruby gem. > > Give that a try; sorting out the SWIG issues will definitely sort out > not being able to run and work with Instiki 0.11.0. I expect it will > also fix the migration tool''s problems as well. > > -- John
John Whitley
2006-Jun-29 21:19 UTC
[Instiki] undefined method `files_path'' for nil:NilClass"
Hi Tyson, Apologies for the pain of the by-hand install for OS X. SWIG has proven to be rather much of a hassle for some folks. (Oleg, any progress on getting the 0.11.0 all-in-one setup going?) Did you also try reinstalling the sqlite3-ruby gem? How do you have this gem installed? If a reinstall of the suspect gem doesn''t work, then I recommend giving Locomotive a try. See http://locomotive.raaum.org/ for details and download. It''s literally "Rails in a box" for OS X -- ruby, rails, gems, dependent libraries (including sqlite3) -- everything in one neat package that won''t impact your existing Darwinports installation. You should be able to run Instiki and perform the migration just fine. For the migration, use Locomotive''s feature to open a Terminal window with all of the Locomotive path settings in place. -- John
Tyson Tate
2006-Jun-29 21:36 UTC
[Instiki] undefined method `files_path'' for nil:NilClass"
Awesome! Locomotive, indeed, works. It wouldn''t, however, run Instiki successfully on its own (something, I suspect, having to do with Locomotive allowing you to specify the port). Opening my instiki folder in the Terminal thorugh Locomotive and running instiki there gets Instiki up and running wonderfully. Thanks again for the help! -Tyson On 6/29/06, John Whitley <whitley at acm.org> wrote:> Hi Tyson, > > Apologies for the pain of the by-hand install for OS X. SWIG has > proven to be rather much of a hassle for some folks. (Oleg, any > progress on getting the 0.11.0 all-in-one setup going?) > > Did you also try reinstalling the sqlite3-ruby gem? How do you have > this gem installed? > > If a reinstall of the suspect gem doesn''t work, then I recommend > giving Locomotive a try. See http://locomotive.raaum.org/ for > details and download. It''s literally "Rails in a box" for OS X -- > ruby, rails, gems, dependent libraries (including sqlite3) -- > everything in one neat package that won''t impact your existing > Darwinports installation. You should be able to run Instiki and > perform the migration just fine. For the migration, use > Locomotive''s feature to open a Terminal window with all of the > Locomotive path settings in place. > > -- John > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >