Mon 11 Feb 2008
Update September 13th 2009: Easier to use install script available.
Update January 31st 2009: Patch for Adobe Flash Media Server 3.5 on ubuntu available.
I have been asked for a patch for installing Adobe Flash Media Server 3 on Ubuntu. Here it is:
# install dependencies sudo apt-get install libnspr4-dev
Now download Flash Media Server 3, unzip the file and copy FlashMediaServer3.tar.gz over to your Ubuntu box. Don’t untar the .tar.gz file on windows and copy the files over to linux – this way file permissions will be wrong and the patch won’t work. Then
tar xfz FlashMediaServer3.tar.gz cd FMS_3_0_0_r1157 wget http://www.bluetwanger.de/~mbertheau/flash-media-server-3-ubuntu.patch patch -p1 < flash-media-server-3-ubuntu.patch sudo ./installFMS
You can later uninstall the server:
cd /opt/adobe/fms sudo ./uninstallFMS
February 11th, 2008 at 0:54
[...] February 11th 2008: Patch for Adobe Flash Media Server 3 on Ubuntu [...]
February 12th, 2008 at 19:11
Thanks very much!
February 13th, 2008 at 18:50
Nice work! Thanks a lot.
February 15th, 2008 at 18:17
Awesome work.
Once again, thanks a lot :)
March 6th, 2008 at 2:33
I still get:
root@server1:/home/wmaker/bah/fms3/FMS_3_0_0_r1157# ./installFMS
./installFMS: line 171: ./fmsini: No such file or directory
ERROR: You are running the Adobe Flash Media Server installer
on the wrong platform.
root@server1:/home/wmaker/bah/fms3/FMS_3_0_0_r1157#
this is after running the patch…
April 3rd, 2008 at 19:16
btw, there’s also an issue when installing on x86_64 (amd64) – I am new to linux (using ubuntu on a home development server) – so I haven’t learned to create patches yet, but I have manually edited installFMS script in two places where arch is detected and added a case for x86_64 (set it to i386) – after that install works fine on 64 bit machines too.
April 7th, 2008 at 23:35
Agreed! Thanks!
S
April 14th, 2008 at 22:59
[...] Time went by and now i had to install Flash Media Server 3 on my Ubuntu box. Again Markus has a patch for the fms3 installer script available, Markus’s article can be found at http://www.bluetwanger.de/blog/2008/02/11/flash-media-server-3-on-ubuntu-710-gutsy/: [...]
April 16th, 2008 at 1:04
The same apply for Flash Media Server 3.0.1, I tryed and it works flawless! thank you.
April 28th, 2008 at 13:42
Hi rstets,
Can you publish the changes you made to the install script? I am having some problems starting the server on a 64 Ubuntu 7.10 server after the installation.
Thanks a lot.
May 11th, 2008 at 10:45
Hi,
I just wanted to say thanks. Your patch worked flawlessly.
May 15th, 2008 at 14:39
FMS 2 was only for 32bit machines, and i belive FMS 3 is still 32bit, so all you that are running x86_64 – forget about installing FMS… or reinstall to x86
May 16th, 2008 at 1:45
FMS 3 is ok for 64bit. But too bad, the default install is not working. Need patchs.
May 21st, 2008 at 23:45
hi, Just writing to say thanks, I used this patch with the 3.0.2 update of FMS to install onto debian, worked great. Cheers
June 12th, 2008 at 1:16
A little help??
The install seems flawless but when I try to start the service I get a ulimit error(FMS2 and FMS3 on Ubuntu 7.04)
./server: line 7: ulimit: open files: cannot modify limit: Operation not permitted
I don’t know for sure what to make of this.
June 14th, 2008 at 21:06
How to patch for 64bit, please?
June 14th, 2008 at 22:26
I have fms3 in ubuntu hardy x86_64 up and running. It has been a long time and I have no installFMS script nearby, but I remember that changing it to support x86_64 arch was not the only issue: after that I had to run ldd on all fms binaries, e.g. fmscore, fmsadmin and install missing 32-bit libs – the useful util for that is getlibs (link: http://ubuntuforums.org/showthread.php?t=474790)
June 14th, 2008 at 23:10
there we go: after patching with the patch presented in this post I’ve opened installFMS and inserted this at line 129:
x86_64)
cd_result ubuntu
;;
so the “Linux” case whole section looked like this:
Linux) case $arch in
i[3456]86) # Red Hat Linux
if [ -f /etc/redhat-release ]; then
cd_check “Red Hat Enterprise Linux [WAE]S release 3″ /etc/redhat-release redhat-RHEL3-i686
cd_check “Red Hat Enterprise Linux [WAE]S release 4″ /etc/redhat-release redhat-RHEL4-i686
fi
# Assuming Ubuntu because this patch is exclusively for Ubuntu
cd_result ubuntu
;;
x86_64)
cd_result ubuntu
;;
esac
;;
I amust admit it’s a dirty hack, but it had done it’s work well
next at line 195 insert:
x86_64) ARCH=i386
;;
so the whole arch check looks this way:
case $TEMPARCH in
i[3456]86) ARCH=i386
;;
x86_64) ARCH=i386
;;
sun4*) ARCH=sun4
;;
*) if [ $WARN -eq 1 ]; then
warn_cpu $TEMPARCH
else
exit_cpu $TEMPARCH
fi
;;
esac
dirty hack again :)
after that install scripts “thinks” we have i386 cpu (not x86_64) so next we have to get all those 32-bit libs required by fms:
(read my previous comment) http://www.bluetwanger.de/blog/2008/02/11/flash-media-server-3-on-ubuntu-710-gutsy/#comment-40026
my fms3 works well.
June 15th, 2008 at 8:27
Thank you very much, rstets.
After a good fight with libraries (getlibs seems not be able to install some), I get the server up and run :)
June 24th, 2008 at 0:38
Anyone tried on hardy yet? I’m having problems with the patch — it returns:
patch: **** strip count 1 is not a number
Thanks!
July 3rd, 2008 at 0:16
Same issue with Hardy.
July 10th, 2008 at 0:25
Thank you for this! It was very helpful otherwise we were stuck.
Laurie
July 10th, 2008 at 14:05
Installed FMS 3.O1 r123 on Ubuntu Hardy Heron, worked like a charm.
July 10th, 2008 at 22:27
[...] here’s the trick. Check this site (all credits & thanks to Markus Bertheau ) – you’ll find these [...]
July 16th, 2008 at 21:16
[...] install Flash Media Server on the box I had to follow the patch process outlined by Markus Bertheau and the first half of these steps were taken from this aYo Binitie [...]
July 19th, 2008 at 4:23
Hi all and thanks for your tips.
I use (Hardy Heron) on i386 arch.
I’ve installed successfully FMS 3_0_1_r123 after patching the install script like shown in this thread.
BTW, something miss me : RTMP tunneling aka RTMPT.
It doesn’t work correctly.
I’ve found here : http://groups.google.com/group/FCNG/browse_thread/thread/70bcc1c0b298846e/5011457d4eda4482#5011457d4eda4482 that some dependencies are missing in the installation.
Then I’ve check :
$ ldd fmscore
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fc7000)
libnspr4.so => /usr/lib/libnspr4.so (0xb7f94000)
libplc4.so => /usr/lib/libplc4.so (0xb7f8f000)
libplds4.so => /usr/lib/libplds4.so (0xb7f8c000)
libasneu.so.1 => not found
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7f83000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f7f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e8b000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e66000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e5b000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d0c000)
/lib/ld-linux.so.2 (0xb7fe5000)
Same for fmsadmin dameon.
See the libasneu.so.1 not found.
Could the problem comes that fact ?
Could someone help me bind the missing library (that ship in the FMS installation folder) ? I don’t know how to achieve that.
BTW, is anyone using the ubuntu server able to serve rtmpt requests ?
I wonder.
Thanks all.
PS : no other regular HTTP server is hosted on the same machine, so no port conflcit ;)
July 21st, 2008 at 14:31
to erixtekila: ln -s /opt/adobe/fms/libasneu.so.1 /lib/libasneu.so.1
Thanks for the script, i make some modification. User/group mapping does not work for me (at debian, installed root/root uid/gid), need some changes. If u like publish, please drop email to me.
July 21st, 2008 at 20:58
flash:/FMS_3_0_1_r123# ./installFMS -platformWarnOnly
./fmsini: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
July 22nd, 2008 at 20:49
@csy : eventhough I use ln -s on the dependency, ldd still state that the library doesn’t exist. Is there any way to refresh this ?
BTW, are you sure that RTMPT works for you ?
July 31st, 2008 at 18:05
Hi,
im installing fms3 on ubuntu 7.04
when i tried to install libnspr4-dev it says to remove some 30 packages:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
alacarte bug-buddy contact-lookup-applet deskbar-applet ekiga epiphany-browser evolution
evolution-data-server evolution-exchange evolution-plugins firefox firefox-gnome-support
gaim gnome-applets gnome-control-center gnome-panel gnome-session gnome-terminal
gnome-user-guide libcamel1.2-10 libebook1.2-9 libedata-book1.2-2 libedataserverui1.2-8
libnspr-dev libnspr4 libnss3 nautilus nautilus-cd-burner nautilus-sendto ubuntu-desktop
ubuntu-docs yelp
The following NEW packages will be installed:
libnspr4-dev
0 upgraded, 1 newly installed, 32 to remove and 0 not upgraded.
Need to get 206kB of archives.
After unpacking 151MB disk space will be freed.
It is removing so much, but that i tried installing libnspr-dev which installed without any removals.
Will this package be enough ??
August 26th, 2008 at 4:45
On my system it was not needed to install libnspr4-dev; libnspr4-0d was enough (by the way, for Debian people, that last package does at the moment not provide the appropriate links, so you have to make the links in /usr/lib/ yourself)
# install dependencies
sudo apt-get install libnspr4-0d
Debian only:
cd /usr/lib
sudo ln -s libnspr4.so.0d libnspr4.so
sudo ln -s libplc4.so.0d libplc4.so
sudo ln -s libplds4.so.0d libplds4.so
August 27th, 2008 at 12:07
To anyone who made this mistake as I did.. heh
The patch is -p1
Not patch -pl
September 12th, 2008 at 13:46
[...] Ubunu 7.10 Gutsy:yyn asennukseen: http://www.bluetwanger.de/blog/2008/02/11/flash-media-server-3-on-ubuntu-710-gutsy/ (nämä ohjeet toimivat myös Fedora Core 7:n [...]
October 1st, 2008 at 8:10
Great Tut. I really appreciate it! Working on a free videoconferencing app for my site, Labspaces.net.
Also made the p”L” vs p”one” mistake. It’s patch p”one”. I’m a noob.
October 1st, 2008 at 17:27
In case someone still had problem with libraries in hardy, in /opt/adobe/fms do:
ldd fmsmaster
for example if there is no libplc4.so, find rpm package in rpmfind, download it, and:
rpm2cpio package.rpm | cpio -dimv
it will unpack it into current directory. Copy required libs to /lib32.
It worked for me only after this.
October 10th, 2008 at 5:40
Thx man!
October 14th, 2008 at 20:22
[...] es sich um eine freie Übersetzung aus dem Englischen. Vielen Dank an den Betreiber dieser Seite für die englische Anleitung und die Bereitstellung des [...]
December 2nd, 2008 at 7:27
Hi, thanks for this patch. For me this patch work on Ubuntu 8 and also work on Debian 4 but with additional library (apt-get install libnspr4-dev)
December 7th, 2008 at 3:48
If anyone else shows up here trying to figure out one of the fmsini issues
ERROR: You are running the Adobe Flash Media Server installer
on the wrong platform.
FMS does not run on ppc machines.
December 22nd, 2008 at 2:25
We have an one big problem. We use FMS with Debian Etch and sometimes the processor load approaching the 100%. Why? Have same problem to anybody?
Excuse me, but my English is quite wrong.
December 22nd, 2008 at 2:31
We have problem only FMS3, FMS2 works correctly.
Why not does it the FMS3?
January 31st, 2009 at 1:01
[...] Linux, Flash Media Server only supports Redhat. In February, Markus Bertheau posted a patch for FMS 3, so that it would run on Ubuntu. Based on that patch, here is a patch for FMS 3.5 . It’s [...]
January 31st, 2009 at 1:09
I modified this to work for FMS 3.5 . The updated patch is here: http://www.joeterranova.net/2009/01/30/flash-media-server-35-on-ubuntu/
February 7th, 2009 at 8:52
I am trying to install FMS 3.5 on Debian 4.0 64 bit (AMD 64). Has anyone successfully done this with or without these patches? I am about to give up and go back to Debian 32 bit OS. Most of the problem is that my apt-get wants to download 64 bit versions of libraries which is not compatible with FMS..specifically the netscape runtime libraries.
If anyone can tell me the steps to install FMS 3.5 on a Debian 4.0 AMD 64 bit box please let me know. I’ve googled this to death!
February 8th, 2009 at 5:32
OK I figured it out as far as installing FMS 3.5 on Debian 4.0 64bit (AMD 64).
I had to use rpmfind to find this rpm package
nspr-4.7.3-1.fc10.i386.rpm
I used this to extract the rpm: rpm2cpio package.rpm | cpio -dimv
Then I copied the library files in the LIB directory of extracted RPM to the /lib32 directory
NOW FMS 3.5 STARTS!
Now the fmsadmin will not run! Even after restarting it. Please tell me how to fix fmsadmin…I can’t administrate the server.
October 23rd, 2009 at 20:18
Why not download deb package from packages.debian.org and then extract with command dpkg?
I had the same problem with Debian lenny amd64 and FMS3.5.
Still ldd was complaining missing libnspr4.so and
other libs…from the lib32 package.
I proceeded in this way
I downloaded http://packages.debian.org/stable/libnspr4-0d for i386 arch and the extracted with :
dpkg --extract libnspr4-0d_4.7.1-4_i386.deb /tmp/
Then you’ll find in /tmp/usr/lib/ what you need…
FMS-SERVER:/tmp/usr/lib# ls
libnspr4.so libplc4.so libplds4.so
libnspr4.so.0d libplc4.so.0d libplds4.so.0d
Copy
I then copied the libs from /tmp/usr/lib back to the /lib32/
This should fix all the missing library problems!