[SOLVED] Cannot execute Viber

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Cannot execute Viber

Postby linuxero » Feb 7th, '14, 17:15

Hi Mageians;

I downloaded Viber and copied the folders and files to /usr/share/Viber. I created a script in /usr/bin to call the viber executable as well as a corresponding viber.desktop in /usr/share/applications.

The permissions are reading available for everybody and both the script and the executable are marked as executable.

I can execute the application as root, but I cannot as a normal user!

I tried to compare the permissions with other applications as Skype and all seems to be perfect..can anyone tell me what I am missing here?

Thank you
Last edited by linuxero on Oct 7th, '15, 13:32, edited 1 time in total.
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 7th, '14, 18:36

This does not work for you? viewtopic.php?f=41&t=6469

For the permissions, please show, otherwise we're only guessing.
Code: Select all
ls -al /usr/share/Viber
ls -al /usr/bin/*viber*
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 9th, '14, 16:32

I want to evade using it like that for evey user..

Code: Select all
[root@localhost ~]# ls -al /usr/share/Viber
total 106276
drwxrwxr-x   6 root root     4096 feb  7 16:04 ./
drwxr-xr-x 280 root root    12288 feb  7 15:31 ../
drwxrwxr-x   2 root root     4096 ago 13 15:02 imageformats/
-rwxr-xr-x   1 root root     5120 feb  7 15:59 launcher.db*
-rwxr-xr-x   1 root root  1029368 jul  7  2013 libbfd-2.22-system.so*
-rwxr-xr-x   1 root root 18282384 jul  7  2013 libicudata.so.48*
-rwxr-xr-x   1 root root  1866528 jul  7  2013 libicui18n.so.48*
-rwxr-xr-x   1 root root  1465096 jul  7  2013 libicuuc.so.48*
-rwxr-xr-x   1 root root  4334448 jul  7  2013 libQt5Core.so.5*
-rwxr-xr-x   1 root root   489624 jul  7  2013 libQt5DBus.so.5*
-rwxr-xr-x   1 root root  4190616 jul  7  2013 libQt5Gui.so.5*
-rwxr-xr-x   1 root root  1390328 jul  7  2013 libQt5Network.so.5*
-rwxr-xr-x   1 root root   432752 jul  7  2013 libQt5OpenGL.so.5*
-rwxr-xr-x   1 root root   342400 jul  7  2013 libQt5PrintSupport.so.5*
-rwxr-xr-x   1 root root  2359536 jul  7  2013 libQt5Qml.so.5*
-rwxr-xr-x   1 root root  3553744 jul  7  2013 libQt5Quick.so.5*
-rwxr-xr-x   1 root root   258240 jul  7  2013 libQt5Sql.so.5*
-rwxr-xr-x   1 root root   333800 jul  7  2013 libQt5Svg.so.5*
-rwxr-xr-x   1 root root  4483560 jul  7  2013 libQt5V8.so.5*
-rwxr-xr-x   1 root root 32935424 jul  7  2013 libQt5WebKit.so.5*
-rwxr-xr-x   1 root root   266304 jul  7  2013 libQt5WebKitWidgets.so.5*
-rwxr-xr-x   1 root root  6418808 jul  7  2013 libQt5Widgets.so.5*
-rwxr-xr-x   1 root root 22516218 jul  7  2013 libViber.so*
-rwxr-xr-x   1 root root    14480 jul  7  2013 libXss.so.1*
drwxrwxr-x   2 root root     4096 ago 13 15:02 platforms/
drwxrwxr-x   5 root root     4096 ago 13 15:02 Sound/
drwxrwxr-x   2 root root     4096 ago 13 15:02 sqldrivers/
-rwxr-xr-x   1 root root  1733113 jul  7  2013 Viber*
-rwxr-xr-x   1 root root    29212 ago 12 18:24 Viber_icon.png*
-rwxr-xr-x   1 root root      361 feb  7 16:04 Viber.sh*


Code: Select all
[root@localhost ~]# ls -al /usr/bin/*viber*
-rwxrwxr-x 1 root root 35 feb  7 15:34 /usr/bin/viber*


Code: Select all
[root@localhost ~]# ls -al /usr/share/applications/*viber*
-rw-r--r-- 1 root root 205 feb  7 15:57 /usr/share/applications/viber.desktop
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 9th, '14, 18:21

Not sure what you downloaded, this is what I did:

Download viber:
Code: Select all
wget http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb

Convert it via Alien:
Code: Select all
[doktor5000@Mageia3 ~]$ wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.89.tar.gz && tar -xf alien_8.89.tar.gz && cd alien && chmod +x alien.pl
--2014-02-09 17:16:33--  http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.89.tar.gz
Auflösen des Hostnamen »ftp.de.debian.org (ftp.de.debian.org)«... 141.76.2.4
Verbindungsaufbau zu ftp.de.debian.org (ftp.de.debian.org)|141.76.2.4|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 64478 (63K) [application/x-gzip]
In »»alien_8.89.tar.gz«« speichern.

100%[==============================================================================================================================>] 64.478      --.-K/s   in 0,1s   

2014-02-09 17:16:33 (485 KB/s) - »»alien_8.89.tar.gz«« gespeichert [64478/64478]

[doktor5000@Mageia3 alien]$ sudo ./alien.pl -r --scripts ~/viber.deb
viber-3.1.2.3-2.x86_64.rpm generated


Install it, which needs to be forced:
Code: Select all
[doktor5000@Mageia3 alien]$ sudo urpmi ./viber-3.1.2.3-2.x86_64.rpm --allow-nodeps
Achtung: Die --allow-nodeps-Option wird genutzt. Es können einige seltsame Probleme auftreten
Um die Abhängigkeiten zu erfüllen, werden die folgenden Pakete installiert:
  Paket                          Version      Release       Arch   
(Medium »Core Release«)
  lib64qtsvg5                    5.2.0        2.mga4        x86_64 
(Befehlszeile)
  viber                          3.1.2.3      2             x86_64 
113MB zusätzlicher Speicher werden benötigt
31MB an Paketen werden geholt
Fortfahren mit der Installation der 2 Pakete? (J/n)


    ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/4/x86_64/media/core/release/lib64qtsvg5-5.2.0-2.mga4.x86_64.rpm
lib64qtsvg5-5.2.0-2.mga4.x86_64.rpm von /var/cache/urpmi/rpms wird installiert                                                                                         
Vorbereiten …                    #####################################################################################################################################
      1/2: lib64qtsvg5           #####################################################################################################################################
[doktor5000@Mageia3 alien]$ sudo urpmi ./viber-3.1.2.3-2.x86_64.rpm --allow-nodeps --allow-force
Achtung: Die --allow-force-Option wird genutzt. Es können einige seltsame Probleme auftreten
Achtung: Die --allow-nodeps-Option wird genutzt. Es können einige seltsame Probleme auftreten

                                                                                                                                                                       
SICHERHEIT: Das folgende Paket ist _NICHT_ signiert (OK ((none))): ./viber-3.1.2.3-2.x86_64.rpm                                                                         
viber-3.1.2.3-2.x86_64.rpm von . wird installiert                                                                                                                       
Installation fehlgeschlagen:                                                                                                                                           
        libQt5V8.so.5()(64bit) wird benötigt von viber-3.1.2.3-2.x86_64
        libbfd-2.22-system.so()(64bit) wird benötigt von viber-3.1.2.3-2.x86_64
        libicudata.so.48()(64bit) wird benötigt von viber-3.1.2.3-2.x86_64
        libicui18n.so.48()(64bit) wird benötigt von viber-3.1.2.3-2.x86_64
        libicuuc.so.48()(64bit) wird benötigt von viber-3.1.2.3-2.x86_64
Soll eine Installation ohne Abhängigkeitstest versucht werden? (j/N) j
Vorbereiten …                    #####################################################################################################################################
      1/1: viber                 #####################################################################################################################################

Then run it:
Code: Select all
[doktor5000@Mageia3 alien]$ /usr/share/viber/Viber.sh
[doktor5000@Mageia3 alien]$
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 9th, '14, 22:13

Hi doktor5000;

I downloaded http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip, then I tried to incorporate it into my file system through copy and paste!
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 9th, '14, 22:22

Well, you didn't mention what you put inside your launcher script /usr/bin/viber.
This works fine here:
Code: Select all
[doktor5000@Mageia3 ~]$ cat /usr/bin/viber
#!/bin/sh
/usr/share/viber/Viber.sh
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 9th, '14, 22:42

Code: Select all
[linuxeros@localhost ~]$ cat /usr/bin/viber
#!/bin/bash
/usr/share/Viber/Viber.sh
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 10th, '14, 00:57

Works fine here, maybe you're missing some dependencies for viber. See the output from force installation above, it lists some libraries it needs.

You may want to take a look at the ldd output on your box to see what direct dependencies are missing:
Code: Select all
[doktor5000@Mageia3 ~]$ ldd /usr/share/viber/Viber
        linux-vdso.so.1 (0x00007fff37ffe000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa1745a5000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fa1743a1000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa17409c000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa173e86000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa173ad1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa1747f2000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fa1737cd000)


Bildschirmfoto2_55.png
Bildschirmfoto2_55.png (30.35 KiB) Viewed 9589 times
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 10th, '14, 10:07

Code: Select all
[linuxeros@localhost ~]$ ldd /usr/share/Viber/Viber
        linux-vdso.so.1 (0x00007fffb91d4000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa08c768000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fa08c564000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa08c260000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa08c04a000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa08bc95000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa08c985000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fa08b992000)


I installed the dependency as per your output, but still no way!!

Why can I execute it as root and not as a normal user?!
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 10th, '14, 20:38

What about the permissions of the other folders you inserted via "copy and paste"?
Maybe some of the folders has the executable permission missing for group or others so that your user cannot change into that directory?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 12th, '14, 18:01

They all enjoy the same permissions..double-checked!

Have you tried yourself install it the way I did?
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby doktor5000 » Feb 12th, '14, 22:19

Maybe they all enjoy the same wrong permissions or miss the same bits? Sorry if you don't provide enough details nobody can help you further remotely.

And no, why should I? You've used a lot of time, it's still not working. I've used two minutes and it worked, instructions are above.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot execute Viber

Postby linuxero » Feb 13th, '14, 01:33

doktor5000 wrote:And no, why should I? You've used a lot of time, it's still not working. I've used two minutes and it worked, instructions are above.



Just wanted to see whether it works for you the way I did it..

Thanks anyway..I'll try further then I'll update this thread
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Cannot execute Viber

Postby nightshadow » Jan 28th, '15, 00:24

Can anyone confirm this is still working ?
I've changed the alien version in the link, since it's outdated, built RPM and installed, but when I open it and enter my number, it says 'An internet connection is required to activate viber...' although I am connected to wifi network.
Is it only me ?
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: Cannot execute Viber

Postby jiml8 » Jan 28th, '15, 04:37

I use viber all the time. I installed the RPM from http://www.viber.com/en/products/linux and it works without incident.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: Cannot execute Viber

Postby linuxero » Oct 7th, '15, 13:30

@jiml8
works fine
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: [SOLVED] Cannot execute Viber

Postby BlueDragon » Mar 20th, '17, 14:33

Just to update this older thread, this worked fine for me just now:
Code: Select all
[root@localhost Software]# urpmi viber.rpm --allow-nodeps
WARNING: --allow-nodeps option is in use. Some strange problems may happen
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
(medium "Core Updates (urpmi.addmedia3)")
  lib64png12_0                   1.2.57       1.mga5        x86_64 
(command line)
  viber                          6.5.5.1481   2             x86_64 
336MB of additional disk space will be used.
118MB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


    http://srv3.tuxinator.org/mageia/distrib/5/x86_64/media/core/updates/lib64png12_0-1.2.57-1.mga5.x86_64.rpm
installing viber.rpm                                                                                   
/var/cache/urpmi/rpms/lib64png12_0-1.2.57-1.mga5.x86_64.rpm
Installation failed:
        libcrypto.so.10()(64bit) is needed by viber-6.5.5.1481-2.x86_64
        libssl.so.10()(64bit) is needed by viber-6.5.5.1481-2.x86_64
Try installation without checking dependencies? (y/N) y
Preparing...                     #####################################################################
      1/2: lib64png12_0          #####################################################################
      2/2: viber                 #####################################################################
BlueDragon
 
Posts: 54
Joined: Feb 22nd, '17, 20:47


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest