Sunday, 11 March 2012

Installing Skype on CentOS 6 64-bit

1. Download Skype - you will need the static version.

2. Extract out the downloaded tarball somewhere appropriate on your system - I extract out under /opt and make a symlink:

cd /opt ; tar -jxvf ~/Downloads/skype_static-2.2.0.35.tar.bz2
ln -s skype_static-2.2.0.35 skype

3. Skype is a 32-bit app and as a result requires specific 32-bit libraries to be installed. Install the 32-bit dependencies for skype:

yum install gamin.i686 zlib.i686 libXinerama.i686 libXv.i686 libxcb.i686 nss-softokn-freebl.i686 libX11.i686 alsa-lib.i686 expat.i686 libXrender.i686 libICE.i686 glibc.i686 libXext.i686 libselinux.i686 freetype.i686 libXrandr.i686 libuuid.i686 libXScrnSaver.i686 fontconfig.i686 libSM.i686 libXau.i686 glib2.i686 libXi.i686 libgcc.i686 libstdc++.i686

4. Run /opt/skype/skype to start Skype up on your system.

5. (Optional) You can add a menu item by creating /usr/local/share/applications/skype.desktop with the following contents:

[Desktop Entry]
Name=Skype
Comment=Skype Internet Telephony
Exec=/opt/skype/skype
Icon=/opt/skype/icons/SkypeBlue_48x48.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Network;Application;

UPDATE: 
Skype 4 for Linux has been released. It can be installed on CentOS 6 using the same process as above but requires the following additional steps to install extra dependencies:


yum install libtiff.i686
cd /usr/lib
ln -s libtiff.so.3.9.4 libtiff.so.4


5 comments:

Bigee said...

I got the error

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

Can you please help me out

Al Rix said...

All you need to do is install alsa-lib.i686. If you run into these issues on CentOS/RHEL a good way to work out what you need to install is use yum whatprovides - e.g.:

yum whatprovides */libasound.so.2
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
1279 packages excluded due to repository priority protections
alsa-lib-1.0.22-3.el6.x86_64 : The Advanced Linux Sound Architecture (ALSA) library
Repo : centos6-base-x86_64
Matched from:
Filename : /lib64/libasound.so.2



alsa-lib-1.0.22-3.el6.i686 : The Advanced Linux Sound Architecture (ALSA) library
Repo : centos6-base-x86_64
Matched from:
Filename : /lib/libasound.so.2



alsa-lib-1.0.22-3.el6.x86_64 : The Advanced Linux Sound Architecture (ALSA) library
Repo : installed
Matched from:
Filename : /lib64/libasound.so.2

Bigee said...

Thank you :) :) :)

Unknown said...

Hey Al Rix,

I'm having some problems installing skype 4.1.0.20 on centos 6 64bit. I installed all of the libraries specified and everything is up to date. When I go into the skype directory and run the ./skype command I get this error:

[root@kapacs skype-4.1.0.20]# ./skype
./skype: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

I researched on google as much as I could and ran into the suggestion that I should install lib32-qt-4.8.4-3-x86_64. I am very much still a Linux newb and can't seem to find a way to do that. How would you install a lib32-qt-4.8.4-3-x86_64.pkg.tar.xz or is there a yum install command that would make this easier.

Thank you!

Al Rix said...

Hi, I don't have access to a CentOS desktop at the moment so can't try this out. What I suspect has happened is that this is a new dependency through the latest release of Skype. You can use "yum whatprovides" to work pout which package to install though:

[alrix@lon1jump01 ~]$ yum whatprovides */libQtWebKit.so.4
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
87 packages excluded due to repository priority protections
qtwebkit-2.1.1-1.el6.i686 : Qt WebKit bindings
Repo : epel6-x86_64
Matched from:
Filename : /usr/lib/libQtWebKit.so.4



qtwebkit-2.1.1-1.el6.x86_64 : Qt WebKit bindings
Repo : epel6-x86_64
Matched from:
Filename : /usr/lib64/libQtWebKit.so.4

So in this case do a "yum install qtwekit-2.1.1-1.el6.i686" and you should be good to go...