红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

How to build OpenOffice on ubuntu

How to build OpenOffice on ubuntu

// readme.txt : this document shows you how to compile and install openoffice3.0 on ubuntu.

(1).   run the following command to install svn:
       $ apt-get install subversion
(2).   download source code of openoffice3.0:
       $ svn co svn://172.16.18.248/SD+OS/SD/OOo.3.0
(3).   cd to OOo3.0/SouceCode and unpack the source code package:
       $ tar -xzvf OOo_DEV300_m2_Source_tar.gz
(4).   cd to OOo_DEV300_m2_src/config_office and then run the following command
       $ ./configure --disable-odk --disable-qadevooo --disable-binfilter \
          --disable-mozilla --disable-gnome-vfs --disable-gtk
(5).  it will show you some errors, just do the following sequentially:
       ( for this steps you can do it one by one or run it all at once through a shell script )
       $ apt-get install tcsh
       $ apt-get install g++
       $ apt-get install libarchive1
       $ apt-get install libcupsys2-dev
       $ apt-get install libpam0g-dev
(6).  now repeat step (4), and it will show you that there is no jdk,
       you can download a java sdk from the SUN's official website, say, the following package:
       j2sdk-1_4_2_18-linux-i586.bin
       copy it to /opt, and run by doing so:
       $ chmod 777 j2sdk-1_4_2_18-linux-i586.bin
       $ ./j2sdk-1_4_2_18-linux-i586.bin
(7).  now you have installed java sdk, you should then set environment variables for it,
       add the next two sentences to the .bashrc file under root's home directory:
       export JAVA_HOME=/opt/j2sdk1.4.2_18
       export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
(8).  now repeat step (4) again, then many other errors will appear, just do as follow:
       $ apt-get install gperf
       $ apt-get install libxaw7-dev
       $ apt-get install libfontconfig1-dev
       $ apt-get install bison
       $ apt-get install flex
       $ apt-get install patch
       $ apt-get install ant
(9).  now repeat step (4), this time configure successed. a file named bootstrap was
       created under the main directory of the source code, cd to this directory and run it:
       $ ./bootstrap
       there is another file named LinuxX86Env.Set.sh, run it to set the whole compile enviroment:
       $ .  LinuxX86Env.Set.sh
(10). now you can compile and build all the modules by run the following command:
       $ dmake
       this will takes you a long time( at least 3 hours!!! ), please wait patiently
(11). if any problem happened during dmake, try to do this:
       cd to postprocess/prj, delete writerfilter in the build.lst file
       then cd to main-directory/scp2/source/ooo, command the following line:
       STD_UNO_LIB_FILE_PATCH(gid_File_Lib_Writerfilter,writerfilter)
       in the file file_library_ooo.scp
       rebuild this module and deliver it, then go to main-direcotry and dmake again
(12). after build all of the modules, cd to instsetoo_native/, and rebuild this module:
       $ build & deliver
(13). before you install a new openoffice, you have to remove the old one, try the following command:
       $ apt-get remove openoffice*
(14). cd to unxlngi6.pro/OpenOffice/deb/install/en-US/DEBS, and install openoffice through:
       $ dpkg -i openoffice.org-*.dev
(15). now,  you have install the openoffice3.0 under /opt/openoffice.org3.0 successfully, congratulation!

TOP

发新话题