lxr0.3安装方法(gentoo,apache2)
2011-06-20 20:04
357 查看
1、
安装
apache
服务器
2、
解压缩
lxr0.3
3、
编辑
lxr0.3
目录下的
Makefile
文件修改
usr/bin/perl
是大多数情况下
perl
的默认路径
INSTALLPREFIX=/var/www/html/lxr
(
安装路径,设置为
/var/www/localhost/htdocs/lxr)
4、
修改
http
目录下的
lxr.conf
文件,将所有的
/local/lxr
改为
/var/www/localhost/htdocs/lxr
5
、修改
lxr.conf
文件中的
baseurl
为 http://localhost/lxr/http/
5、
创建
$(INSTALLPREFIX)/http/.htaccess
文件内容如下
(
让
apache
以
cgi
方式执行
):
<Files
~ (search|source|ident|diff|find)$>
SetHandler cgi-script
</Files>
6、
将
linux
源代码拷贝到
source
目录中并命名为
:linux-2.6.32
并在这个目录中执行
bin/genxref linux-2.6.32,
得到两个文件
fileidx
,
xref
,将两个文件权限设置为所有可读可写
7、
将
lxr.conf
文件中的
sourceroot
设置为刚才
linux
源码的路径,别忘了最后加上
/
8、
将
lxr.conf
中的
dbdir
设置为刚才的两个文件
fileidx,xref
的路径别忘了
/
9、
在
apache
服务器的配置文件
httpd.conf
中(
/etc/apache2/httpd.conf
)中加入
<Directory
/var/www/html/lxr>
Options All
AllowOverride All
</Directory>
10
、
/etc/init.d/apache2 start
启动
apache
服务器
11
、访问
http://localhost/lxr/http/source
开始吧
安装
apache
服务器
2、
解压缩
lxr0.3
3、
编辑
lxr0.3
目录下的
Makefile
文件修改
usr/bin/perl
是大多数情况下
perl
的默认路径
INSTALLPREFIX=/var/www/html/lxr
(
安装路径,设置为
/var/www/localhost/htdocs/lxr)
4、
修改
http
目录下的
lxr.conf
文件,将所有的
/local/lxr
改为
/var/www/localhost/htdocs/lxr
5
、修改
lxr.conf
文件中的
baseurl
为 http://localhost/lxr/http/
5、
创建
$(INSTALLPREFIX)/http/.htaccess
文件内容如下
(
让
apache
以
cgi
方式执行
):
<Files
~ (search|source|ident|diff|find)$>
SetHandler cgi-script
</Files>
6、
将
linux
源代码拷贝到
source
目录中并命名为
:linux-2.6.32
并在这个目录中执行
bin/genxref linux-2.6.32,
得到两个文件
fileidx
,
xref
,将两个文件权限设置为所有可读可写
7、
将
lxr.conf
文件中的
sourceroot
设置为刚才
linux
源码的路径,别忘了最后加上
/
8、
将
lxr.conf
中的
dbdir
设置为刚才的两个文件
fileidx,xref
的路径别忘了
/
9、
在
apache
服务器的配置文件
httpd.conf
中(
/etc/apache2/httpd.conf
)中加入
<Directory
/var/www/html/lxr>
Options All
AllowOverride All
</Directory>
10
、
/etc/init.d/apache2 start
启动
apache
服务器
11
、访问
http://localhost/lxr/http/source
开始吧
相关文章推荐
- ubuntu安装apache2的步骤及发生的问题解决方法
- ubuntu安装apache2的步骤及发生的问题解决方法
- 用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- gentoo中使用emerge更新安装软件是出现的问题及解决方法
- Gentoo Linux 快速安装方法安装
- 总结一下Gentoo程序安装方法
- 用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- Gentoo Linux 快速安装方法安装
- 如何在LINUX下用用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- 如何在LINUX下用用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- ubuntu安装apache2出现"Config variable ${APACHE_LOCK_DIR} is not defined"问题的解决方法
- Docker安装运行apache2服务器做图片服务器的方法
- ubuntu上配置git服务器 -增加apache2安装方法
- Redhat9下LXR 0.3的安装
- ubuntu用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- 如何在LINUX下用用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- apache2 安装服务方法
- 启用systemd的gentoo安装方法