Add a patch tag
[ikiwiki.git] / doc / bugs / git_fails_to_compile.mdwn
1 Background: I'm running ikiwiki on OS X leopard, (a laptop), and I have the wiki running locally, as it's mostly for note taking and personal stuff. Anyway. 
2
3 I'd been using svn, but I'm making the leap to git (finally) and moving the wiki over as well... 
4
5 The git works great, I am in fact, quite pleased. Here's the problem. When I try and run `ikiwiki --setup [setupfile]` I get the following message: 
6
7         Can't exec "git": No such file or directory at /opt/local/lib/perl5/vendor_perl/5.8.8/IkiWiki/Rcs/git.pm line 29.
8         /Users/tychoish/.ikiwiki/ikiwiki.setup: Cannot exec 'git log --max-count=50 --pretty=raw --raw --abbrev=40 --always -c -r HEAD -- .': No such file or directory
9         BEGIN failed--compilation aborted at (eval 6) line 139.
10
11         /Users/$HOME/.ikiwiki/ikiwiki.setup: 'git log --max-count=50 --pretty=raw --raw --abbrev=40 --always -c -r HEAD -- .' failed: 
12         BEGIN failed--compilation aborted at (eval 6) line 139.
13
14 ---
15
16 I can get the wiki to compile if: I take the git stuff out of the setup file, if I put `rcs => ""` **or** if I set the the git_master_branch to "".
17
18 I think the problem is that ikiwiki can't deal with the onslaught of such a large quantity of history/log information at once, somehow, because the repository came to this moment with a lot of history that the compiler has to crunch through. How to remedy this, is beyond my skill insight... 
19
20 Thanks. 
21
22 -- [[tychoish]]
23
24 > It looks like it can't find git; what is $PATH set to when ikiwiki is run, and is git in one of those directories? --[[bma]]
25 >> Yeah, ikiwiki and git are both installed underneath macports, which is in the path and works just fine most of the time, and I use macports stuff a lot. 
26
27 >>> The PATH is set at the top of the ikiwiki program; so the system's PATH
28 >>> setting, or one in the environment will be ignored. (This is done for
29 >>> security since ikiwiki can be run setuid.) If you need to use
30 >>> a nonstandard path, you'll need to edit that. --[[Joey]]
31
32 [[!tag done]]