在fedora8下编译OpenOffice

来源:互联网 发布:微信域名屏蔽查询接口 编辑:程序博客网 时间:2024/05/23 12:11
openoffice在fedora8.0下的编译
fedora8.0安装时已经选择了开发环境。
1,下载代码
trunk始终是最新的代码,可能编译不同过。可以编译tags下的某个版本。
svn co http://svn.services.openoffice.org/ooo/trunk oootrunk
oootrunk 为本地所建的目录,openoffice编译大约需要15G左右的空间。

2, 下载完成后,进入config_office 运行./configure
提示环境出错。
checking which shell to use... tcsh
checking for tcsh... no
configure: error: tcsh not found in $PATH

添加编译选项 --with-use-shell=bash
3运行 ,/configure --with-use-shell=bash

checking for perl... /usr/bin/perl
checking the Perl version... checked (perl 5)
checking for required Perl modules... Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
configure: error: Failed to find some modules

需要perl的模块支持,才能编译。

yum install perl-Compress-Zlib
yum install perl-Archive-Zip

Running Transaction
  Installing: perl-IO-Compress-Base        ######################### [1/4]
  Installing: perl-Compress-Raw-Zlib       ######################### [2/4]
  Installing: perl-IO-Compress-Zlib        ######################### [3/4]
  Installing: perl-Compress-Zlib           ######################### [4/4]

Installed: perl-Compress-Zlib.noarch 0:2.005-2.fc8
Dependency Installed: perl-Compress-Raw-Zlib.i386 0:2.005-3.fc8 perl-IO-Compress-Base.noarch 0:2.005-2.fc8 perl-IO-Compress-Zlib.noarch 0:2.005-2.fc8
Complete!

Running Transaction
  Installing: perl-Archive-Zip             ######################### [1/1]

Installed: perl-Archive-Zip.noarch 0:1.20-3.fc8
Complete!


4 再次运行 ,/configure --with-use-shell=bash
checking for cups/cups.h... no
configure: error: cups/cups.h could not be found. libcupsys2-dev or
cups???-devel missing?

安装cups-devel模块
输入命令 yum install cups-devel

5,checking for gperf... no
configure: error: gperf not found but needed. Install it.

 yum install gperf

6,需要jdk
rpm -ivh jdk-1_5_0_10-linux-i586.rpm
编译选项为:
./configure --with-use-shell=bash --with-jdk-home=/usr/java/jdk1.5.0_10 --disable-mozilla --with-ant-home=/opt/apache-ant-1.7.0
--disable-mozilla,不编译mozilla的功能,数字签名和mozilla的地址簿不能使用。

7,安装ant,需要1.6.0以上版本。

8,根据提示,在上一层目录运行./bootstrap,然后在source LinuxX86Env.Set.sh

然后在代码根目录输入dmake

9,编译完成版本在install程序在instsetoo_native目录中。