X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/6c0d2aa45608da7382289a34ac08e38b444ebe5b..c887bc05c37798e5ffee47ce7371f94c3f05bf8f:/doc/forum/PERL5LIB__44___wrappers_and_homedir_install.mdwn diff --git a/doc/forum/PERL5LIB__44___wrappers_and_homedir_install.mdwn b/doc/forum/PERL5LIB__44___wrappers_and_homedir_install.mdwn index 9dc539538..fba941efc 100644 --- a/doc/forum/PERL5LIB__44___wrappers_and_homedir_install.mdwn +++ b/doc/forum/PERL5LIB__44___wrappers_and_homedir_install.mdwn @@ -15,3 +15,24 @@ Or at least I get CGI errors and running ikiwiki.cgi manually fails too: Undefined subroutine &IkiWiki::cgierror called at /home/user/bin/bin/ikiwiki line 199. Server has an older ikiwiki installed but I'd like to use a newer version from git, and I don't have root access. + +> You can't set `PERL5LIB` in `ENV` in a setup file, because ikiwiki is already +> running before it reads that, and so it has little effect. Your error +> messages do look like a new bin/ikiwiki is using an old version of +> `IkiWiki.pm`. +> +> The thing to do is set `INSTALL_BASE` when you're installing ikiwiki from +> source. Like so: + + cd ikiwiki + perl Makefile.PL INSTALL_BASE=$HOME PREFIX= + make install + +> Then `$HOME/bin/ikiwiki` will have hardcoded into it to look +> for ikiwiki's perl modules in `$HOME/lib/perl5/` +> (This is documented in the README file by the way.) --[[Joey]] + +>> Ok, *perl Makefile.PL INSTALL_BASE=$HOME/bin PREFIX=* finally did it for me. I tried too many things with +>> these paths so I wasn't sure which actually worked. After that I did +>> *$ ikiwiki --setup www.setup --wrappers --rebuild*. Somehow in this update mess I seem to have lost the user +>> accounts, maybe the --rebuild was too much.