SliTaz SliTaz Forum

You are not logged in.

#1 2014-01-05 23:35:56

pakboy
Member
Registered: 2012-10-01
Posts: 21

Failed installation Libreoffice slitaz. java 6: jre.bin download error

Hi all,

i am here again. i'm trying to make slitaz my primary OS so i'm installing various softwares.

As title, while installing Libreoffice from tazpanel i obtained an error about java runtime environment (jre);

i also tried to install it alone; here the result:

"

root@pak-slitaz:/home/pak# get-java6-jre

--2014-01-06 00:27:35--  http://www.java.com/en/download/manual_v6.jsp

Resolving www.java.com (www.java.com)... 23.32.221.66, 2a02:26f0:12:18f::1ba3, 2a02:26f0:12:192::1ba3, ...

Connecting to www.java.com (www.java.com)|23.32.221.66|:80... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: /en/download/faq/java_6.xml [following]

--2014-01-06 00:27:36--  http://www.java.com/en/download/faq/java_6.xml

Reusing existing connection to www.java.com:80.

HTTP request sent, awaiting response... 200 OK

Length: 11862 (12K) [text/html]

Saving to: `STDOUT'

100%[======================================>] 11.862      --.-K/s   in 0,002s 

2014-01-06 00:27:38 (7,48 MB/s) - written to stdout [11862/11862]

wget: missing URL

Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

Could not download jre.bin. Exiting.

"

What can i do to install jre?

In addition libreoffice is not present in "menu" (anyway typing "soffice" in terminal, it starts)

Offline

#2 2014-01-06 00:10:01

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

The link to download updated java-jre tazpkg is here:

http://forum.slitaz.org/topic/trouble-installing-java6-jre#post-26770

Offline

#3 2014-01-06 09:54:25

aniguenni
Member
Registered: 2011-12-18
Posts: 153

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

@pakboy

we'll, why you don't give http://www.freeoffice.com/en a try?

You need less memory, It's 100% compatible with ms office and very powerful. You don't need java6-jre to run this amazing office package.

Offline

#4 2014-01-06 10:08:30

nger
Member
Registered: 2013-07-05
Posts: 32

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

I got the same problem. You can install Oracle's OpenOffice via repo - I belive it's still possible.

And yeah, mentioned Freeoffice is good solution. Not so powerfull as Libre/OpenOffice, but still functional and very lightweight

Offline

#5 2014-01-06 16:12:32

pakboy
Member
Registered: 2012-10-01
Posts: 21

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

Hi all guys, thank you for your suggestions.

I'm using math software of libreoffice to write my thesis: i learned that software and i already wrote many pages so i wanna go on with that without trying other software now!

In addition, adopting another software does not solve the problem of libreoffice slitaz pack.

Mojo, you're great: that pakage installs java 6.

To resolve the absent menu entries, what could i do? i've also tried to reinstall with java preinstalled, but they don't appear.

Any help is welcome

Offline

#6 2014-01-06 16:16:23

nger
Member
Registered: 2013-07-05
Posts: 32

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

If you still can't install, may be you should try LO portable version.

http://www.libreoffice.org/download/portable/

It worked with my slitaz install, but it consume more resources than normal installation

Offline

#7 2014-01-06 17:15:58

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

Not sure which package your refering to but java6-jre which is suggested in the get-LibreOffice script is outdated. As I recall java is only required for the printer administration dialog in LibreOffice. Anyway java7-jre is compatible with java6-jre and should work.

The package I linked to installs java7-jre update 45

This is how I test the installed java version after I build the package.

Open terminal:

tux@slitaz:~$ java -version <=type the bold text then hit Enter

java version "1.7.0_45"

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) Server VM (build 24.45-b08, mixed mode)

Go here: http://www.java.com/en/download/installed.jsp

Click red "Verify Java version" button

Click Run this Time button from yellow drop down security bar in chrome.

After the spinner is finished it will report:

Verified Java Version

Completion checkmark

Congratulations!

You have the recommended Java installed (Version 7 Update 45).

LibreOffice Post Install Symlinks

Create symlinks for menu and executables as root in terminal,the script failed because the install path and/or the names of the objects to be linked has changed.

Open the files.list for LibreOffice and use the search on leafpad to find the paths for *.desktop and soffice the executable.

[c]leafpad /var/lib/tazpkg/installed/LibreOffice/files.list[/c]

[c]cd         /usr/share/applications[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/base.desktop[/c]       [c]libreoffice-base.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/impress.desktop[/c]    [c]libreoffice-impress.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/writer.desktop[/c]     [c]libreoffice-writer.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/calc.desktop[/c]       [c]libreoffice-calc.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/math.desktop[/c]       [c]libreoffice-math.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/draw.desktop[/c]       [c]libreoffice-draw.desktop[/c]

[c]ln -s /usr/lib/libreoffice*/share/xdg/printeradmin.desktop[/c] [c]libreoffice-printeradmin.desktop[/c]

    [c]chmod +x /usr/lib/libreoffice*/share/xdg/*.desktop[/c]

    [c]cd /usr/bin[/c]

    [c]ln -sf /usr/lib/libreoffice/program/soffice[/c]

    [c]ln -sf /usr/lib/libreoffice/program/soffice libreoffice${VERSION%.*}[/c]

Offline

#8 2014-01-06 18:43:18

pakboy
Member
Registered: 2012-10-01
Posts: 21

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

yeah, java is installed and verified by checkmark.

About menu entries of libreoffice: i typed to creat symlinks but they already exist.

Libreoffice starts and works properly.

Anyway menu entries in "office" category do not appear; i think it's a "set panel" problem: i don't know how to modify the slitaz menu.

A help, a link to a guide, anything will be appreciated.

Thank you very much.

Offline

#9 2014-01-06 19:11:09

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

If the .desktop files are symlinked correctly to /usr/share/applications they should show in Applications/Office

Info on .desktop files:

https://wiki.archlinux.org/index.php/Desktop_Entries

https://developer.gnome.org/integration-guide/stable/desktop-files.html.en

I have libreoffice 3.5 installed

In xterm a good symlink is baby blue -> the target is green

If the symlink in /usr/share/applications is red then its broken use ln -sf force overwrite the broken link to fix it.

tux@slitaz:~$ ls -la /usr/share/applications/libreoffice*

lrwxrwxrwx    1 root     root           46 May 13  2012 /usr/share/applications/libreoffice-base.desktop -> /usr/lib/libreoffice3.5/share/xdg/base.desktop

lrwxrwxrwx    1 root     root           46 May 13  2012 /usr/share/applications/libreoffice-calc.desktop -> /usr/lib/libreoffice3.5/share/xdg/calc.desktop

lrwxrwxrwx    1 root     root           46 May 13  2012 /usr/share/applications/libreoffice-draw.desktop -> /usr/lib/libreoffice3.5/share/xdg/draw.desktop

lrwxrwxrwx    1 root     root           49 May 13  2012 /usr/share/applications/libreoffice-impress.desktop -> /usr/lib/libreoffice3.5/share/xdg/impress.desktop

lrwxrwxrwx    1 root     root           46 May 13  2012 /usr/share/applications/libreoffice-math.desktop -> /usr/lib/libreoffice3.5/share/xdg/math.desktop

lrwxrwxrwx    1 root     root           54 May 13  2012 /usr/share/applications/libreoffice-printeradmin.desktop -> /usr/lib/libreoffice3.5/share/xdg/printeradmin.desktop

lrwxrwxrwx    1 root     root           48 May 13  2012 /usr/share/applications/libreoffice-writer.desktop -> /usr/lib/libreoffice3.5/share/xdg/writer.desktop

Offline

#10 2014-01-06 19:44:37

pakboy
Member
Registered: 2012-10-01
Posts: 21

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

thank for your patience mojo.

symlinks were broken. i used "ln -sf" as you said and the entries appear now in the office category and with right icon (without the printer admin one, maybe due to java trouble as you recalled, anyway it's not important to me).

The problem is that they don't start! that is they don't launch any libreoffice part (writer or draw or calc etc...)

p.s. obviuosly java version installed is 7 not 6 as i wrote above

Offline

#11 2014-01-06 20:26:14

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

Make all the .desktop files executable

chmod +x /usr/lib/libreoffice*/share/xdg/*.desktop

Have /usr/bin/soffice and /usr/bin/libreoffice{your version from Exec=} which both start the office suite main menu.

If not then:

cd /usr/bin

ln -sf /usr/lib/libreoffice/program/soffice

Now see what the Exec= is for the .desktop file

grep Exec= /usr/lib/libreoffice3.5/share/xdg/*.desktop

ln -sf /usr/lib/libreoffice/program/soffice libreoffice{version from Exec=}

For example on my install I symlinked /usr/bin/soffice to /usr/bin/libreoffice3.5

tux@slitaz:~$ grep -i Exec  /usr/share/applications/libreoffice-*.desktop

/usr/share/applications/libreoffice-base.desktop:Exec=libreoffice3.5 --base %U

/usr/share/applications/libreoffice-calc.desktop:Exec=libreoffice3.5 --calc %U

/usr/share/applications/libreoffice-draw.desktop:Exec=libreoffice3.5 --draw %U

/usr/share/applications/libreoffice-impress.desktop:Exec=libreoffice3.5 --impress %U

/usr/share/applications/libreoffice-math.desktop:Exec=libreoffice3.5 --math %U

/usr/share/applications/libreoffice-printeradmin.desktop:Exec=libreoffice3.5-printeradmin

/usr/share/applications/libreoffice-writer.desktop:Exec=libreoffice3.5 --writer %U

Offline

#12 2014-01-06 20:27:59

pakboy
Member
Registered: 2012-10-01
Posts: 21

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

i'm going crazy... i tried to add to desktop the "writer" by clicking right button on writer entry in menu; so a link has been created on desktop: it has not the icon but it works! writer starts...

i am tempted to unistall and reinstall from zero because maybe there is some junk file somewhere over the rainbow...

Offline

#13 2014-01-07 20:29:31

pakboy
Member
Registered: 2012-10-01
Posts: 21

Re: Failed installation Libreoffice slitaz. java 6: jre.bin download error

here i am.

I'm  just writing, now, for users who could have trouble like mine in the future.

I reinstalled slitaz and java (mojo's package above) and OK.

Next i installed libreoffice from tazpanel obtaining no menu entries, even if the suite office starts and works from terminal.

To have menu entries i followed mojo's steps and all has gone ok: i was making some mistakes and i wasn't pay attention to some facts.

First in /usr/share/applications there were not .desktop files given from mojo (for his installed version software): i have not printeradmin.desktop but other files.

Next i didn't see in the line "ln -sf /usr/lib/libreoffice/program/soffice libreoffice${VERSION%.*}" that i had to insert the exact number of my version...

For linux' newbie users: don't copy and paste mechanically! We have a brain! big_smile

Thanks to all users who answer, especially to mojo.

Bye forum

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]