Hopefully not just another Wordpress Blog.
Installing Adobe AIR 1.x on 64bit Linux
Adobe currently offers an installer for AIR for almost all operating systems. Windows, Mac, and Linux, all of the major platforms are covered. However, one installer is missing… a 64bit one for Linux. For those of us who are die-hard Linux users who also prefer the speed and power of running 64bit operating systems, Adobe AIR won’t just install out of the box and work. This article is to help you get Adobe AIR installed and running on your 64bit Linux system in no time flat.
First, we’ll need to install getlibs, an incredibly useful package for those of us running 64bit Linux systems with the need to run 32bit software. In a previous tutorial, we used getlibs to install some required libraries for running a 32bit Flash Player debug edition on a 64bit Linux operating system. Now, we’ll use a similar technique to get 32bit AIR installed and running. Let’s download and install getlibs. If you have getlibs installed, you can safely skip this step and move on.
1 2 3 | wget -O getlibs-all.deb http://frozenfox.freehostia.com/cappy/getlibs-all.deb sudo dpkg -i getlibs-all.deb rm getlibs-all.deb |
The above code will download getlibs-all.deb, install it, and remove it, leaving you just what you need and nothing more. Now, let’s move on to the next step, downloading the Adobe AIR installer and installing some 32bit libraries.
1 2 3 4 5 6 | wget -O AdobeAIRInstaller.bin http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin chmod +x AdobeAIRInstaller.bin sudo getlibs ./AdobeAIRInstaller.bin sudo getlibs -l libgnome-keyring.so sudo getlibs -l libgnome-keyring.so.0 sudo getlibs -l libgnome-keyring.so.0.1.1 |
According to Adobe’s website, this installs several other components that are necessary to AIR for internet connectivity, sound, etc. While you can technically install Adobe AIR without these libraries, you’ll find that many applications malfunction and many won’t even start. So yes, I recommend following the directions on this one
Now, we need to download and install some other libraries not available through getlibs. Let’s hit it up:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Download some debs wget -O libnss3.deb "http://mirrors.kernel.org/ubuntu/pool/main/n/nss/libnss3-1d_3.12.0~beta3-0ubuntu1_i386.deb" wget -O libnspr.deb "http://mirrors.kernel.org/ubuntu/pool/main/n/nspr/libnspr4-0d_4.7.1~beta2-0ubuntu1_i386.deb" # Extract 'em, get what we need, then remove them. mkdir -p libnss3 sudo dpkg -x libnss3.deb libnss3 sudo cp libnss3/usr/lib/libnss3.so.1d /usr/lib32 sudo cp libnss3/usr/lib/libnssutil3.so.1d /usr/lib32 sudo cp libnss3/usr/lib/libsmime3.so.1d /usr/lib32 sudo cp libnss3/usr/lib/libssl3.so.1d /usr/lib32 rm -fr libnss3 rm libnss3.deb mkdir -p libnspr sudo dpkg -x libnspr.deb libnspr sudo cp libnspr/usr/lib/libnspr4.so.0d /usr/lib32 sudo cp libnspr/usr/lib/libplc4.so.0d /usr/lib32 sudo cp libnspr/usr/lib/libplds4.so.0d /usr/lib32 rm -fr libnspr rm libnspr.deb # Link 'em up! sudo ln -s /usr/lib32/libnss3.so.1d /usr/lib32/libnss3.so sudo ln -s /usr/lib32/libssl3.so.1d /usr/lib32/libssl3.so sudo ln -s /usr/lib32/libnspr4.so.0d /usr/lib32/libnspr4.so |
Phew! That was a lot of work, so I hope you’re still with me. Now, we’ve got everything all ready for our fresh install of Adobe AIR. Let’s install it!
1 | sudo ./AdobeAIRInstaller.bin |
Cool! Now, we’ve got one last step to perform before we’re done, copying a simple file over to the /usr/lib32 folder:
1 | sudo cp /usr/lib/libadobecertstore.so /usr/lib32 |
Done! You should now have an installed and fully functional AIR runtime installed on your system. Now, let’s try to encapsulate all of this into a shell script so anyone can install AIR in one step rather than a bunch of ‘em. Download airInstall.sh.gz, extract it, then run it like so:
1 2 3 | wget http://blog.tkassembled.com/u/2010/02/airInstall.sh.gz gzip -d airInstall.sh.gz sudo ./airInstall.sh |
And, for your reference, here’s what the shell script looks like and does, for those of you who are into that kind of thing:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/bin/bash # Check if this is root. if [[ $EUID -ne 0 ]]; then echo "This script must be run as root." 1>&2 exit 1 fi # Download and install getlibs-all.deb wget -O getlibs-all.deb http://frozenfox.freehostia.com/cappy/getlibs-all.deb; dpkg -i getlibs-all.deb; rm getlibs-all.deb; # Download AIR wget -O AdobeAIRInstaller.bin http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin; chmod +x AdobeAIRInstaller.bin; # Install some libraries using getlibs getlibs ./AdobeAIRInstaller.bin; getlibs -l libgnome-keyring.so; getlibs -l libgnome-keyring.so.0; getlibs -l libgnome-keyring.so.0.1.1; # Download some unavailable libraries manually wget -O libnss3.deb "http://mirrors.kernel.org/ubuntu/pool/main/n/nss/libnss3-1d_3.12.0~beta3-0ubuntu1_i386.deb"; wget -O libnspr.deb "http://mirrors.kernel.org/ubuntu/pool/main/n/nspr/libnspr4-0d_4.7.1~beta2-0ubuntu1_i386.deb"; # Extract the deb files we just downloaded, and install the libraries we need from them mkdir -p libnss3; dpkg -x libnss3.deb libnss3; cp libnss3/usr/lib/libnss3.so.1d /usr/lib32; cp libnss3/usr/lib/libnssutil3.so.1d /usr/lib32; cp libnss3/usr/lib/libsmime3.so.1d /usr/lib32; cp libnss3/usr/lib/libssl3.so.1d /usr/lib32; rm -fr libnss3; rm libnss3.deb; mkdir -p libnspr; dpkg -x libnspr.deb libnspr; cp libnspr/usr/lib/libnspr4.so.0d /usr/lib32; cp libnspr/usr/lib/libplc4.so.0d /usr/lib32; cp libnspr/usr/lib/libplds4.so.0d /usr/lib32; rm -fr libnspr; rm libnspr.deb; # Link the libraries up ln -s /usr/lib32/libnss3.so.1d /usr/lib32/libnss3.so; ln -s /usr/lib32/libssl3.so.1d /usr/lib32/libssl3.so; ln -s /usr/lib32/libnspr4.so.0d /usr/lib32/libnspr4.so; # Install AIR! ./AdobeAIRInstaller.bin; rm AdobeAIRInstaller.bin; # And, finally, link some libraries cp /usr/lib/libadobecertstore.so /usr/lib32; echo "Adobe AIR should now be installed! Woo!"; |
Did everything work out okay? Questions? Go ahead and light up the comments and I’ll see how I can help. In the future, we’ll cover installing the new beta version of AIR 2.0 on a 64bit Linux machine.








