Red5安装错误Red5安装错误

Red5安装错误Red5安装错误

我正在尝试在 centos 6 中安装 red5 媒体服务器。我遵循了许多指南。但是在安装 java、apache-ant 并设置环境变量后,当我尝试执行命令 ant prepare 和 ant dist 时,它显示错误。

蚂蚁准备的结果

Buildfile: /usr/local/red5/build.xml
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

蚂蚁分布的结果

Buildfile: /usr/local/red5/build.xml
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

-library.check:
     [echo] Java: java.home is /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre and the target version is 1.6
     [echo] Ant: ant.home is /usr/local/ant and the target version is Apache Ant(TM) version 1.9.2 compiled on July 8 2013

-java6.check:
     [echo] Using Java 1.6 specification: 1.6

prepare:

compile:
     [echo] javac version: 1.6
     [echo] Not using the Eclipse IDE
     [echo] Compiler adapter name: modern
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

compile-core:
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

retrieve:

BUILD FAILED
/usr/local/red5/build.xml:225: The following error occurred while executing this line:
/usr/local/red5/build.xml:239: The following error occurred while executing this line:
/usr/local/red5/build.xml:174: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/local/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds

相关内容