3 % perl Makefile.PL PREFIX=/home/ed
7 This installs the files under /home/ed, for example one of the lines it prints is
9 cp -a basewiki/* /home/ed/share/ikiwiki/basewiki
11 However when I try to run ikiwiki I get an error as follows:
13 % ikiwiki --verbose ~/wikiwc/ ~/public_html/wiki/ --url=http://membled.com/wiki/
14 Can't stat /usr/share/ikiwiki/basewiki: No such file or directory
15 at /home/ed/lib/perl5/site_perl/5.8.7/IkiWiki/Render.pm line 349
17 The PREFIX specified at build time should also affect the share directory -
18 it shouldn't try to use /usr/share here.
20 Actually, the PREFIX, no matter where you specify it, is only
21 intended to control where files are _installed_, not where they're
22 looked for at runtime.
24 There's a good reason not to make PREFIX be used to actually
25 change the program's behavior: Most packaging systems use PREFIX
26 when building the package, to make it install into a temporary
27 directory which gets packaged up.
29 It would probably be nice if ikiwiki offered a separate build-time
30 setting to control where it looked for its data files, though it already
31 offers a way to do it at runtime (--underlaydir and --templatedir).