about 2 months ago
No, because the file libadobecertstore.so does not exist…What do you recommend i do?
about 2 months ago
Yes i did, the problems that remains is that how do you tell getlibs the all 3 keyring files are installed on my debian xfce4 64 bit lenny… or how do you symlink the 3 files to the adobe installer or Adobeinstaller…
about 2 months ago
I’ve really only tested things out on Ubuntu 9.10 to be honest, I haven’t messed with Debian in a while. All I know is that I had no problems running this on multiple Ubuntu machines. What exactly are you trying to do that’s different from the guide above? Have you checked out Adobe’s site?
http://kb2.adobe.com/cps/408/kb408084.html
about 2 months ago
Did you install AIR via the AdobeAIRInstaller.bin file?
Also, just be aware that this script probably won’t work for Adobe AIR 2 yet, I’ll write a separate post for that
about 2 months ago
Let me try again, I’ll write u soon…
about 2 months ago
I follow your steps to the last period and this is what i get, Error loading the runtime (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
How do you solve this?
about 2 months ago
i finally installed, but i did it as root…So now users do not have access to Adobe Air and it’s apps…So how do i give users access to Adeob Air and everything that goes with it?
about 2 months ago
Yeah, it has to be installed as root, I thought that was pretty clear from the script. When running something as “sudo,” that means it needs to be run as root.
Installing it as root should allow you to run it with other users, otherwise you’ll have to chown and chmod files to get things running correctly.
about 2 months ago
I finally installed Adobe Air Beta using have of your instruction and 3 other sites as well…Thanks…By the way what program do you recommend to record your desktop to illustrate how i installed adobe air beta?
about 2 months ago
Use “gtk-recordmydesktop”. I have used it often and it usually works very well
(I say usually because yesterday it was acting kind of weird, but only on one computer)
about 2 months ago
Can you write a How to use gtk-recordmydesktop?