LibreOffice 7.0.6.2
See original GitHub issueI’ve updated the dockerfile, but I’m getting a build error: Any ideas what I’m missing?
#28 202.5 g++: internal compiler error: Killed (program cc1plus)
#28 202.5 Please submit a full bug report,
#28 202.5 with preprocessed source if appropriate.
#28 202.5 See <http://bugzilla.redhat.com/bugzilla> for instructions.
#28 202.5 make[1]: *** [/tmp/libreoffice/workdir/GenCxxObject/UnpackedTarball/libcmis/src/libcmis/atom-document.o] Error 4
#28 202.5 make[1]: *** Deleting file `/tmp/libreoffice/workdir/GenCxxObject/UnpackedTarball/libcmis/src/libcmis/atom-document.o'
#28 227.3 make: *** [build] Error 2
FROM amazonlinux:latest
# see https://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl
ENV LC_CTYPE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV LIBREOFFICE_VERSION=7.0.6.2
# install basic stuff required for compilation
RUN yum install -y yum-utils \
&& yum-config-manager --enable epel \
&& yum install -y \
google-crosextra-caladea-fonts \
autoconf \
ccache \
expat-devel \
expat-devel.x86_64 \
fontconfig-devel \
git \
gmp-devel \
google-crosextra-caladea-fonts \
google-crosextra-carlito-fonts \
icu \
libcurl-devel \
liberation-sans-fonts \
liberation-serif-fonts \
libffi-devel \
libICE-devel \
libicu-devel \
libmpc-devel \
libpng-devel \
libSM-devel \
libX11-devel \
libXext-devel \
libXrender-devel \
libxslt-devel \
mesa-libGL-devel \
mesa-libGLU-devel \
mpfr-devel \
nasm \
nspr-devel \
nss-devel \
openssl-devel \
perl-Digest-MD5 \
which
# install python3
RUN amazon-linux-extras install python3
RUN yum groupinstall -y "Development Tools"
# install gperf
ADD http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz /usr
RUN cd /usr && \
tar -xzvf gperf-3.1.tar.gz && \
cd gperf-3.1 && \
./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1 && \
make && \
make -j1 check && \
make install && \
gperf --version
# install flex
ADD https://github.com/westes/flex/files/981163/flex-2.6.4.tar.gz /usr
RUN cd /usr && \
tar -xzvf flex-2.6.4.tar.gz && \
cd flex-2.6.4 && \
./autogen.sh && \
./configure && \
make && \
make install && \
flex --version
# install doxygen
#ADD https://doxygen.nl/files/doxygen-1.9.1.linux.bin.tar.gz /usr
#RUN cd /usr && \
# tar -xzvf doxygen-1.9.1.linux.bin.tar.gz && \
# mv doxygen-1.9.1/bin/doxygen /usr/bin/doxygen
# install libpng
#ADD https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz /usr
#RUN cd /usr && \
# tar xf libpng-1.6.37.tar.xz && \
# cd libpng-1.6.37 && \
# ./configure --prefix=/usr --disable-static && \
# make && \
# make install
# fetch the LibreOffice source
ADD https://github.com/LibreOffice/core/archive/libreoffice-${LIBREOFFICE_VERSION}.tar.gz /tmp
RUN cd /tmp \
&& tar -xzf libreoffice-${LIBREOFFICE_VERSION}.tar.gz \
&& mv core-libreoffice-${LIBREOFFICE_VERSION} libreoffice
WORKDIR /tmp/libreoffice
# see https://ask.libreoffice.org/en/question/72766/sourcesver-missing-while-compiling-from-source/
RUN echo "lo_sources_ver=${LIBREOFFICE_VERSION}" >> sources.ver
# install liblangtag (not available in Amazon Linux or EPEL repos)
# paste repo info from https://unix.stackexchange.com/questions/433046/how-do-i-enable-centos-repositories-on-rhel-red-hat
COPY config/centos.repo /etc/yum.repos.d/
RUN yum repolist && yum install -y liblangtag && cp -r /usr/share/liblangtag /usr/local/share/liblangtag/
RUN ./autogen.sh \
--disable-avahi \
--disable-cairo-canvas \
--disable-coinmp \
--disable-cups \
--disable-cve-tests \
--disable-dbus \
--disable-dconf \
--disable-dependency-tracking \
--disable-evolution2 \
--disable-dbgutil \
--disable-extension-integration \
--disable-extension-update \
--disable-firebird-sdbc \
--disable-gio \
--disable-gstreamer-1-0 \
--disable-gstreamer-1-0 \
#--disable-gtk \
--disable-gtk3 \
--disable-introspection \
#--disable-kde4 \
--disable-gtk3-kde5 \
--disable-largefile \
--disable-lotuswordpro \
--disable-lpsolve \
--disable-odk \
--disable-ooenv \
--disable-pch \
--disable-postgresql-sdbc \
--disable-python \
--disable-randr \
--disable-report-builder \
--disable-scripting-beanshell \
--disable-scripting-javascript \
--disable-sdremote \
--disable-sdremote-bluetooth \
--enable-mergelibs \
--with-galleries="no" \
--with-system-curl \
--with-system-expat \
--with-system-libxml \
--with-system-nss \
--with-system-openssl \
--with-theme="no" \
--without-export-validation \
--without-fonts \
--without-helppack-integration \
--without-java \
--without-junit \
--without-krb5 \
--without-myspell-dicts \
--without-system-dicts
# Disable flaky unit test failing on macos (and for some reason on Amazon Linux as well)
# find the line "void PdfExportTest::testSofthyphenPos()" (around 600)
# and replace "#if !defined MACOSX && !defined _WIN32" with "#if defined MACOSX && !defined _WIN32"
RUN sed -i '647s/#if !defined MACOSX && !defined _WIN32/#if defined MACOSX \&\& !defined _WIN32/' vcl/qa/cppunit/pdfexport/pdfexport.cxx
# this will take 30 minutes to 2 hours to compile, depends on your machine
RUN make
# this will remove ~100 MB of symbols from shared objects
# strip will always return exit code 1 as it generates file warnings when hitting directories
RUN strip ./instdir/**/* || true
# remove unneeded stuff for headless mode
RUN rm -rf ./instdir/share/gallery \
./instdir/share/config/images_*.zip \
./instdir/readmes \
./instdir/CREDITS.fodt \
./instdir/LICENSE* \
./instdir/NOTICE
# test if compilation was successful
RUN echo "hello world" > a.txt \
&& ./instdir/program/soffice --headless --invisible --nodefault --nofirststartwizard \
--nolockcheck --nologo --norestore --convert-to pdf --outdir $(pwd) a.txt
RUN tar -cvf /tmp/lo.tar instdir/
# Brotli
ENV BROTLI_VERSION=1.0.9
WORKDIR /tmp
# Compile Brotli
ADD https://github.com/google/brotli/archive/v${BROTLI_VERSION}.zip /usr
RUN cd /usr \
&& yum install -y make zip unzip bc autoconf automake libtool \
&& unzip v${BROTLI_VERSION}.zip \
&& cd brotli-${BROTLI_VERSION} \
&& ./bootstrap \
&& ./configure \
&& make \
&& make install
RUN brotli --best /tmp/lo.tar && zip -r layers.zip lo.tar.br
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Release Notes | LibreOffice - Free Office Suite
The latest "fresh" version of LibreOffice, recommended for technology enthusiasts, which contains new features and program enhancements.
Read more >LibreOffice 7.0: Release Notes
Added Outline tracking for Headings in Navigator. It can be in three states: Default, Focus, Off. Try clicking with your mouse in several...
Read more >Old LibreOffice versions download
Old LibreOffice versions download: [v7.3.5] LibreOffice 32-bit Windows Installer. Antivirus: 0 / 0. Version: 7.3.5. Size: 312.3 MB. File: Signature.
Read more >A way to uninstall LibreOffice 7.0.6.2 from your system
How to uninstall LibreOffice 7.0.6.2 Version 7.0.6.2 by The Document Foundation? Learn how to remove LibreOffice 7.0.6.2 Version 7.0.6.2 ...
Read more >File Name
File Name ↓ · File Size ↓ · Date ↓ · Parent directory/, -, -. libreoffice-7.0.6.2.tar.xz, 225.9 MiB, 2021-May-07 19:37. libreoffice-7.0.6.2.tar.xz.asc ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’ve released a major version of this package that works with the latest LibreOffice 7.3!
Check out the docs for a new package here.
We’re not going to support the previous version of a package that worked with a Lambda Layer and an old 6.4 version of LibreOffice.
Feel free to (re)-open a new issue in regards to the recent package version.
@cfoehrdes Thank you for sharing your zip file. I have created a new layer with your package but I’m getting an error
/bin/sh: /tmp/instdir/program/soffice.bin: cannot execute binary file
. Would you happen to know a way to go about this? Thanks for the help!