ubuntu如何配置lxr

配置好源

deb http://old-releases.ubuntu.com/ubuntu natty main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu natty-security main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu natty-updates main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu natty-proposed main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu natty-backports main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu natty main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu natty-security main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu natty-updates main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu natty-proposed main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu natty-backports main restricted universe multiverse

1 perl

14.04 本来就有

11.04 也是有

2 ctags

sudo apt-get install exuberant-ctags

https://sourceforge.net/projects/ctags/files/

从这里下载,然后解压,通过以下命令编译

./configure --prefix=/usr/local/ctags

make && make install

sudo vi /etc/bash.bashrc

export PATH=/usr/local/ctags/bin:$PATH

3 mysql-server

sudo apt-get install mysql-server

root: aishenghuo526

4 lighttpd

sudo apt-get install lighttpd

5 glimse

sudo apt-get install flex (安装前需要安这个)

wget http://webglimpse.net/trial/glimpse-latest.tar.gz

./configure

make

make install

6 perl DBI

# perl -MCPAN -e shell

cpan> install DBI

perl Makefile.PL

make

make test

make install

7 perl File::MMagic

# perl -MCPAN -e shell

cpan> install File::MMagic

DBD::mysql

8 安装LXR 源代码

LXR的根目录:/usr/local/share/lxr/

这可以服务整个系统

在这可以用使用以下命令检查已经安装了什么

./genxref --checkonly

但是这里有些没有安装是正常的(glimpse switch-e肯定有一个没有安装),由于没配置,也会出现一9些变量没有定义。

9 配置LXR

./scripts/configure-lxr.pl --v

记录完整的配置过程

LXR root directory is /usr/local/share/lxr

Configuration will be stored in custom.d/

Configure for single/multiple trees? [S/m] > s

Do you intend to add other trees later? [yes/NO] > N

LXR can be located at the server-root (so called dedicated)

or lower in the server hierarchy (shared because there are

usually other pages or sections).

Server type? [dedicated/SHARED] > dedicated

The computer hosting the server is described by an URL.

The form is scheme://host_name:port

where:

- scheme is either http or https (http: can be omitted),

- host_name can be given as an IP address such as 123.45.67.89

or a domain name like localhost or lxr.url.example,

- port may be omitted if standard for the scheme.

--- Host name or IP? [localhost] > localhost

--- Alias name or IP? > //linux.lxr.org

--- Alias name or IP? >

Database engine? [MYSQL/oracle/postgres/sqlite] > MYSQL

--- Directory for glimpse databases?/usr/local/share/lxr/glimpse_DB

--- Use ‘buttons-and-menus‘ instead of ‘link‘ interface? [YES/no] > YES

* LXR master configuration file setup *

Global section part

*** Configuring auxiliary tool paths

*** Host name previously defined as http://localhost

*** Configuring HTML parameters

*** ‘Buttons-and-menus‘ interface is recommended for the kernel

*** to avoid screen cluttering.

--- Use ‘buttons-and-menus‘ instead of ‘link‘ interface? [YES/no] > YES

*** Configuring file subsection

*** Configuring "common factors"

*** Marking tree section

--- Caption in page header? (e.g. Project XYZZY displayed by LXR) > Project Linux displayed by LXR

Do you need a specific encoding for this tree ? [yes/NO] > NO

How is your tree stored? [FILES/cvs/git/svn/hg/bk] > FILES

--- Source directory? (e.g. /home/myself/project-tree) > /home/andrew/Downloads/linux

Name to display for the path root? (e.g. Project or $v for version) [$v] > $v

Label for version selection menu? [Version] > Version

Version enumeration method? [LIST/file/function] > LIST

--- Version name? > 0.11

--- Version name? (hit return to stop) > 0.12

--- Version name? (hit return to stop) >

--- Default displayed version is first in ‘range‘? [YES/no] > YES

Directory to ignore, e.g. CVSROOT or CVS? (hit return to stop) >

Include directory, e.g. /include? (hit return to stop) >

*** Configuring data storage

--- Database name? > lxr_linux_

--- DB user name? [lxr] >

--- DB password? [lxrpw] >

--- DB table prefix? [lxr_] >

configuration saved in custom.d/lxr.conf

DB initialisation sript is custom.d/initdb.sh

10 使用刚才创建好的脚本来配置数据库

[email protected]:/usr/local/share/lxr$ ./custom.d/initdb.sh

*** MySQL - Creating tree user lxr

Enter password:

*** MySQL - Creating tree database lxr_linux_

*** MySQL - Configuring tables lxr_ in database lxr_linux_

11 拷贝复制文件到lxr根目录

cp custom.d/lxr.conf .

12 创建索引

要注意文件夹的名称是

/home/andrew/Downloads/linux/0.12

/home/andrew/Downloads/linux/0.11 (版本号,是用文件夹名称来做的)

./genxref --url=http://localhost --allversions (这是生成所有版本的索引)

如果是单独某个一版本,则是

./genxref --url=(刚才配置地址) --version=(刚配置的版本号)

13 配置网页服务器

我使用lighttpd,版本是lighttpd/1.4.28

显示不出source这个程序

14 安装appache2 来试试

