Red5 Install
Red5 Install ¶* 2011.8.19
* /CentOs5.5
* /KeyWord
2011. 3. 20 ¶* CentOS 5.5 install
* iptime 054UA
[root@localhost tcheun]# cd ivy
[root@localhost ivy]# ls CHANGES.txt build-for-bin-distrib.xml ivysettings-release.xml LICENSE build-release.xml optional.patterns META-INF build.properties src NOTICE build.xml test README doap_Ivy.rdf version.properties RELEASE_NOTES doc ant.patterns ivy.xml
Answer #6 followup #2 - Those needing this functionality should be pleased to know that
Ant 1.7 will support a new concept--ResourceCollection--an interface which exposes objects of the existing Ant filelike-type Resource. Fileset, Dirset, Filelist, Path, etc. all implement this new interface. One of the new ResourceCollection implementations is the <sort> collection, which can sort resources according to their natural order, or by one or a combination of ResourceComparators. Several of these have been predefined; however a user can custom-implement and <typedef> his or her own ResourceComparator as well.
[tcheun@localhost ~]$ ant -version
Apache Ant version 1.6.5 compiled on January 6 2007 [tcheun@localhost ~]$ export ANT_HOME=/usr/local/ant [tcheun@localhost ~]$ ant -version Apache Ant(TM) version 1.8.2 compiled on December 20 2010 2011. 3.22 ¶
<dependencies>
<dependency org="org.apache.ant" name="ant" rev="1.7.1" conf="default,ant->default"/> <dependency org="org.apache.ant" name="ant-nodeps" rev="1.7.1" conf="default"/> * red5 ÀÇ dependency ¸¦ ¸ÕÀú Á¡°ËÇÏ°í °è¼ÓÇÏ´Â °ÍÀÌ ÁÁ°ÚÀ½.
<!-- This build file requires Apache Ant >= 1.7 -->
<condition property="ant-at-least-7"> <antversion atleast="1.7.0"/> </condition> <!-- project properties -->
2011.3.23 ¶
http://wiki.centos.org/HowTos/JavaOnCentOS
The Sun license concerning distribution of Java (through to Java 6) contains clauses, the terms of which, the CentOS team have concluded they cannot meet. Conversations with Sun's representatives on a modified distribution license were underway in August 2008 but they did not yield fruit. Seemingly Sun was looking forward to the more free, later, Java releases (on the horizon, upstream) in our upstream's Fedora project.
http://agile.gnstudio.com/gnstudio/wiki/red5oncentos
red5 is a software written for debian distros in mind, so v0.6 must be compiled to work under redhat distros such centOS, fedora, RHel etc. I tried to compile both with open jdk provided by default in centOS and sun jdk that you have to download separately from sun web site. Compilation where successful in both case and red5 started and worked without any apparent issue. Even openjdk seem to be ok, I suggest to use sun jdk since authors used that framework, so I will go on considering sun jdk instead of openjdk:
dd: reading `/dev/dvd': Input/output error
6888896+0 records in 6888896+0 records out 3527114752 bytes (3.5 GB) copied, 1589.38 s, 2.2 MB/s ca080d18894c0283be33f0bed8259b57 - * debian ¼³Ä¡
2011.3.25 ¶* java
root@debian:/home/tcheun# aptitude install sun-java6-jdk
Couldn't find any package whose name or description matched "sun-java6-jdk" Couldn't find any package whose name or description matched "sun-java6-jdk" No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used.
root@debian:/etc/apt# aptitude install sun-java6-jdk
The following NEW packages will be installed: gsfonts-x11{a} java-common{a} odbcinst{a} odbcinst1debian2{a} sun-java6-bin{a} sun-java6-jdk sun-java6-jre{a} unixodbc{a} 0 packages upgraded, 8 newly installed, 0 to remove and 0 not upgraded. * ant and ivy
root@debian:/home/tcheun/ivy# ant jar
Buildfile: /home/tcheun/ivy/build.xml init: prepare: [mkdir] Created dir: /home/tcheun/ivy/build/classes [mkdir] Created dir: /home/tcheun/ivy/build/classes/core [mkdir] Created dir: /home/tcheun/ivy/build/classes/bootstrap [mkdir] Created dir: /home/tcheun/ivy/build/classes/ant [mkdir] Created dir: /home/tcheun/ivy/build/classes/optional [mkdir] Created dir: /home/tcheun/ivy/build/classes/all [mkdir] Created dir: /home/tcheun/ivy/build/test [mkdir] Created dir: /home/tcheun/ivy/build/artifact [mkdir] Created dir: /home/tcheun/ivy/build/doc/reports/test [mkdir] Created dir: /home/tcheun/ivy/build/doc/reports/ivy compile-core: [javac] Compiling 372 source files to /home/tcheun/ivy/build/classes/core [javac] failed to read ecj.jar (reconfigure with --with-ecj-jar): /usr/share/java/eclipse-ecj.jar [javac] failed to load org.eclipse.jdt.internal.compiler.batch.Main from ecj.jar: /usr/share/java/eclipse-ecj.jar [javac] java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.Main not found in java.net.URLClassLoader{urls=[file:/usr/share/java/eclipse-ecj.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/share/ant/lib/ant- launcher.jar,file:/usr/share/java/xmlParserAPIs.jar,file:/usr/share/java/xercesImpl.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null [javac] at java.net.URLClassLoader.findClass(libgcj.so.10) [javac] at java.lang.ClassLoader.loadClass(libgcj.so.10) [javac] at java.lang.ClassLoader.loadClass(libgcj.so.10) [javac] at com.sun.tools.javac.Main.<clinit>(Main.java:91) [javac] at java.lang.Class.initializeClass(libgcj.so.10) [javac] at java.lang.Class.forName(libgcj.so.10) [javac] at java.lang.Class.forName(libgcj.so.10) [javac] at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist (CompilerAdapterFactory.java:165) [javac] at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:124) [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1088) [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:906) [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [javac] at java.lang.reflect.Method.invoke(libgcj.so.10) [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [javac] at org.apache.tools.ant.Task.perform(Task.java:348) [javac] at org.apache.tools.ant.Target.execute(Target.java:390) [javac] at org.apache.tools.ant.Target.performTasks(Target.java:411) [javac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1329) [javac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1212) [javac] at org.apache.tools.ant.Main.runBuild(Main.java:801) [javac] at org.apache.tools.ant.Main.startAnt(Main.java:218) [javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) BUILD FAILED /home/tcheun/ivy/build.xml:194: java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass(libgcj.so.10) at java.lang.Class.forName(libgcj.so.10) at java.lang.Class.forName(libgcj.so.10) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist (CompilerAdapterFactory.java:165) at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:124) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1088) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:906) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at java.lang.reflect.Method.invoke(libgcj.so.10) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.lang.NullPointerException at com.sun.tools.javac.Main.<clinit>(Main.java:106) at java.lang.Class.initializeClass(libgcj.so.10) ...20 more Total time: 1 second root@debian:/home/tcheun/ivy#
root@debian:/home/tcheun# aptitude install eclipse
The following NEW packages will be installed: eclipse eclipse-jdt{a} eclipse-pde{a} eclipse-platform{a} eclipse-platform-data{a} eclipse-plugin-cvs{a} eclipse-rcp{a} fastjar{a} jarwrapper{a} junit{a} junit4{a} libasm3-java{a} libcommons-codec-java{a} libcommons-el-java{a} libcommons-httpclient-java{a} libecj-java{a} libequinox-osgi-java{a} libhamcrest-java{a} libjasper-java{a} libjetty-java{a} libjsch-java{a} libservlet2.4-java{a} libslf4j-java{a} sat4j{a} 0 packages upgraded, 24 newly installed, 0 to remove and 0 not upgraded. Need to get 150 MB/153 MB of archives. After unpacking 178 MB will be used.
2011.3.26 ¶* configuration
root@debian:/home/tcheun/red5-0.9.1.svn# dist/red5.sh Running on Linux Starting Red5 Red5 root: /home/tcheun/red5-0.9.1.svn Configuation root: /home/tcheun/red5-0.9.1.svn/conf Root: /home/tcheun/red5-0.9.1.svn Deploy type: bootstrap Logback selector: org.red5.logging.LoggingContextSelector Setting default logging context: default 01:04:00.955 [main] INFO org.red5.server.Launcher - Red5 Server 0.9.1 $Rev: 4059 $ (http://code.google.com/p/red5/) Red5 Server 0.9.1 $Rev: 4059 $ (http://code.google.com/p/red5/) 01:04:01.190 [main] INFO o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1096e70: startup date [Sat Mar 26 01:04:01 KST 2011]; root of context hierarchy 01:04:01.438 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5.xml] org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [red5.xml]; nested exception is java.io.FileNotFoundException: class path resource [red5.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:341) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:149) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:212) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:126) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:92) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory (AbstractApplicationContext.java:458) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:388) at org.red5.server.Launcher.launch(Launcher.java:62) at java.lang.reflect.Method.invoke(libgcj.so.10) at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135) at org.red5.server.Bootstrap.main(Bootstrap.java:50) Caused by: java.io.FileNotFoundException: class path resource [red5.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:141) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:328) ...14 more Bootstrap complete 2011.3.27 ¶* cd dist
* edit red5.sh
if [ -z "$RED5_HOME" ]; then export RED5_HOME=`pwd`; fi if [ -z "$JAVA_HOME" ]; then export JAVA_HOME="/usr/lib/jvm/java-6-sun"; fi P=":" # The default classpath separator * sh red5.sh
* in internet browser
2011.3.27 ¶* red5plugin ¿¡¼ ¸·Èû.
* aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev
root@debian:/home/tcheun# aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev The following NEW packages will be installed: antlr{a} antlr3{a} aspectj{a} binutils{a} build-essential{a} ca-certificates-java{a} dpkg-dev fakeroot{a} fop{a} g++{a} g++-4.4{a} gcc{a} gcc-4.4{a} glassfish-javaee{a} groovy{a} icedtea-6-jre-cacao{a} ivy{a} java-wrappers{a} jython{a} libaccess-bridge-java{a} libaccess-bridge-java-jni{a} libalgorithm-diff-perl{a} libalgorithm-diff-xs-perl{a} libalgorithm-merge-perl{a} libantlr-java{a} libantlr-java-gcj{a} libaopalliance-java{a} libavalon-framework-java{a} libaxis-java{a} libbackport-util-concurrent-java{a} libbatik-java{a} libbcel-java{a} libbcprov-java{a} libbcprov-java-gcj{a} libbsf-java{a} libc-dev-bin{a} libc3p0-java{a} libc6-dev{a} libcglib-java{a} libclassworlds-java{a} libcommons-attributes-java{a} libcommons-cli-java{a} libcommons-collections-java{a} libcommons-dbcp-java{a} libcommons-discovery-java{a} libcommons-fileupload-java{a} libcommons-io-java{a} libcommons-lang-java{a} libcommons-modeler-java{a} libcommons-pool-java{a} libcommons-validator-java{a} libconstantine-java{a} libdpkg-perl{a} libehcache-java{a} libexcalibur-logkit-java{a} libfreemarker-java{a} libgeronimo-commonj-spec-java{a} libgeronimo-jms-1.1-spec-java{a} libgnuinet-java{a} libgnujaf-java{a} libgnumail-java{a} libhessian-java{a} libhibernate3-java{a} libice-dev{a} libitext-java{a} libjakarta-poi-java{a} libjamon-java{a} libjasperreports-java{a} libjaudiotagger-java{a} libjaxme-java{a} libjcommon-java{a} libjdom1-java{a} libjexcelapi-java{a} libjfreechart-java{a} libjna-java{a} libjna-posix-java{a} libjsf-api-java{a} libjsf-impl-java{a} libjsr107cache-java{a} libjzlib-java{a} liblog4j1.2-java{a} liblog4j1.2-java-gcj{a} liblogback-java{a} libmina2-java{a} libmockobjects-java{a} libmx4j-java{a} libognl-java{a} liboro-java{a} libportlet-api-2.0-spec-java{a} libpthread-stubs0{a} libpthread-stubs0-dev{a} libquartz-java{a} libreadline-java{a} libred5-java{a} libsaxon-java{a} libsm-dev{a} libspring-aop-2.5-java{a} libspring-beans-2.5-java{a} libspring-context-2.5-java{a} libspring-context-support-2.5-java{a} libspring-core-2.5-java{a} libspring-jdbc-2.5-java{a} libspring-tx-2.5-java{a} libspring-web-2.5-java{a} libstdc++6-4.4-dev{a} libstringtemplate-java{a} libstruts1.2-java{a} libtomcat6-java{a} libwerken.xpath-java{a} libws-commons-util-java{a} libwsdl4j-java{a} libx11-dev{a} libxalan2-java{a} libxalan2-java-gcj{a} libxau-dev{a} libxcb1-dev{a} libxdmcp-dev{a} libxml-commons-external-java{a} libxmlgraphics-commons-java{a} libxmlrpc3-common-java{a} libxmlrpc3-server-java{a} libxp6{a} libxpp3-java{a} libxstream-java{a} libxt-dev{a} linux-libc-dev{a} make{a} manpages-dev{a} openjdk-6-jdk openjdk-6-jre{a} openjdk-6-jre-headless{a} openjdk-6-jre-lib{a} red5-server rhino{a} tzdata-java{a} velocity{a} x11proto-core-dev{a} x11proto-input-dev{a} x11proto-kb-dev{a} xtrans-dev{a} 0 packages upgraded, 140 newly installed, 0 to remove and 0 not upgraded. Need to get 83.0 MB/171 MB of archives. After unpacking 378 MB will be used. Do you want to continue? [Y/n/?] * as root
2011.3.30 ¶* os
* aptitude install ant, subversion
* ivy install source
* aptitude install eclipse
* red5
* tomcat
ivy ¶* first tutorial
[tcheun@localhost ~]$ ant
Buildfile: build.xml BUILD FAILED /home/tcheun/build.xml:103: The prefix "ivy" for element "ivy:cachepath" is not bound. Total time: 0 seconds
[tcheun@localhost ~]$ ant
Buildfile: build.xml download-ivy: [echo] installing ivy... [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta1/ivy-2.0.0-beta1.jar [get] To: /home/tcheun/ivy/ivy.jar [get] Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.0.0-beta1/ivy-2.0.0-beta1.jar to /home/tcheun/ivy/ivy.jar BUILD FAILED /home/tcheun/build.xml:61: java.io.FileNotFoundException: /home/tcheun/ivy/ivy.jar (Permission denied) |
"It seems strange to meet computer geeks who're still primarily running Windows... as if they were still cooking on a wood stove or something." - mbp |