Page 1 of 1

[SOLVED] Cannot execute Viber

PostPosted: Feb 7th, '14, 17:15
by linuxero
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

Re: Cannot execute Viber

PostPosted: Feb 7th, '14, 18:36
by doktor5000
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*

Re: Cannot execute Viber

PostPosted: Feb 9th, '14, 16:32
by linuxero
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

Re: Cannot execute Viber

PostPosted: Feb 9th, '14, 18:21
by doktor5000
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]$

Re: Cannot execute Viber

PostPosted: Feb 9th, '14, 22:13
by linuxero
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!

Re: Cannot execute Viber

PostPosted: Feb 9th, '14, 22:22
by doktor5000
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

Re: Cannot execute Viber

PostPosted: Feb 9th, '14, 22:42
by linuxero
Code: Select all
[linuxeros@localhost ~]$ cat /usr/bin/viber
#!/bin/bash
/usr/share/Viber/Viber.sh

Re: Cannot execute Viber

PostPosted: Feb 10th, '14, 00:57
by doktor5000
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 9735 times

Re: Cannot execute Viber

PostPosted: Feb 10th, '14, 10:07
by linuxero
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?!

Re: Cannot execute Viber

PostPosted: Feb 10th, '14, 20:38
by doktor5000
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?

Re: Cannot execute Viber

PostPosted: Feb 12th, '14, 18:01
by linuxero
They all enjoy the same permissions..double-checked!

Have you tried yourself install it the way I did?

Re: Cannot execute Viber

PostPosted: Feb 12th, '14, 22:19
by doktor5000
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.

Re: Cannot execute Viber

PostPosted: Feb 13th, '14, 01:33
by linuxero
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

Re: Cannot execute Viber

PostPosted: Jan 28th, '15, 00:24
by nightshadow
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 ?

Re: Cannot execute Viber

PostPosted: Jan 28th, '15, 04:37
by jiml8
I use viber all the time. I installed the RPM from http://www.viber.com/en/products/linux and it works without incident.

Re: Cannot execute Viber

PostPosted: Oct 7th, '15, 13:30
by linuxero
@jiml8
works fine

Re: [SOLVED] Cannot execute Viber

PostPosted: Mar 20th, '17, 14:33
by BlueDragon
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                 #####################################################################