OpenSolaris Build Instructions/Configure Errors

From Apache OpenOffice Wiki
Jump to: navigation, search

Once you have finished downloading the OpenOffice.org source code, you will have to run the configure script. Below are some errors that you may encounter when trying to run this configure script on OpenSolaris 2008.11.


Errors

Error: tcsh not found in $PATH

checking which shell to use... tcsh
checking for tcsh... no
configure: error: tcsh not found in $PATH


FIX: use flag: --with-use-shell=bash (which is the default now since DEV300_m77, anyway)


Error: GCC not found

checking gcc home... 
checking for gcc... no
checking for cc... no
checking for cl.exe... no
which: no gcc in (/export/home/tiago:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin)
configure: error: in `/export/home/tiago/OOo/DEV300_m45':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


FIX: download GCC from Package Manager


Error: GCC Linker

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... /usr/bin/gcc
checking the GNU gcc compiler version... checked (gcc 3.4.3)
checking gcc linker... 
configure: error: failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris


FIX: linker error with GCC on OpenSolaris


searching this phrase, there is a conversation from a mailing list which details the exact cause, and only offers the suggestion of using Sun Studio to fix these problems

  • the easiest way I found was to simply create the CC and CXX environmental variables:
CC=/opt/SunStudioExpress/bin/cc
CXX=/opt/SunStudioExpress/bin/CC

OUTPUT AFTER ABOVE FIX:

checking for gcc... /opt/SunStudioExpress/bin/cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/SunStudioExpress/bin/cc accepts -g... yes
checking for /opt/SunStudioExpress/bin/cc option to accept ISO C89... none needed
checking whether to enable pch feature... no


Error: [GNU make] not found

checking whether to enable pch feature... no
checking for GNU make...


FIX: install SUNWgmake


Error: Archive/Zip.pm not found

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/perl5/5.8.4/lib/i86pc-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
configure: error: Failed to find some modules


FIX: install Archive/Zip.pm

  • make sure that /usr/bin:/opt/SunStudioExpress/bin are first in your PATH
    • Sample way to do this: export PATH=/usr/bin:/opt/SunStudioExpress/bin:$PATH
    • "Note that the command above makes sure that Perl does not use GNU make, which can cause trouble at this point. Later you will need GNU make to build OOo." (from the wiki page)
  • before you run the CPAN command, make sure to sudo up to root!
  • run: pfexec perl -MCPAN -e 'shell'


Error: cups.h not be found

checking cups/cups.h usability... no
checking cups/cups.h presence... no
checking for cups/cups.h... no
configure: error: cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?


FIX: install cups

Error: JAVA_HOME was not set

checking whether to build with Java support... yes
checking for java... /usr/bin/java
checking the installed JDK... checked (JDK 1.6.0_10)
checking for javac... /usr/bin/javac
checking for javadoc... /usr/bin/javadoc
configure: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script
configure: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed
configure: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly
checking for jawt lib name... -ljawt


FIX: specify the JAVA_HOME include path in the configure command: --with-jdk-home=/usr/jdk/instances/jdk1.6.0

  • this path is to the home directory where the bin and lib folders are


Error: gperf not found

checking for gperf... no
configure: error: gperf not found but needed. Install it.


FIX: install gperf


Error: no g++ includes

no g++ includes
./configure: line 10672: showrev: not found


FIX: still researching


Error: unowinreg.dll not found

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


FIX: download the file. Alternatively, if you don't need the OOo SDK, just add "--disable-odk" to your ./configure options.

Error: db4 not found

checking for db.h... no
checking for db4/db.h... no
configure: error: no. install the db4 libraries

FIX: install libdb-dev

Error: Install curl to run this script

checking which curl to use... external
checking for curl-config... no
configure: error: install curl to run this script

FIX: install libcurl-dev (libcurl4-gnutls-dev)

Error: Package silgraphite was not found in the pkg-config search path

checking which graphite to use... external
checking for silgraphite ... Package silgraphite was not found in the pkg-config search path. Perhaps you should add the directory containing `silgraphite.pc' to the PKG_CONFIG_PATH environment variable No package 'silgraphite' found

FIX: install libgraphite-dev

Error: Xaw include headers not found

checking for X11/Xaw/Label.h... no
configure: error: Xaw include headers not found

FIX: install libxaw7-dev

Error: X11/extensions/Xrandr.h could not be found

checking whether to enable RandR support... checking for xrandr >= 1.2... checking X11/extensions/Xrandr.h usability... no
checking X11/extensions/Xrandr.h presence... no
checking for X11/extensions/Xrandr.h... no
configure: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?

FIX: install libxrandr-dev

Error: you need neon >= 0.24.x for system-neon

checking which neon to use... external
checking for neon >= 0.24.0... configure: error: you need neon >= 0.24.x for system-neon

FIX: install libneon-dev

Error: hunspell headers not found.

checking for hunspell/hunspell.hxx... no
configure: error: hunspell headers not found.

FIX; install libhunspell-dev

Error: altlinuxhyph headers not found

checking for hyphen.h... no
configure: error: altlinuxhyph headers not found.

FIX: install libhyphen-dev

Package gconf-2.0 was not found in the pkg-config search path

checking whether to enable GConf support... yes
checking for gconf-2.0 ... Package gconf-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gconf-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gconf-2.0' found

FIX: install libgnome-dev

Error: requirements to build the gtk-plugin not met.

checking for gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ... configure: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages

FIX: install libgtk2.0-dev

Error: lucene-core.jar replacement not found

checking for /usr/share/java/lucene-core-2.3.jar... no checking for /usr/share/java/lucene.jar... no configure: error: lucene-core.jar replacement not found

FIX: install liblucene2-java. If your distribution is using a newer version than 2.3, get the 2.3.0 tarball from apache.org, unpack it, run ant, then copy build/lucene-core-2.3 jar to /usr/share/java.

Error: lucene-analyzers.jar replacement not found.

checking for /usr/share/java/lucene-analyzers-2.3.jar... no
checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar... no
configure: error: lucene-analyzers.jar replacement not found.

FIX: Dig up the 2.3 jar from somewhere (eg. here, then copy to /usr/share/java/lucene-analyzers-2.3.jar.

Error: hsqldb.jar not found

FIX: Install libhsqldb-java.

Error: saxon.jar replacement not found

FIX: Install libsaxon-java

Personal tools