LXR installation 1, installation requirements Perl5 apache2 Linux
Second. Installing LXR 1. Download from http://sourceforge.net/projects/lxr to download LXR-0.3.1. (LXR-0.9.3 is the development version, and you need database support, too much trouble) wget http: // UNET/SourceForgeForge.Net/SourceForge/LXR/LXR-0.3.1.tar.gz tar -zxvf lxr-0.3.1.tar.gz CD LXR-0.3 2. Compilation and installation modifies Perlbin = / usr in your Makefile file / bin / perl installprefix = / tmp / lxr Perlbin's value is changed to Perl, and installprefix is set to the Apache's web directory. The following is an example in installprefix = / var / www / html / lxr. 4. PERL script Marked as CGI file *** setHandler CGI-Script files> 5. Add Directory Access Control in Apache Profile / etc / httpd / conf / httpd To add access to / VAR / WWW / HTML / LXR / HTTP Options All allowOverride All ORDER ALLOW, DENY Allow from Allow, DIRECTORY> 6. Modify / The path in VAR / WWW / HTML / LXR / HTTP / LXR.CONF is correct. 1. I installed under / var / www / html / lxr, so the / local / LXR will be modified to / var / www / html / lxr vi /var/www/html/lxr/http/lxr.conf, then replace 1, $ s /// Local // lxr ////// www // HTML // LXR / G 2. Modify Baseurl correctly, such as BaseURL: http://10.0.100.29/lxr/HTTP/7. Test Access http: // WE E / LXR / HTTP / SOURCE / This time you should be able to see, although the report is not existent, it is now a configured LXR. If you can't see Linux Cross Reference, then check the steps above. Configuring the source code is to modify the configuration inside LXr.conf so that Sourceoot points to the correct source path and creates an index in DBDIR. Say the configuration of multiple versions. 1. Put the code to be browsed in web Under the directory. For example /Home/wee/source/gaim 1.1.1 2. Modify the file pointed to by the V in LXr.conf. Variable: v, version, [/ var / www / html / lxr / source / versions] $ Echo Gaim-1.1.1>