如何从源代码(即github存储库)安装Rundeck? [英] How do I install Rundeck from source (i.e., the github repo)?
问题描述
我正在尝试从源代码安装Rundeck.我尝试了三种不同的Linux发行版(Debian,Red Hat和SUSE发行版).所有人都失败了.在继续之前,我先安装了make命令,Java和Git."make"命令是在我尝试过的每个Linux发行版上失败的原因."./gradlew build"命令也不再成功.
I am trying to install Rundeck from source. I have tried three different distributions of Linux (a Debian, Red Hat, and SUSE distribution). All have had failures. I install the make command, Java and Git before proceeding. The "make" command is what fails on every distribution of Linux that I have tried. The "./gradlew build" command was no more successful either.
然后我运行以下命令:
cd /tmp
git clone https://github.com/rundeck/rundeck.git
mv rundeck /opt/
cd /opt/rundeck
make
我总是失败.我尝试使用Java 8和Java11.但是两者都发生了问题.
I always get a failure. I tried Java 8 and Java 11. But the problem happens with either.
这是我在Debian发行版上看到的错误:
Here is the error I see on a Debian distribution:
Task :core:javadoc
/opt/rundeck/core/src/main/java/com/dtolabs/rundeck/plugins/jobs/JobOptionImpl.java:134: error: cannot find symbol
static private String produceValuesList(JobOptionImplBuilder builder) {
^
symbol: class JobOptionImplBuilder
location: class JobOptionImpl
1 error
> Task :core:javadoc FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/opt/rundeck/core/build/tmp/javadoc/javadoc.options'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 12s
18 actionable tasks: 2 executed, 16 up-to-date
...
Makefile:34: recipe for target 'rundeckapp/build/libs/rundeck-3.2.7-SNAPSHOT.war' failed
make: *** [rundeckapp/build/libs/rundeck-3.2.7-SNAPSHOT.war] Error 1
这是我在Red Hat衍生产品上看到的内容:
Here is what I see on a Red Hat derivative:
sudo ./gradlew构建
sudo ./gradlew build
配置项目:构建版本3.2.7-SNAPSHOT
Configure project : Building version 3.2.7-SNAPSHOT
任务:rundeckapp:grails-spa:runNpmBuild失败
Task :rundeckapp:grails-spa:runNpmBuild FAILED
失败:构建失败,并出现异常.
FAILURE: Build failed with an exception.
-
出了什么问题:任务':rundeckapp:grails-spa:runNpmBuild'的执行失败.
What went wrong: Execution failed for task ':rundeckapp:grails-spa:runNpmBuild'.
启动过程'npm命令'时出现问题
A problem occurred starting process 'command 'npm''
尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.与--scan一起运行以获得完整的见解.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
在此版本中使用了不推荐使用的Gradle功能,使其成为与Gradle 5.0不兼容.看 https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings
在1秒内成功完成71个可执行任务:已执行6次,最新65次
BUILD FAILED in 1s 71 actionable tasks: 6 executed, 65 up-to-date
这是我在Linux SUSE上看到的内容:
Here is what I see on Linux SUSE:
任务:rundeckapp:grails-spa:runNpmBuild失败
Task :rundeckapp:grails-spa:runNpmBuild FAILED
失败:构建失败,并出现异常.
FAILURE: Build failed with an exception.
-
出了什么问题:任务':rundeckapp:grails-spa:runNpmBuild'的执行失败.
What went wrong: Execution failed for task ':rundeckapp:grails-spa:runNpmBuild'.
启动过程'npm命令'时出现问题
A problem occurred starting process 'command 'npm''
尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.与--scan一起运行以获得完整的见解.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
在此版本中使用了不推荐使用的Gradle功能,使其成为与Gradle 5.0不兼容.看 https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.8/userguide/command_line_interface.html#sec:command_line_warnings
在1m 23s内完成失败59项可执行任务:59项已执行
BUILD FAILED in 1m 23s 59 actionable tasks: 59 executed
make:*** [Makefile:34:rundeckapp/build/libs/rundeck-3.2.7-SNAPSHOT.war]错误1
make: *** [Makefile:34: rundeckapp/build/libs/rundeck-3.2.7-SNAPSHOT.war] Error 1
我希望"make"命令不会失败.我也尝试安装npm,但这没有帮助.如何从源代码安装Rundeck?哪种Linux版本最容易完成此任务?
I expect the "make" command to not fail. I tried installing npm too, but that did not help. How do I install Rundeck from source? Which distribution of Linux would be easiest for this task?
推荐答案
我复制了您的问题,并且看到了相同的错误,您需要安装npm软件包,它可以在Ubuntu 20.04上工作,并需要执行以下步骤:
I replicated your issue and I saw the same error, you need to install the npm package, it works on Ubuntu 20.04 with the following steps:
- 安装npm:
sudo apt-get install npm
- 安装nodejs:
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get -y install nodejs
- 从GitHub下载Rundeck源代码:
git clone https://github.com/rundeck/rundeck
- 按照以下步骤构建Rundeck:
cd rundeck
./gradlew clean
./gradlew build -x test -x integrationTest
- 您会看到此.WAR文件位于:
rundeck/rundeckapp/build/libs/
- You'll see this. The WAR file is located at:
rundeck/rundeckapp/build/libs/
这篇关于如何从源代码(即github存储库)安装Rundeck?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!