Here are some quick steps to install Krazy, the KDE static analysis tool (code checker in more accessible language) on your local machine:
sudo aptitude install libtie-ixhash-perl libhtml-parser-perl libfile-find-rule-perl
These are the Perl dependencies of Krazy. It won’t install without them.
- Download the code in a new directory:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/ebn/krazy/
- Change into the directory and start the installation. You may choose the directory Krazy should be installed to, the default is
/usr/local/Krazy/. I chose a location in my home directory:
- To make your environment aware of where the scripts are, adjust your path (in
Make sure you indicated the right directory.
- That’s it! Log-out, log-in to update the
krazy --list. You should get a list of checks that are available.
Now, to check a single source file, type
krazy filename. To check a whole bunch of them, use
krazyall. Enjoy 8)