]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn
version needed
[ikiwiki.git] / doc / bugs / svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn
index 2c26606645ec74ca10392d7956076c6b404447cc..49e956a234bee1c473efde221c3b15f119f1881e 100644 (file)
@@ -3,8 +3,20 @@ If you're using ikiwiki without installing it, the svn post-commit wrapper will
 I'm not sure how to fix this in a secure way. For now I'm just changing use lib '.' in ikiwiki.pl to point to the hard-coded directory where ikiwiki was unpacked.
 
 > This workaround doesn't work here.  "`./ikiwiki.pl --setup ikiwiki.setup`" is ok, but the
-> wrappers fail in action.  The below patch seems fine (only the relevant part). --[[Roktas]]
+> wrappers fail in action.  Using "`FindBin`" seems a solution.  Here is a (kinda ugly)
+> [patch](http://git.kirkambar.net/?p=ikiwiki.git;a=commitdiff;h=44511c00b98b3efedd4d31f15ea928fcf221401e) 
+> which also allows you to use `basewiki` + `templates` in the source directory.  The patched
+> version works fine in my [homepage](http://kirkambar.net).  --[[Roktas]]
 
-    -use lib '.'; # For use without installation, removed by Makefile.
-    +use FindBin qw($Bin); # WILL_BE_REMOVED by Makefile.
-    +use lib ($Bin=~/(.+)/ ? "$1" : '.'); # For use without installation, WILL_BE_REMOVED by Makefile.
+New versions of ikiwiki support installation to nonstandard paths, just set
+PREFIX to the path when running Makefile.PL, and it will set up ikiwiki to
+look in the place it installed the libraries for its perl libraries, etc.
+
+I don't understand why the wrappers would fail if it were confgured link
+that. --[[Joey]]
+
+> I didn't install it, which was the problem. I'm running ikiwiki from a 
+> hosting account somewhere so I didn't even try. You're right, it works 
+> fine if you actually follow the directions. :) --Ethan
+
+Ok, well, I'll mark this [[bugs/done]] then. --[[Joey]]