Ask Your Question

Build LibreOffice without GUI on Ubuntu [closed]

asked 2017-08-24 07:29:46 +0200

andrei gravatar image

updated 2017-08-24 07:30:19 +0200

My goal is to run the LibreOffice on a AWS Lambda for converting documents. I want to build LibreOffice without GUI and all the extra that is not needed for conversion. Need to get the minimum size of LibreOffice.


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-21 15:08:31.902505

2 Answers

Sort by » oldest newest most voted

answered 2017-11-26 14:36:34 +0200

vladholubiev gravatar image


Recently I managed to run LibreOffice inside AWS Lambda.

More info here, including compilation instructions

edit flag offensive delete link more


You are removing licenses from the resulting package. Surely you have a lot of gain doing that?

Btw: you do --without-firebird-sdbc twice.

Mike Kaganski gravatar imageMike Kaganski ( 2017-11-26 18:11:04 +0200 )edit

answered 2017-08-24 07:47:19 +0200

updated 2017-08-24 07:47:59 +0200

You should not build LO to have no GUI, unless you clearly understand the implications. However, you can run it without GUI: there is --headless switch, and some other switches imply headless (so no need to specify it explicitly) - e.g., --convert-to.

If you feel like you certainly need to try to strip LO from "unnecessary" stuff, then refer to documentation available with

./ --help

in LibreOffice development environment set up after instructions in Development wiki. (Notice that there is --disable-gui switch, but read the disclaimer given for it carefully.)

Anyway, this relates to development (in a way), and this kind of questions is better asked in #libreoffice-dev on IRC, or on our developer's mailing list.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-08-24 07:29:46 +0200

Seen: 1,481 times

Last updated: Nov 26 '17