Wednesday, May 20, 2015

What? you want to install skype on Fedora 64-bit?

As most tech blogs suggest I could get through it. But the installation might not be same to everyone. Basically few steps to follow.

Step 1 : Install dependencies

Log in to root user
su -
## OR ##
sudo -i
 


yum install alsa-lib.i686 fontconfig.i686 freetype.i686 glib2.i686 libSM.i686 libXScrnSaver.i686

and set of commands below

yum install alsa-lib.i686 fontconfig.i686 freetype.i686 \
glib2.i686 libSM.i686 libXScrnSaver.i686 libXi.i686 \
libXrandr.i686 libXrender.i686 libXv.i686 libstdc++.i686 \
pulseaudio-libs.i686 qt.i686 qt-x11.i686 zlib.i686 qtwebkit.i686
 
 
 


Download and extract skype

cd /tmp
 
## Skype 4.3 Dynamic for Fedora/CentOS/RHEL/SL ##
wget --trust-server-names http://www.skype.com/go/getskype-linux-dynamic



mkdir /opt/skype
 
## Extract Skype 4.3 ##
tar xvf skype-4.3* -C /opt/skype --strip-components=1


Create Launcher

ln -s /opt/skype/skype.desktop /usr/share/applications/skype.desktop
ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/icons/skype.png
ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/pixmaps/skype.png
 
touch /usr/bin/skype
chmod 755 /usr/bin/skype


Open skype file in bin and add the edit to add the below scripts
Open
vi /usr/bin/skype

Add:

#!/bin/sh
export SKYPE_HOME="/opt/skype"
$SKYPE_HOME/skype --resources=$SKYPE_HOME $*

and finally hope we got there

[root@fedora ~]$ skype

Errors :(

If this is not working and gives errors like below.


[root@fedora ~]$ skype 

skype: error while loading shared libraries: libXss.so.1: cannot open shared 

object file: No such file or directory



Simply search the trouble making dependency like below


[root@fedora ~]$ yum whatprovides libXss.so.1 

libXScrnSaver-1.2.0-1.fc12.i686 : X.Org X11 libXss runtime library 
Repo : fedora 
Matched from: 
Other : libXss.so.1



It shows you where to find the library.

then install the missing part

yum install libXScrnSaver.i686

Then again when trying to install skype if you get
[root@fedora ~]$ skype 
skype: error while loading shared libraries: libQtDBus.so.4: cannot open shared object file: No such file or directory

Type below

[retarp@misterlappy ~]$ yum whatprovides libQtDBus.so.4 
Loaded plugins: langpacks, presto, refresh-packagekit 
Adding en_US to language list 
1:qt-4.7.0-3.fc14.i686 : Qt toolkit 
Repo : fedora 
Matched from: 
Other : libQtDBus.so.4 


1:qt-4.7.1-17.fc14.i686 : Qt toolkit 
Repo : updates 
Matched from: 
Other : libQtDBus.so.4

and install the library as given in the red block.

yum install qt.i686

DO it for all the missing dependencies. It will be alright soon. I found it through log of references. The below will give you more insights if you want.

http://www.if-not-true-then-false.com/2012/install-skype-on-fedora-centos-red-hat-rhel-scientific-linux-sl/

http://emildavis.info/FedoraSkype.html