Red5 source code compilation in Ubuntu14.04

Source: Internet
Author: User
Compiling environment: Ubuntu14.04/JDK7RHEL5 Streaming Media Server SETUP -- Red5http: // rewrite ://

Compiling environment: Ubuntu14.04/JDK7

Setting up RHEL5 Streaming Media Server -- Red5 http://www.linuxidc.com//Linux/2010-03/25162.htm

Installing the Red5 http://www.linuxidc.com/Linux/2013-07/87728.htm in RHEL6.4

Installing Red5 0.7 Streaming Media Server http://www.linuxidc.com//Linux/2008-04/12293.htm in Linux

Solution http://www.linuxidc.com//Linux/2008-05/13083.htm with http error: 404 ERROR in Red5 under Ubuntu

On a Linux server, how does one install Red5? Http://www.linuxidc.com//Linux/2012-06/63015.htm

Example of creating the first Red5 app with Eclipse-recording video http://www.linuxidc.com//Linux/2012-06/63023.htm online with Red5

Steps:

1. svn check source code (two methods)

Svn co -- depth empty https://github.com/Red5/red5-server (latest)

Svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5-read-only (I'm using this 1.0.2-RC4 Version)

2. Compile and skip test

Mvn-Dmaven. test. skip = true install

The compilation result is as follows:

[INFO] Installing/home/linuxidc/wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4-sources.jar to/home/linuxidc/. m2/repository/org/red5/red5-server/1.0.2-RC4/red5-server-1.0.2-RC4-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:. 353 s
[INFO] Finished at: Wed Oct 09:34:22 CST 2014
[INFO] Final Memory: 16 M/40 M
[INFO] ------------------------------------------------------------------------

Go in and see what is there:

Linuxidc@www.linuxidc.com :~ /Wmw/red5-google/red5-read-only $ ls
Build. properties license.txt pom. xml src target
Linuxidc@www.linuxidc.com :~ /Wmw/red5-google/red5-read-only $ cd target/
Linuxidc@www.linuxidc.com :~ /Wmw/red5-google/red5-read-only/target $ ls
Apidocs red5-server-1.0.2-RC4-bootstrap.jar
Archive-tmp red5-server-1.0.2-RC4.jar
Classes red5-server-1.0.2-RC4-javadoc.jar
Generated-sources red5-server-1.0.2-RC4-server.tar.gz
Javadoc-bundle-options red5-server-1.0.2-RC4-server.zip
Lib red5-server-1.0.2-RC4-sources.jar.
Maven-archiver test-classes

Red5-server-1.0.2-RC4-server.tar.gz this is our compiled red5-server, first decompress a look:

Linuxidc@www.linuxidc.com :~ /Wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4 $ ls-l
Total usage 852
Drwxrwxr-x 2 linuxidc walfred 4096 October 15 09:35 conf
Drwxrwxr-x 2 linuxidc walfred 4096 October 15 09:35 lib
-Rw-r -- 1 linuxidc walfred 1324 October 15 09:15 license.txt
Drwxrwxr-x 2 linuxidc walfred 4096 October 15 09:35 plugins
-Rw-r -- 1 linuxidc walfred 1421 October 15 09:21 red5.bat
-Rw-r -- 1 linuxidc walfred 168 October 15 09:21 red5-debug.bat
-Rwxr-xr-x 1 linuxidc walfred 220 October 15 09:33 red5-debug.sh
-Rw-r -- 1 linuxidc walfred 1383 October 15 09:21 red5-highperf.bat
-Rwxr-xr-x 1 linuxidc walfred 622 October 15 09:33 red5-highperf.sh
-Rw-r -- 1 linuxidc walfred 21745 October 15 09:33 red5-server-bootstrap.jar
-Rw-r -- 1 linuxidc walfred 793004 October 15 09:33 red5-server.jar
-Rwxr-xr-x 1 linuxidc walfred 1670 October 15 09:33 red5.sh
-Rw-r -- 1 linuxidc walfred 308 October 15 09:21 red5-shutdown.bat
-Rwxr-xr-x 1 linuxidc walfred 344 October 15 09:33 red5-shutdown.sh
Drwxrwxr-x 6 linuxidc walfred 4096 October 15 09:35 webapps

Run red5.sh

[INFO] [Launcher:/installer] org. red5.server. Context-Setting parent bean factory as core
[INFO] [Launcher:/installer] org. red5.server. scope. WebScope-Set server [Server @ 1e00005map [[empty]
[INFO] [Launcher: live] org. red5.server. scope. WebScope-Set server [Server @ 1e00005map [[empty]
[INFO] [Launcher: vod] org. red5.server. scope. WebScope-Set server [Server @ 1e00005map [[empty]
[INFO] [Launcher:/] org. red5.server. scope. WebScope-Set server [Server @ 1e00005map [[empty]
[INFO] [Launcher:/installer] org. red5.server. Server-Add mapping global: default host: localhost context: installer
[INFO] [Launcher: live] org. red5.server. Server-Add mapping global: default host: context: live
[INFO] [Launcher: vod] org. red5.server. Server-Add mapping global: default host: context: vod
[INFO] [Launcher:/] org. red5.server. Server-Add mapping global: default host: context:
[WARN] [Launcher:/] org. red5.server. scope. scope-Invalid scope rejected: Scope [name =, path =/default, type = APPLICATION, autoStart = true, creationTime = 1413342261664, depth = 1, enabled = true, running = false]
[WARN] [Launcher:/] org. red5.server. scope. Scope-Scope not added to parent
[INFO] [Launcher:/installer] org. red5.server. Server-Add mapping global: default host: localhost: 5080 context: installer
[INFO] [Launcher:/installer] org. red5.server. service. Installer-Installer service created

3. Download copy dependency

Linuxidc@www.linuxidc.com :~ /Wmw/red5-google/red5-read-only $ mvn dependency: copy-dependencies

At this time, a folder dependency will be added to the target.

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Red5: Server 1.0.2-RC4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin: 2.6: copy-dependencies (default-cli) @ red5-server ---
[INFO] Copying httpclient-4.2.1.jar to/home/linuxidc/wmw/red5-google/red5-read-only/target/dependencytpclient-4.2.1.jar
[INFO] Copying commons-beanutils-1.8.3.jar to/home/linuxidc/wmw/red5-google/red5-read-only/target/dependency/commons-beanutils-1.8.3.jar
[INFO] Copying spring-beans-3.1.4.RELEASE.jar to/home/linuxidc/wmw/red5-google/red5-read-only/target/dependency/spring-beans-3.1.4.RELEASE.jar
[INFO] Copying bcprov-jdk15on-1.47.jar to/home/linuxidc/wmw/red5-google/red5-read-only/target/dependency/bcprov-jdk15on-1.47.jar
.....................................
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.703 s
[INFO] Finished at: Wed Oct 09:36:59 CST 2014
[INFO] Final Memory: 9 M/22 M
[INFO] ------------------------------------------------------------------------

4. package all packages and skip test.

Mvn-Dmaven. test. skip = true-Dmaven. buildNumber. doUpdate = false package

New and feasible red5-server-1.0.2-rc4-server.tar.gz

........................................ ........................................ ................................... [INFO] Building jar:/home/linuxidc/wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4-javadoc.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.994 s
[INFO] Finished at: Wed Oct 10:01:19 CST 2014
[INFO] Final Memory: 14 M/35 M
[INFO] ------------------------------------------------------------------------

Decompress the new red5-server-1.0.2-rc4-server.tar.gz file and compare it with the previously compiled file. For example, the main difference is that a new lib library file is generated:

5. Run red. sh.

[WARN] [Launcher:/] org. red5.server. scope. scope-Invalid scope rejected: Scope [name =, path =/default, type = APPLICATION, autoStart = true, creationTime = 1413341225677, depth = 1, enabled = true, running = false]
[WARN] [Launcher:/] org. red5.server. scope. Scope-Scope not added to parent
[INFO] [Launcher:/installer] org. red5.server. service. Installer-Installer service created

OK, finished

Ubuntu 14.04Download, install, configure related knowledge http://www.linuxidc.com/Linux/2014-04/100370.htm

Ubuntu 14.04: Http://www.linuxidc.com/Linux/2014-04/100352.htm

Ubuntu 14.04 text tutorial on hard drive installation in Windows 7Http://www.linuxidc.com/Linux/2014-04/100369.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/108073.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.