Quick and Easy RTMP Flash Streaming Video with Red5 on FreeBSD

Install a JDK (Java Development Kit)

If you don't have one already, Red5 requires that we install a JDK (not a JRE) on the FreeBSD server.  For this setup we will use Diablo Caffe JDK. If you already have a JDK installed, you may skip this section.

In order to proceed with the diablo-jdk port installation we must download the source tarballs from the Internet.  The process involves selecting the correct version for your platform and agreeing to a license agreement.  When we attempt to build the port, FreeBSD will automatically tell us what we need.

From the command prompt browse to the port directory and issue the make install command.  The latest version as of this writing is JDK 1.6


cd /usr/ports/java/diablo-jdk16/
make install

The port installation will fail with a message similar to the one below:

Because of licensing restrictions, you must fetch the distribution
manually.

Please access

     http://www.FreeBSDFoundation.org/cgi-bin/download?download=diablo-caffe-...

with a web browser and "Accept" the End User License Agreement for
"Caffe Diablo 1.6.0".

Please place the downloaded file(s) in /usr/ports/distfiles.

*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.

FreeBSD is asking us to download the diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2 tarball. Go ahead and copy and paste the link shown in your output into your web browser.  Accept the agreement and download the file to your computer.  When the download is complete, you will need to copy that file into your distfiles directory which is usually /usr/ports/distfiles.

Once you have the file in the correct location, go ahead and re-issue the make install command.

make install
...
===>   Registering installation for diablo-jdk-1.6.0.07.02_16

This time the port should build and install correctly, if the installation fails ensure that your ports are up to date and try again.

Pacy
Powered by Pacy