I’m trying to use git instaweb with Ruby’ webrick (which I have installed) on Mac OS X, but every time I fire up
$ git instaweb --httpd=webrick
I get the following error:
webrick not found. Install webrick or use –httpd to specify another httpd daemon.
Like I said, I do have webrick, so I don’t know why git instaweb won’t use it. Any ideas?
I’m using Git v1.7.2.1 on Mac OS X 10.6.
The
webrickserver is fairly unique in that git instaweb creates shell script namedwebrickin ‘$GIT_DIR/gitweb/’, which runs ‘$GIT_DIR/gitweb/webrick.rb’, which in turn hasrequire 'webrick'as its first line. Check if those generated files are there, and that thye call files that exist.‘$GIT_DIR’ is
.gitin top directory of your project, or justgit rev-parse --git-dir.