Difference between revisions of "How to enable APPR with Apache OpenOffice 3.4 on Ubuntu 11.04"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Check FireFox on Ubuntu)
Line 43: Line 43:
 
You can run command "sudo apt-get install libyaml-perl" to install it
 
You can run command "sudo apt-get install libyaml-perl" to install it
  
=== Check FireFox on Ubuntu ===
+
=== Check SVG Viewer on Ubuntu ===
You can run command "sudo apt-get install firefox" to install it. FireFox is needed here to display SVG file.
+
FireFox is selected here to display SVG file. You can run command "sudo apt-get install firefox" to install it.
 +
If you have a recommended one. Please update this section. Thanks!
  
 
=== Install Perl module SVG ===
 
=== Install Perl module SVG ===

Revision as of 12:45, 3 May 2012

APPR is a performance toolset for OpenOffice. You will get a step-to-step guide on "How to enable APPR with Apache OpenOffice 3.4 on Ubuntu 11.04".


Get AOO3.4 build ready with APPR patch

Get the latest source code for Apache OpenOffice 3.4

You can get the source code from "https://svn.apache.org/repos/asf/incubator/ooo/trunk". Please put it under "/opt/aoo340/build", mark it as AOO_HOME. Then you can locate to all the modules under "$AOO_HOME/main".

Get the package for APPR

Here is the link. Please put it under "/opt/aoo340" and uncompress it. You can get a dir "/opt/aoo340/APPR.for.AOO340.on.Ubuntu.11.04/APPR", mark it as APPR_HOME, then run commands below to apply APPR's patch into AOO's codebase.

 cd "$APPR_HOME/src/appr_hook/ooo_patch"
 chmod a+x apply.sh
 ./apply.sh "$AOO_HOME/main"

Make a full build for AOO3.4

Please build AOO's source code with "export TIMELOG=TRUE"

 cd "$AOO_HOME/main"
 autoconf
 ./configure ...
 source LinuxX86.Env.sh
 export TIMELOG=TRUE
 cd instsetoo_native
 build --all -P4

Get the installation package

You can get it at "$AOO_HOME/main/instsetoo_native/unxlngi6.pro/OpenOffice/archive/install/en-US/Apache_OpenOffice_incubating_3.4.0_Linux_x86_install-arc_en-US.tar.gz". Please extract it, rename it to soffice and move it to "/opt/aoo340/". You can get a dir "/opt/aoo340/soffice", mark it as SOFFICE_HOME.

Install Macro library for APPR

You need to launch AOO3.4 by command "$SOFFICE_HOME/openoffice.org3/program/soffice.bin" in ternimal. Then import the Macro library under "$APPR_HOME/starBASIC/script.xlb". Please refer to user guide under "$APPR_HOME/docs".

Install 3rd support for APPR

Check gawk on Ubuntu

You can run command "sudo apt-get install gawk" to install it

Check bash on Ubuntu

You can run command "sudo dpkg-reconfigure dash" to make "dash" as not a default setting. "bash" is needed to run APPR.

Check Perl on Ubuntu

You can run command "sudo apt-get install libperl-dev" to install it

Check YAML on Ubuntu

You can run command "sudo apt-get install libyaml-perl" to install it

Check SVG Viewer on Ubuntu

FireFox is selected here to display SVG file. You can run command "sudo apt-get install firefox" to install it. If you have a recommended one. Please update this section. Thanks!

Install Perl module SVG

You can get it from SVG-2.28. Run the following commands to install it.

 tar xvf SVG-2.28.tar.gz
 cd SVG-2.28
 sudo perl -MCPAN -e "install SVG"

Install Perl module miniXML

You can get it from XML-Mini-1.38. Run the following commands to install it.

 tar xvf XML-Mini-1.38.tar.gz
 cd XML-Mini-1.38
 perl Makefile.PL
 make
 make test
 sudo make install

Install Perl module XML::Simple

You can get it from XML-Simple-2.18. Run the following commands to install it.

 tar xvf XML-Simple-2.18.tar.gz
 cd XML-Simple-2.18
 perl Makefile.PL
 make
 make test
 sudo make install

Run APPR for AOO3.4

Personal tools