Difference between revisions of "OpenSolaris Build Instructions/Configure Errors"
(OpenSolaris Build Errors (initial)) |
m (→Error: cups.h not be found: fixed link) |
||
Line 113: | Line 113: | ||
− | == Error: | + | == Error: [http://en.wikipedia.org/wiki/Common_Unix_Printing_System cups.h] not be found == |
<source lang="text"> | <source lang="text"> | ||
Line 124: | Line 124: | ||
'''FIX:''' install cups | '''FIX:''' install cups | ||
− | |||
== Error: JAVA_HOME was not set == | == Error: JAVA_HOME was not set == |
Revision as of 06:33, 24 April 2009
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
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)
- Sample way to do this:
- 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