Red5 source code compilation in Ubuntu 14.04

Source: Internet
Author: User
Tags gz file

Red5 source code compilation in Ubuntu 14.04

Compiling environment: Ubuntu14.04/JDK7

Setting up RHEL5 Streaming Media Server-Red5

Install Red5 in RHEL6.4

Install Red5 0.7 Streaming Media Server in Linux

Solution for http error: 404 ERROR in Red5 in Ubuntu

On a Linux server, how does one install Red5?

Use Eclipse to create the first Red5 application example-use Red5 to record videos online

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/bkjia/wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4-sources.jar to/home/bkjia/. 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:

Bkjia@www.bkjia.com :~ /Wmw/red5-google/red5-read-only $ ls
Build. properties license.txt pom. xml src target
Bkjia@www.bkjia.com :~ /Wmw/red5-google/red5-read-only $ cd target/
Bkjia@www.bkjia.com :~ /Wmw/red5-google/red5-read-only/target $ ls
Apidocs <span style = "color: # ff0000;"> red5-server-1.0.2-RC4-bootstrap.jar </span>
Archive-tmp <span style = "color: # ff0000;"> red5-server-1.0.2-RC4.jar </span>
Classes red5-server-1.0.2-RC4-javadoc.jar
Generated-sources <span style = "color: # ff0000;"> red5-server-1.0.2-RC4-server.tar.gz </span>
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:

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

Bkjia@www.bkjia.com :~ /Wmw/red5-google/red5-read-only $ <span style = "color: # 3366ff;"> mvn dependency: copy-dependencies </span>

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/bkjia/wmw/red5-google/red5-read-only/target/dependencytpclient-4.2.1.jar
[INFO] Copying commons-beanutils-1.8.3.jar to/home/bkjia/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/bkjia/wmw/red5-google/red5-read-only/target/dependency/spring-beans-3.1.4.RELEASE.jar
[INFO] Copying bcprov-jdk15on-1.47.jar to/home/bkjia/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/bkjia/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

Download, install, and configure Ubuntu 14.04

Ubuntu 14.04 system:

Ubuntu 14.04 text tutorial on hard drive installation in Windows 7

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.