在fedora8下編譯OpenOffice

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目錄中。            
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章