在fedora8下编译OpenOffice

本文介绍在Fedora 8.0系统中从源代码编译OpenOffice的过程,包括解决依赖问题、配置编译选项及安装所需组件等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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目录中。            
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值