文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>把FC5作为开发环境

把FC5作为开发环境

时间:2006-08-27  来源:hello386

安装FC5

使用缺省的安装即可,需要的软件可以用到的时候再安装。

配置必要的开发用软件

安装eclipse及其相关软件

下载eclipse 3.2 for linux,并遵循http://subclipse.tigris.org/install.html 的说明安装subeclipse,遵循http://www.phpeclipse.net/tiki-read_article.php?articleId=37 的说明安装phpeclipse

安装pgadmin

通过FC5自带的软件安装工具,search pgadmin,安装即可。

自动运行postgresql

/sbin/chkconfig --level 345 postgresql on
/etc/init.d/postgresql start

安装UML工具

安装dia,umbrella(比较麻烦,另文说明)
安装vmware 5.5.1

首先是安装必要的软件
[root@netyang ~]# yum -y install gcc gcc-c++ kernel-devel
然后更新kernel
[root@netyang ~]# yum -y update kernel
检查一下
[root@netyang `]# rpm -qa | grep kernel
kernel-2.6.15-1.2054_FC5
kernel-2.6.16-1.2080_FC5
kernel-devel-2.6.16-1.2080_FC5

下载VMware-any-any-update*(99-101)都可以。VMware-workstation-5.5.1-19175.tar.gz
全部放入/tmp中备用
[root@netyang tmp] tar zxvf VMware-workstation-5.5.1-19175.tar.gz
[root@netyang tmp]#cd vmware-distrib
[root@netyang vmware-distrib]# ls
bin doc etc FILES installer lib man vmware-install.pl
[root@netyang vmware-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.

(中间的一段省略.......)

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The path "/usr/src/linux/include" is not an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

(我想大多数的人都卡在了这一步上来了。哈哈,我也是,被玩了三四天了。其实解决的方法非常简单)

[root@netyang vmware-distrib]#reboot
重启后看启动的选择菜单多出了一项
Fedora Core (2.6.16-1.2080_FC5)
Fedora Core 5 (2.6.15-1.2054_FC5)
选后面是2.6.16j-1.2080_FC5)那一项

[root@netyang ~]#cd /tmp
[root@netyang ~]#tar zxvf vmware-any-any-update101.tar.gz
[root@netyang ~]#cd vmware-any-any-update101

[root@netyang vmware-any-any-update101]# ./runme.pl
Updating /usr/bin/vmware-config.pl ... already patched
Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

(中间一段省略........)
None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.16-1.2080_FC5/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 5.5.x.
Using 2.6.x kernel build system.
哈哈,通过完成。其他的都选默认就可以了。

序列号-已验证可用了
DA925-HP80U-Z8HDC-4WXXP
3KW2W-AYR2C-88M6F-4MDQ2


配置apache/php

这里稍微复杂一点,分步骤说。

1 首先从svn里面checkout project_src,假设在/home/yourname/workspace/project_src目录下面,则修改
/etc/httpd/conf/httd.conf
这个文件,主要是两个地方:DocumenttRoot和Directory,几乎紧挨在一起的两个地方。

2 变为超级用户su,修改以下的几个地方:
  • chmod 755 /home/yourname
  • chmod 777 /home/yourname/workspace/project_src/tmp /home/yourname/workspace/project_src/cache
  • 编辑/etc/group文件,找到yourname这样一行,在最后加上apache,表示把apache这个用户加到yourname这个用户组中。

3 如果下列软件没有安装,需要安装好:
php-pgsql,php-gd,php-mbstring,php-mysql
可以尝试以下命令:
yum install php-pgsql php-gd php-mbstring php-mysql
4  重启apache进程即可:/etc/init.d/httpd restart

还有问题请来论坛寻求帮助:http://www.xxlinux.com/bbs/
相关阅读 更多 +
排行榜 更多 +
独角兽装扮物语

独角兽装扮物语

休闲益智 下载
多格和迷失的猫

多格和迷失的猫

休闲益智 下载
模拟赛车精英

模拟赛车精英

赛车竞速 下载