Compiling libreoffice from source using AlienBob's SlackBuild
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Compiling libreoffice from source using AlienBob's SlackBuild
I've encountered a problem with AlienBob's compiled version of libreoffice. It doesn't make any difference whether I use 14.2, current with or without KDE5 I get the same problem
It's been suggested that perhaps I've not using an up to date system or a system that not clean in some way.
My system is up to date - I'm using current with kde4. I have few extra packages installed
As the suspicion is that my system is not clean I've elected to compile libreoffice myself.
I can compile libreoffice after cloning libreoffice's git.
I can't compile alienbob's libreoffice. I get this message
Quote:
:
: *****************************************************************
: ERROR: ERROR: Missing files at /tmp/build/tmp-libreoffice/libreoffice-6.3.0.4/solenv/bin/modules/installer/scriptitems.pm line 1212.
: *****************************************************************
Thu Sep 19 23:14:09 2019 (00:02 min.)
Failed to install: No such file or directory at /tmp/build/tmp-libreoffice/libreoffice-6.3.0.4/solenv/bin/ooinstall line 91.
make: *** [Makefile:336: install] Error 2
Installing XML files because 'make distro-pack-install' fails to do so...
mv: cannot stat '/tmp/build/package-libreoffice/usr/lib64/libreoffice/sdk/classes': No such file or directory
libreoffice.SlackBuild FAILED at line 1415
Can anyone point me in the right direction as to what I might be missing?
You only show the last few lines from the build log. The real error will have occurred way earlier. You can capture the full build output by appending the following to your commandline:
Code:
2>&1 | tee /tmp/build_libreoffice.log
which will still show the full output on your screen while also writing a copy into the logfile /tmp/build_libreoffice.log.
Then I have a script called "checkpkg" which I always use to check my build logs. Download it and use it as follows:
Code:
sh checkpkg -l /tmp/build_libreoffice.log
That will still give you a lot of output, but only the relevant stuff that needs your attention. At the beginning you should be able to find the real cause of your build failure.
By the way.
What is the failure with my binary packages of LibreOffice for Slackware-current?
Thanks for pointing out my error! I should have learnt this lesson by now - start from the beginning of the log.
It's looking like it's complaining that I haven't got gpgme installed. Downloaded your package dated 07-Mar-2007 05:15 which looks like it was compiled against Slackware-11.0.
I'm now getting a lot further.
Quote:
Originally Posted by Alien Bob
By the way.
What is the failure with my binary packages of LibreOffice for Slackware-current?
The problem I'm getting with your packaged version of libreoffice is when I try and add a macro to a personalised toolbar in Calc by following the menu
Tools -> Customize -> Toolbars (tab)
Then in the “Category” drop down menu I choose the option “Macros”
LibreOffice then presents the “LibreOffice 6.2 Document Recovery” message box and crashes out.
I'm hoping that compiling with your SlackBuild might throw some more light on what I'm seeing. So far it's highlighted the gpgme issue and that I might be out of step in not using your openjdk package.
So now just waiting for the compilation to complete.
It's looking like it's complaining that I haven't got gpgme installed. Downloaded your package dated 07-Mar-2007 05:15 which looks like it was compiled against Slackware-11.0.
I don't understand why you use an ancient version of gpgme when this is part of Slackware 14.2 and -current?
Your problems may stem from having an incomplete install or a system broken for other reasons.
For grins I just tried what aikempshall described above Tools - Customize - Toolbars - Category - Macros and I see the same behaviour he is reporting. Drops into document recovery mode. I'm using the 6.3.0.4 version from Eric. I'm running 64-current with latest Plasma5.
The problem I'm getting with your packaged version of libreoffice is when I try and add a macro to a personalised toolbar in Calc by following the menu
Tools -> Customize -> Toolbars (tab)
Then in the “Category” drop down menu I choose the option “Macros”
LibreOffice then presents the “LibreOffice 6.2 Document Recovery” message box and crashes out.
Huh, same here for me, and I'm current on current. (XFCE, though.) Bug in Libre Office?
For grins I just tried what aikempshall described above Tools - Customize - Toolbars - Category - Macros and I see the same behaviour he is reporting. Drops into document recovery mode. I'm using the 6.3.0.4 version from Eric. I'm running 64-current with latest Plasma5.
More fun is that I also run slackware64-current with Plasma5 on the laptop here, and cannot reproduce this.
I don't understand why you use an ancient version of gpgme when this is part of Slackware 14.2 and -current?
Your problems may stem from having an incomplete install or a system broken for other reasons.
That's puzzled me for a few days.
I've now seen in the current changelog that there is a n/gpgme-1.13.1-x86_64-1.txz.
Using slackpkg tried every hoop I could think of to reinstall the correct gpgme.
Thinking it would put me in a clean position I'd thought I'd use slackpkg clean-system, as I'm running on a test platform with very few extra packages seemed the sensible solution.
Everything went well, though still couldn't reinstall gpgme from slackpkg even though slackpkg search had reference to it. So installed it manually.
Then tried to recompile libreoffice using alienbob's slackbuild. It fails with
Quote:
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/build/tmp-libreoffice/libreoffice-6.3.0.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error running configure at ./autogen.sh line 302.
sed: can't read Makefile: No such file or directory
libreoffice.SlackBuild FAILED at line 1381
I suspect that slackpkg clean-system has cleaned a bit too much.
Well, I can reproduce the crash myself now.
So I ran LibreOffice Writer in a debugger and noticed that it crashes in a OpenJDK library. So I removed the openjdk package from my system and tried again.
This time I am getting the error ''LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice - Advanced". And then it crashes.
I've managed to overcome my problems with compiling libreoffice with Alien Bob's slackbuild. The problem was with whatever I'd done with the package gpgme. I'm not really sure how I overcame the problem - may have been simply re-powering my machine!
Any way If I compile libreoffice with Alien Bob's SlackBuild this is what I find -
It compiles sucessfully
After installing the packages I get the crash when I run calc using Kickoff Application Launcher -> Office -> Calc
I get the crash when I run calc from the command line
Code:
/usr/lib64/libreoffice/program/soffice --calc
I DO NOT get the crash when I run Alien Bob's pre-packaged calc from the command line
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.