我試圖在Elastic Beanstalk上安裝GhostScript 9.10,因爲目前只有Ghostscript 8.70可通過yum包使用。Elastic Beanstalk配置在嘗試安裝GhostScript 9.10時失敗
安裝通過SSH在EC2實例上工作,但配置文件總是失敗,我不明白是什麼原因。
這裏是我的.ebextensions配置文件:
commands:
01_admin_rights:
command: "sudo su"
02_get_gs:
command: "curl -O http://downloads.ghostscript.com/public/old-gs-releases/ghostscript-9.10.tar.gz"
03_extract_gs:
command: "tar -xzf ghostscript-9.10.tar.gz"
04_cd_gs:
command: "cd ghostscript-9.10"
05_configure_gs:
command: "bash configure"
06_install_gs:
command: "make install"
07_so_gs:
command: "make so"
08_reboot:
command: "reboot"
而且這裏有雲彈性魔豆錯誤日誌部:
[2016-06-21T12:22:52.720Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 01_admin_rights] : Starting activity...
[2016-06-21T12:22:52.757Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 01_admin_rights] : Completed activity.
[2016-06-21T12:22:52.757Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 02_get_gs] : Starting activity...
[2016-06-21T12:22:53.524Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 02_get_gs] : Completed activity. Result:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 33.6M 100 33.6M 0 0 49.2M 0 --:--:-- --:--:-- --:--:-- 49.2M
[2016-06-21T12:22:53.524Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 03_extract_gs] : Starting activity...
[2016-06-21T12:22:55.066Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 03_extract_gs] : Completed activity.
[2016-06-21T12:22:55.066Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 04_cd_gs] : Starting activity...
[2016-06-21T12:22:55.069Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 04_cd_gs] : Completed activity.
[2016-06-21T12:22:55.070Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 05_configure_gs] : Starting activity...
[2016-06-21T12:22:55.073Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 05_configure_gs] : Activity execution failed, because: bash: configure: No such file or directory
(ElasticBeanstalk::ExternalInvocationError)
[2016-06-21T12:22:55.073Z] INFO [24703] - [Application update Come on #[email protected]/AppDeployStage0/EbExtensionPreBuild/Infra-EmbeddedPreBuild/prebuild_2__Staging/Command 05_configure_gs] : Activity failed.
據我所知,命令5失敗,因爲該文件不存在。但是,當我通過SSH手動執行這些步驟時,文件就存在了,所有命令都可以按此順序執行。
我錯過了什麼?
編輯: 我與配置參數發揮各地,並試圖:
/斌/ bash下的./configure
的./configure
慶典的./configure
所有參數失敗,並出現相同的錯誤「沒有這樣的文件或目錄。」 如果我通過SSH連接並輸入其中一個配置命令,那麼它的工作原理沒有任何問題。
有人知道這是怎麼回事?