Wednesday, February 5, 2014

Installing scmbug glue logic and getting "File "post-commit" cannot be opened No such file or directory"

Guess what?
You may have a partially installed scmbug and it left files in the hooks directory which make the tool think it's upgrading the install.
It's not finding the pre-commit file it expects and bails out...

So what should you do?
cd
rm -rf bin etc lib

Assuming that bin,etc, and lib directories only have the scmbug files in them.

Then try again to install the glue logic...

How to switch from the default perl for your bugzilla install

perl -pi -e 's@#\!/usr/bin/perl@#\!/usr/local/bin/perl@' *cgi *pl