How to install LibreOffice 4.x or 5.x on Solaris OS

  • Posted on: 31 January 2018
  • By: Solaris-Since

To install LibreOffice on Solaris x64 platform you have to add software repository to your system and then install LibreOffice. OpenIndiana users may need the workaround mentioned here: http://sfe.opencsw.org/workbench-2017-01 and replace every "s11" with "oih".

For Solaris 11.x:
To register a new repository you have to execute as a power user this command:
pkg set-publisher -G '*' -g http://sfe.opencsw.org/localhosts11 localhosts11

For Solaris 11.4 beta (was: Solaris 12 in development (*))
To register a new repository you have to execute as a power user this command:
pkg set-publisher -G '*' -g http://sfe.opencsw.org/localhosts12 localhosts12

When your repository is ready you can install LibreOffice,
LibreOffice 4.4.x comes in 2 packages: libreoffice4 libreoffice4-desktop-int
LibreOffice 5.2.x comes in 2 packages: libreoffice52 libreoffice52-desktop-int

Choose the version you would like to install and then run command

For LibreOffice 5.2.x you have to execute:
pkg install -v libreoffice52 libreoffice52-desktop-int

For LibreOffice 4.4.x you have to execute:
pkg install -v libreoffice4 libreoffice4-desktop-int

During the installation pkg will install all necessary libraries and other packages.

Here is a complete example how LibreOffice 5.2 was installed on Solaris 11.3 desktop:
pkg install -v libreoffice52 libreoffice52-desktop-int
Packages to install: 6
Mediators to change: 1
Services to change: 2
Estimated space available: 934.34 GB
Estimated space to be consumed: 1.68 GB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed mediators:
mediator libreoffice:
version: None -> 5.2 (system default)

Changed packages:
localhosts11
desktop/application/libreoffice52
None -> 5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T191502Z
desktop/application/libreoffice52-desktop-int
None -> 5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T192726Z
sfe/library/g++/libcdr
None -> 0.1.3,5.11-0.0.175.3.1.0.5.0:20161224T143401Z
sfe/library/g++/libixion-011
None -> 0.11.1,5.11-0.0.175.3.1.0.5.0:20161224T135901Z
sfe/library/g++/liborcus-011
None -> 0.11.2,5.11-0.0.175.3.1.0.5.0:20161224T142803Z
sfe/library/mdds-12
None -> 1.2.2,5.11-0.0.175.3.1.0.5.0:20161224T135236Z

Services:
restart_fmri:
svc:/application/desktop-cache/desktop-mime-cache:default
svc:/application/desktop-cache/mime-types-cache:default

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 6/6 14652/14652 258.9/258.9 1.8M/s

PHASE ITEMS
Installing new actions 15387/15387
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 6/6
Updating package cache 5/5

If the installation process fails because of the network issues
DOWNLOAD PKGS FILES XFER (MB) SPEED
desktop/application/libreoffice52 0/6 10865/14652 211.0/258.9 151k/s

Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:
http protocol error: code: 500 reason: Internal Server Error
URL: 'http://sfe.opencsw.org/localhosts11/file/1/83755365f1790a7413e5523b6b0a64123d5b8c5a'

then you have to re-run the command and it will continue from where it stopped.

When LibreOffice is installed you can start it either from your desktop launch menu Applications -> Office -> LibreOffice 5.2 or you can start it as /usr/lib/libreoffice5.2/program/soffice from your terminal window.

You can check for the latest updates by executing these commands:
pkg refresh
pkg update -nv

If there are updates available:
pkg update -nv
Packages to update: 2
Services to change: 1
Estimated space available: 934.00 GB
Estimated space to be consumed: 816.26 MB
Create boot environment: No
Create backup boot environment: Yes
Rebuild boot archive: No

Changed packages:
localhosts11
desktop/application/libreoffice52
5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T191502Z -> 5.2.4.2,5.11-0.0.175.3.1.0.5.0:20170107T191831Z
desktop/application/libreoffice52-desktop-int
5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T192726Z -> 5.2.4.2,5.11-0.0.175.3.1.0.5.0:20170107T192237Z

Services:
restart_fmri:
svc:/application/desktop-cache/mime-types-cache:default

then you can install the updated version
pkg update -v
Packages to update: 2
Services to change: 1
Estimated space available: 933.68 GB
Estimated space to be consumed: 816.26 MB
Create boot environment: No
Create backup boot environment: Yes
Rebuild boot archive: No

Changed packages:
localhosts11
desktop/application/libreoffice52
5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T191502Z -> 5.2.4.2,5.11-0.0.175.3.1.0.5.0:20170107T191831Z
desktop/application/libreoffice52-desktop-int
5.2.3.3,5.11-0.0.175.3.1.0.5.0:20170103T192726Z -> 5.2.4.2,5.11-0.0.175.3.1.0.5.0:20170107T192237Z