sudo apt-get install apache2

apt-get install libapache2-mod-perl2-dev

激活它

sudo a2enmod version

sudo service apache2 restart

(参考网页)https://sourceforge.net/p/lxr/discussion/86145/thread/a2b8392e/

cp custom.d/apache-lxrserver.conf /etc/apache2/conf.d

然后可以使用。

时间: 2024-10-16 00:48:20

ubuntu如何配置lxr的相关文章

Ubuntu下配置tftp服务和NFS服务

Ubuntu下配置tftp服务和NFS服务 配置tftp 方法一:(推荐方法)Ubuntu10.04 测试通过 1.安装TFTP软件 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端,tftpd-hpa是服务器端 2.建立tftpboot目录,作为服务器的目录sudo mkdir ~/tftpboot释放权限:(服务器目录,需要设置权限为777,chomd 777)sudo chmod 777 ~/tftpboot 3.配置TFTP服务器

ubuntu 下配置Python wxWidgets (复制自官方网站)

全系统英文官网操作地址:http://wxpython.org/download.php Ubuntu 英文操作地址:http://wiki.wxpython.org/InstallingOnUbuntuOrDebian Installing wxWidgets and wxPython On Ubuntu Or Debian There are wxWidgets and wxPython packages in the standard software repositories for D

Ubuntu下配置Tomcat以指定(非root)身份运行

My Blog:http://www.outflush.com/ 通常情况下,在配置Tomcat生产环境时,通常会配置Tomcat以特定的身份运行(非root),这样有利于提高安全性,防止网站被黑后的进一步权限提升. 本文依赖的环境: Ubuntu(其实大部分同样适用于CentOS) JVM(安装并已配置好环境变量) gcc.make等编译工具 JAVA_HOME=/usr/lib/jvm/jdk1.7.0_55 CATALINA_HOME=/usr/local/apache-tomcat-7.

ubuntu环境配置之vi 配置【转载】

ubuntu环境配置之vi 配置 [日期:2014-02-10] 来源:Linux社区  作者:zhonghe1114 [字体:大 中 小] Android的源码开发,几乎离不开Linux,Linux系统当然首推Ubuntu了,linux自带的编辑工具VI,相信用过的人都知道它的强大之处了,但是,系统自带的vi,功能比较有限,用起来当然不怎么方便,所以我们需要对它进行优化配置.1.安装增强版vi:sudo apt-get install vim2.做一个软链接:sudo ln -sf /usr/

Ubuntu下配置Sublime到Dash board 以及 VI/VIM编辑文件时无权限保存的问题

[1]Ubuntu下配置Sublime到Dash board Ubuntu是个好系统,Sublime Text 是个好编辑器. 下载&安装 个人习惯喜欢到官网下载软件,http://www.sublimetext.com/2 选择合适的包下载回来的格式是.tar.bz2格式,需要进行解压. 1. 解压: tar -xvf Sublime\ Text\ 2.0.2.tar.bz2 2.为了在Terminal的任何位置都能执行./sublime_text文件,将解压后他的目录保存到环境变量$PATH

Windows7下用VirtualBox安装Ubuntu网卡配置

Win7下用VirtualBox安装Ubuntu,要求Ubuntu能连上互联网,同时在Ubuntu中配置SSH.FTP.NFS服务,能从Win7进行访问. 此时Linux虚拟机需要两块网卡,一块使用NAT方式(网络地址翻译网络)连接,用于连接互联网: 另一块设置为网桥网络(Bridged),用于建立SSH.FTP.NFS连接,要求所有机器(Linux主机网卡IP和Win7网卡IP)应处于同一网段,如192.168.0.x,子网掩码255.255.255.0 NAT方式连接的网卡,使用默认设置即可

Ubuntu 下配置Ganglia监控

Ganglia是比较知名的开源监控系统, 运维上需要关注的一些通用的状态都有所涉及.其组成主要是gmond(监控程序),gmetad(信息收集程序),web(监控数据展现app).ubuntu的apt源中Ganglia-webfrontend对应gmetad+web展现应用;ganglia-monitor对应gmond监控程序. 本文主要以ubuntu 14 server版为例进行安装配置: 监控主机: 192.168.1.1 被监控机: 192.168.1.2 ganglia在监控主机与被监控

ubuntu 主机配置相关命令

使用ubuntu系统这么久了,但还主要是停留在简单的使用上,好多关于系统设置方面的命令平时用的少,看书的时候一晃而过,也就忘记了,到用的时候又要去找,很麻烦,今天开始就在这记录平时遇到问题需要解决时查找的一些命令,也方便以后的回忆和查阅. ubuntu下查看电脑的配置: lshw -short H/W path       Device  Class          Description=================================================    

ubuntu 下配置MySQL服务

第一步 安装MySQL sudo apt-get install mysql-server 第二步 配置MySQL 2.1 vim /etc/mysql/my.cnf 找到bind-address = 127.0.0.1. 2.2 注释掉: #bind-address = 127.0.0.1 或者把IP改为 0.0.0.0:bind-address = 0.0.0.0 允许任意IP访问 2.3 重启 mysql服务: sudo /etc/inid.d/mysql restart 第三步 授权用户