1 No matter what I do, ikiwiki gives me a `Can't locate loadable object for module Locale::gettext in @INC` although I've installed (and reinstalled) the Locale module, and no luck. If I look at the directories in the INC path, I can see the file. The wiki won't compile in spite of this, and I've tried everything I can think of.. -- [[tychoish]]
3 > Sounds like the `Locale::gettext` perl module is there, but your perl
4 > installation is broken so that the accompnying so file is not there, or
5 > doesn't work. On my system I have
6 > `/usr/lib/perl5/Locale/gettext.pm` and
7 > `/usr/lib/perl5/auto/Locale/gettext.so` -- suspect your problem is with
10 > If you can't fix it, this problem could probably be worked around by
11 > unsetting all environment variables when running ikiwiki (`LANG`,
12 > `LC_ALL`, `LC_MESSAGES`). Then it won't try to load `Locale::gettext` at
17 I am trying to install Ikiwiki version 2.1 from the source tarball.
19 It has all gone fairly smoothly until I try and run 'make'.
21 I.e. I have downloaded and unpacked ikiwiki_2.1.tar.gz and have run
28 However when I then run 'make' I get:-
30 LANG=C perl -I. -T ikiwiki.out doc html --templatedir=templates \
31 --underlaydir=basewiki --nousedirs\
32 --wikiname="ikiwiki" --verbose \
33 --exclude=/discussion --no-discussion --userdir=users \
35 --plugin=haiku --plugin=polygen --plugin=fortune
36 Failed to load plugin IkiWiki::Plugin::mdwn: IkiWiki version 2 required--this is only version 1.01 at IkiWiki/Plugin/mdwn.pm line 7.
37 BEGIN failed--compilation aborted at IkiWiki/Plugin/mdwn.pm line 7.
38 Compilation failed in require at (eval 4) line 2.
39 BEGIN failed--compilation aborted at (eval 4) line 2.
41 make: *** [extra_build] Error 1
43 How do I fix this? There may be a bit of old ikiwiki left behind because
44 I did once have an older version installed but I thought I had removed all
47 > I'm quite sure that you still have some of it floating around, since
48 > ikiwiki seems to be loading an old IkiWiki.pm.
50 > I don't understand though why it's not finding ./IkiWiki.pm first. The
51 > `-I` in the command line should make it look for files in the current
52 > directory first. --[[Joey]]
54 Well I have searched around and there really is nothing left that I can see.
56 I have removed *everything* found by 'find' and 'locate' that contains 'ikiwiki' except the tar file
57 and started from the beginning again and I see exactly the same error.
59 Is it that I maybe have a too old version of some of the Perl dependencies? The only mdwn.pm files
60 that I have are the two I have just extracted from the new tar file. There is *no* ./IkiWiki.pm file
62 > It's interesting that you say you have no ./IkiWiki.pm file, since one is
63 > included in the tarball. What happened to it, I wonder?
65 so what/where is it loading to satisfy the ....... aaaaaaaaaaahhhhhhhhhhhhhh!!!!!!
67 I wasn't noticing the case of the filename, I'd missed the upper case W and guess what 'find' shows me:-
69 /usr/local/lib/perl5/site_perl/5.8.8/IkiWiki.pm
71 Removing the above file has fixed my basic problem, now I'm getting lots of (non-fatal) errors
72 about "Can't locate Locale/gettext.pm", presumably that's a missing Perl module, I can probably
76 ## Errors when running 'make test'
78 OK, I've now got it to compile and install and presumably it's basically working. However there
79 are a few errors when I run 'make test'. Several errors have disappeared by installing more Perl
80 stuff (specifically XML::SAX)
82 > XML::SAX is a requirement of XML::Simple, which is a documented build
83 > requirement. (Only really needed if you'll be using subversion actually).
85 and one error disappeared when I did a 'make install', i.e. the 'make
86 test' has a test which requires IkiWiki to be installed first.
88 > Yes, that bug is already fixed in subversion for the next release
91 However I'm still getting the following error in 'make test':-
93 t/pagename.................ok
94 t/pagespec_match...........ok 1/52Modification of a read-only value attempted at /home/chris/webdev/ikiwiki/blib/lib/IkiWiki.pm line 1023.
95 # Looks like you planned 52 tests but only ran 23.
96 # Looks like your test died just after 23.
97 t/pagespec_match...........dubious
98 Test returned status 255 (wstat 65280, 0xff00)
99 DIED. FAILED tests 24-52
100 Failed 29/52 tests, 44.23% okay
101 t/pagespec_merge...........ok
103 > What version of perl are you using? It seems to have some problem with
104 > operator overloading.
109 This is perl, v5.8.8 built for i486-linux
111 ## Installation in a non-root enviroment
112 I had a pretty hellacious time installing Ikiwiki (largely due to problems
113 in Perl) and documented them in [[tips/Dreamhost]]. I'd like to get feedback on the doc and also know if I should file a few bugs to make the installation process a little friendlier to non-root folks. Thanks for the great app!
118 [..] Mail::Sendmail, TimeDate, RPC::XML, [..]: should be DateTime? --[[vibrog]]
120 > No, TimeDate and DateTime are two different CPAN modules. Ikiwiki uses
121 > TimeDate. --[[Joey]]
123 ah, i still don't fully get it, though (the following is slightly shortened):
125 $ perl -MCPAN -e shell
126 cpan> install DateTime
127 DateTime is up to date.
128 cpan> install TimeDate
129 Warning: Cannot install TimeDate, don't know what it is.
132 to find objects with matching identifiers.
134 I'm trying to build IkiWiki on a fresh OpenSuse 10.3 box. I start out with
136 $ perl -MCPAN -e 'install Text::Markdown URI HTML::Parser HTML::Template HTML::Scrubber'
137 $ git clone git://git.ikiwiki.info/ ikiwiki && cd ikiwiki
138 $ perl Makefile.PL && make
140 Are there other prerequisites?
141 I also installed all optional Perl modules, except TimeDate.
143 > TimeDate is also, confusingly, known as Date::Parse. Perhaps CPAN would
144 > do better with that name. --[[Joey]]
146 good. Date::Parse was already installed. --[[vibrog]]
148 `make` exits with `make: *** [extra_build] Aborted`, `make test` complains `cannot stat 'ikiwiki.man'` --[[vibrog]]
150 > If you show me the actual error message, and not just the last line make
151 > outputs, I might be able to help. --[[Joey]]
154 rendering todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn
155 make: *** [extra_build] Segmentation fault
157 > So, perl on your system is segfaulting when running ikiwiki. What version
158 > of perl is this, and what version of what distribution? --[[Joey]]
161 Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
162 osname=linux, osvers=2.6.22, archname=i586-linux-thread-multi
163 uname='linux ravel 2.6.22 #1 smp 20070921 22:29:00 utc i686 i686 i386 gnulinux '
164 config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe'
165 hint=recommended, useposix=true, d_sigaction=define
166 usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
167 useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
168 use64bitint=undef use64bitall=undef uselongdouble=undef
169 usemymalloc=n, bincompat5005=undef
171 Not sure how to provide proper version information for you.--[[vibrog]]
175 I've tried a couple of times and my cpan has never recognised Bundle::IkiWiki. Is that section of the page still accurate? -- [[JonDowland]]
177 > Are you running perl with the environemnt settings specified on the page?
178 > Can you show how it fails to find the bundle? --[[Joey]]