In C and C ++ languages, memory leakage is very likely due to the great flexibility of memory operations. Fortunately, we have a third-party memory leak check tool, which is the PurifyPlus of Rational (Now IBM. Purify on Windows may be widely used, but here I want to introduce the process of installing PurifyPlus on RedHat Linux Enterprise 4.
License, the other is the License file. Because the anti-piracy capability is good, the License in every Linux system needs to be applied for by itself. I don't know which other big brother has made a License file generator. Here, the License file is vmredhat02.upd.
Check whether there is a directory named Rational under the/usr/local directory. If not, create one. Copy the purifyplus.7.0.0.0-004.aix_solaris_linux_hpux.tar.gz file to the/usr/local/Rational directory. Root permission may be required for operations in this directory, so it is best to convert the su command to the root user for operations. After the copy is complete, use the tar command to unbind this gz package, the command is as follows tar-xvzf PurifyPlus.7.0.0.0-004.AIX_Solaris_Linux_HPUX.tar.gz
After the package is unzipped, A purifyplus.7.0.0.0-004.aix_solaris_linux_hpux.tar.gz directory is displayed in the current/usr/local/rationaldirectory. After the package is opened, it runs under the root permission. after/re_install, the following installation wizard is available. You will be prompted by default. However, one thing to note is that when installing purify, you must first install the licence server and then install the software. The principle of this licence is not the same as what we used to do before. It is to start a server process for check and judgment. pay more attention to this process during installation, otherwise, the software cannot be installed directly.