Services:
restart_fmri:
svc:/application/desktop-cache/mime-types-cache:default

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 2/2 3544/3544 100.5/100.5 4.8M/s

PHASE ITEMS
Installing new actions 95/95
Updating modified actions 3456/3456
Updating package state database Done
Updating package cache 2/2
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 2/2
Updating package cache 5/5

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
https://support.oracle.com/rs?type=doc&id=2045311.1
---------------------------------------------------------------------------

Please visit http://sfe.opencsw.org/quickrepolinks for more information about other repositories

(*) Solaris 12 is not released yet and LibreOffice might not be production ready for this OS.
Use it with caution.
Note: Solaris is a Trademark of Oracle. "Solaris 12" is just a working title and if you google a bit around, you'll see that the Solaris Release model has change to a continuos mode, what is indeed a very good idea in my personal view (tomww). So next we might see new cool features under the name Solaris 11.4 instead of the name Solaris 12.

Originally posted 20170109
Edit: 20170205 add link to OpenIndiana workaround (tomww)
Edit: 20170207 add hint to replace "s11" with "oih" for OpenIndana Hipster. (tomww)
Edit: 20170403 Add Note about the working title "Solaris 12" (tomww)
Edit: 20180131 add new Name: Solaris 11.4 beta (tomww)

Comments

Hi,

I just realized the libreoffice5.2 availability which made me rely excited.
rely appreciated all your hard working effort.

So far I am having similar issues I had with 4.x version as it still depends on gstreamer.
P.S. I am on s12 build 114.

pkg install -v libreoffice52 libreoffice52-desktop-int
Creating Plan (Solver setup): /
pkg install: No matching version of desktop/application/libreoffice52-desktop-int can be installed:
Reject: pkg://localhosts12/desktop/application/libreoffice52-desktop-int@5.2.3.3-5.12.0.0.0.112.1
Reason: No version matching 'require' dependency desktop/application/libreoffice52 can be installed
----------------------------------------
Reject: pkg://localhosts12/desktop/application/libreoffice52@5.2.3.3-5.12.0.0.0.112.1
pkg://localhosts12/desktop/application/libreoffice52@5.2.4.2-5.12.0.0.0.112.1
Reason: All acceptable versions of 'require' dependency on library/audio/gstreamer@0.10.32-5.12.0.0.0.87.0 are obsolete
----------------------------------------
Reject: pkg://localhosts12/desktop/application/libreoffice52-desktop-int@5.2.4.2-5.12.0.0.0.112.1
Reason: No version matching 'require' dependency desktop/application/libreoffice52 can be installed
No matching version of desktop/application/libreoffice52 can be installed:
Reject: pkg://localhosts12/desktop/application/libreoffice52@5.2.3.3-5.12.0.0.0.112.1
pkg://localhosts12/desktop/application/libreoffice52@5.2.4.2-5.12.0.0.0.112.1
Reason: [already rejected; see above]

Hi eli101,

thank you for being really exited, that is fuelling the developers motors very much (down-under and here as well (: )

Yes, that weird pkgdepend might have thought again that this would be a good idea to depend on gstreamer. I'll have a quick look at this issue and if I can fix it with small efforts, uplad a new package right then. Eventually I can see why it installed on my system without complaining.

If you have registered the repository RSS feed in your RSS reader on your mobile or browser, then you can see the new upload when it is finished.
http://sfe.opencsw.org/localhosts12/feed

Regards,
Thomas

Update:
Found that build machine is on build 112, gstreamer "old" uninstalls on upgrade to 113.
So famous pkgdepend is found non-guilty (this time *g*).
I've just dropped the package dependency on gstreamer completely for now.
Install should now work after the repo has been uploaded (very soon!). Please drop me a note.
The new package w/o gstreamer dependency will have a timestamp of today (or later): 20170110TxxxxxxZ
(The Build machine may now get an upgrade to build 114 as well.)

Sorry for the late reply,

I re-tried the upgrade and it worked flawlessly.

Thanks again for all your great work,
Eli

Hi all,

I've been made aware of missing dependency if you install on OpenIndiana Hipster:

You need to add "g++/boost" package like this:

pkg install -v libreoffice52 libreoffice52-desktop-int pkg://localhostoih/system/library/g++/boost@1.59.0

Regards,
Thomas

kudos to alp in the IRC channel #openindiana on irc.freenode.org

Hi,
a quick note about installing LibreOffice 5.2 on Beta Solaris 11.4.
On my build system the package dconf has been missing:
prompt> loffice
ld.so.1: soffice.bin: fatal: libdconf.so.1: open failed: No such file or directory

Install the package "dconf" and LibreOffcie should start normally:
pfexec pkg install library/gnome/dconf

Regards,
Thomas