Thursday, August 21, 2014

Flashplayer Debugger on a (headless) 64-bit Ubuntu 14.04 Server

To be able to run Flashplayer tests on a 64-bit Ubuntu 14.04 Server instance, one must be able to run Flashplayer Standalone Debugger. This is kind of hard, as Flashplayer Debugger on Linux is 32-bit and ia32-libs has been removed on Ubuntu 14.04.

Short version:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install xvfb libcurl3:i386 libglib2.0-0:i386 libx11-6:i386 libxext6:i386 libxt6:i386 libxcursor1:i386 libnss3:i386 libgtk2.0-0:i386

Long version:
The first step is to download the Standalone Flashplayer Debugger from Adobes home page. I put it in /opt/flash.

The first step is to add the 32-bit architecture to be able to download and install 32-bit libraries:
sudo dpkg --add-architecture i386

Then update:
sudo apt-get update

To be able to run the flashplayer headless, we have to install xvfb:
sudo apt-get install xvfb

Install the libcurl3:i386 package, as it is needed, and to get some relevant output from the flashplayer when trying to run it:
sudo apt-get install libcurl3:i386


So, we got the architecture in place. Now we try to run the Flashplayer:
/opt/flash/flashplayerdebugger


It fails with the following output:
./flashplayerdebugger: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

Now, to locate in which package this file resides, we can use:
dpkg -S libgthread-2.0.so.0

which outputs
libglib2.0-0:amd64: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0

libglib2.0-0:amd64: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0.4000.0


To install a 32-bit version of this package, we type:
sudo apt-get install libglib2.0-0:i386


Repeating the procedure we find a list of packages to install.
sudo apt-get install libx11-6:i386 libxext6:i386 libxt6:i386 libxcursor1:i386 libnss3:i386 libgtk2.0-0:i386


Now the standalone Flashplayer should be runnable!

1 comment:

  1. Hi, i appreciate that this post is now quite old (but still relevant i feel), would you know why i get flashplayerdebugger:18504): Gtk-WARNING **: cannot open display: when trying to run the standalone flashplayer, thank you

    ReplyDelete