On 07/09/2011 18:55, Matt Richards wrote:
Oh.. Yeah... I forgot when I attempted my initial configure I had to run it
a few times and install some additional packages. Glad you were able to
Document some of them.
On Wed, Sep 7, 2011 at 12:27 PM, Rob Weir<[email protected]> wriote:
I did this a couple of days ago, but ran into some issues that others
had not come across, so I decided to repeat it. I wiped out the
machine, and started fresh with new 11.04 Ubuntu machine. I tried to
follow the build instructions literally and copied errors messages and
remediations when I found them.
== prep ==
Fresh install of Ubuntu 11.04 on x86, 1 GB RAM, 240 GB HD
Ran update manager, installed all patches, rebooted
== getting the code ==
We're on Subversion now, not Mercurial, so obviously that part of the
instructions changes.
svn co https://svn.apache.org/repos/asf/incubator/ooo/trunk ooo
That didn't work. Needed to "apt-get install subversion" first.
Then code downloaded fine
== build-dep ==
Instructions in the guide say to do:
sudo apt-get build-dep openoffice.org
But that finds 5 dependencies:
The following NEW packages will be installed:
debhelper html2text libmail-sendmail-perl libsys-hostname-long-perl
po-debconf
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
However, if we do:
sudo apt-get build-dep libreoffice
Then we see a lot more. Sure there is a lot of mono junk we don't
need, but it has most of what we do need.
The following NEW packages will be installed:
ant ant-optional appmenu-qt autoconf automake automoc autotools-dev bison
bsd-mailx bsh bsh-gcj ca-certificates-java cli-common-dev comerr-dev
dctrl-tools debhelper default-jdk default-jre default-jre-headless
devscripts dmake docbook-xsl dput ecj ecj-gcj fastjar fdupes flex
fontforge
gcj-4.4-base gcj-4.4-jre-headless gcj-4.4-jre-lib gcj-4.5-base gcj-4.5-jdk
gcj-4.5-jre gcj-4.5-jre-headless gcj-4.5-jre-lib gcj-jdk gcj-jre
gcj-jre-headless gcj-native-helper gperf html2text icedtea-6-jre-cacao
icedtea-6-jre-jamvm icedtea-netx icoutils imagemagick java-common
javahelper
.
.
.
tzdata-java unixodbc unixodbc-dev virtuoso-minimal
virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common wdiff
x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
x11proto-record-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev xulrunner-2.0
xulrunner-2.0-dev xulrunner-2.0-mozjs xulrunner-dev zlib1g-dev
0 upgraded, 477 newly installed, 0 to remove and 0 not upgraded.
Need to get 328 MB of archives.
But a problem. The install of postfix surfaces a configure UI that
cannot
apt-get of postfix appears to lock on configure UI that cannot be
exited out of. At least not gracefully. Searched the web, this
appears to be a known problem
So abort the apt-get, install postfix via the Synaptic package manager
and then rerun sudo apt-get build-dep libreoffice
That runs to completion
== configure ==
cd ooo/main
That step is missing in the instructions.
./configure --disable-mozilla --with-junit="/usr/share/java/junit4.jar"
This required several iterations, as missing packages were identified:
1) pam_appl.h could not be found. libpam-dev or pam-devel missing
sudo apt-get install libpam0g-dev
2) checking for external/unowinreg/unowinreg.dll... configure:
WARNING: not found, will be cross-built using mingw32
configure: error: for rebuilding unowinreg.dll you need the mingw32
C++ compiler.
Specify mingw32 g++ executable name with --with-mingwin.
Or use prebuilt one from
http://tools.openoffice.org/unowinreg_prebuild/680/ and
put it into external/unowinreg
3) configure: error: requirements to build with librsvg support not
met. Use --disable-librsvg or install the missing packages
Escape this with:
./configure --disable-mozilla
--with-junit="/usr/share/java/junit4.jar" --disable-librsvg
4) configure: error: cannot find JUnit jjar; please install one in the
default
location (/usr/share/java), specify its pathname via
--with-junit=..., or disable it via --without-junit
apt-get install junit junit4
configure them runs to completion
== bootstrap ==
./bootstrap
This is where I saw references to Hg still, with output like this:
24be19595acad0a2cae931af77a0148a-LICENSE_source-9.0.0.7-bj.html
2011-09-07 10:53:43
URL:
http://hg.services.openoffice.org/binaries/24be19595acad0a2cae931af77a0148a-LICENSE_source-9.0.0.7-bj.html
[20335/20335] ->
"24be19595acad0a2cae931af77a0148a-LICENSE_source-9.0.0.7-bj.html" [1]
26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
2011-09-07 10:53:44
URL:
http://hg.services.openoffice.org/binaries/26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
[769268/769268<http://hg.services.openoffice.org/binaries/26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz%0A[769268/769268>]
->
"26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz" [1]
284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
2011-09-07 10:53:46
URL:
http://hg.services.openoffice.org/binaries/284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
[1657246/1657246<http://hg.services.openoffice.org/binaries/284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz%0A[1657246/1657246>]
->
"284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz" [1]
2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
2011-09-07 10:53:50
URL:
http://hg.services.openoffice.org/binaries/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
[3568559/3568559<http://hg.services.openoffice.org/binaries/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz%0A[3568559/3568559>]
->
"2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz"
[1]
2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
2011-09-07 10:53:51
URL:
http://hg.services.openoffice.org/binaries/2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
[474681/474681<http://hg.services.openoffice.org/binaries/2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz%0A[474681/474681>]
->
"2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz" [1]
2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
Is this downloading stuff from http://hg.services.openoffice.org/binaries??? I
That completes successfully.
== Build ==
source LinuxX86Env.Set.sh
cd instsetoo_native&& build --all
And that is still running for me.
So overall it looks good. A few places where the doc could be improved.
-Rob
I'm going to be trying this soon so thanks for these pointers - they are
going to prove invaluable.