環境構築:Redmine:Apacheモジュールのインストール

下記コマンドを実行すると、エラーが出力された。

$ passenger-install-apache2-module --auto --languages ruby
c++ -o buildout/common/libpassenger_common/AppTypes.o  -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -Isrc/cxx_supportlib/vendor-modified/libev -Isrc/cxx_supportlib/vendor-copy/libuv/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -g -std=gnu++11 -Wno-unused-local-typedefs -DHASH_NAMESPACE="__gnu_cxx" -DHASH_MAP_HEADER="<hash_map>" -DHASH_MAP_CLASS="hash_map" -DHASH_FUN_H="<hash_fun.h>" -c src/cxx_supportlib/AppTypes.cpp
c++ -o buildout/support-binaries/PassengerAgent buildout/common/libpassenger_common/LoggingKit.o buildout/common/libpassenger_common/Exceptions.o buildout/common/libpassenger_common/ProcessManagement/Spawn.o buildout/common/libpassenger_common/ProcessManagement/Utils.o buildout/common/libpassenger_common/Utils/SystemTime.o buildout/common/libpassenger_common/Utils/StrIntUtils.o buildout/common/libpassenger_common/Utils/StrIntUtilsNoStrictAliasing.o buildout/common/libpassenger_common/Utils/IOUtils.o buildout/common/libpassenger_common/Utils/Hasher.o buildout/common/libpassenger_common/Utils.o buildout/common/libpassenger_common/jsoncpp.o buildout/common/libpassenger_common/vendor-modified/modp_b64.o buildout/common/libpassenger_common/vendor-modified/modp_b64_strict_aliasing.o buildout/common/libpassenger_common/UnionStationFilterSupport.o buildout/common/libpassenger_common/ProcessManagement/Ruby.o buildout/common/libpassenger_common/Crypto.o buildout/common/libpassenger_common/Utils/CachedFileStat.o buildout/common/libpassenger_common/Utils/LargeFiles.o buildout/common/libpassenger_common/MemoryKit/mbuf.o buildout/common/libpassenger_common/MemoryKit/palloc.o buildout/common/libpassenger_common/ServerKit/http_parser.o buildout/common/libpassenger_common/ServerKit/Implementation.o buildout/common/libpassenger_common/DataStructures/LString.o buildout/common/libpassenger_common/AppTypes.o buildout/support-binaries/AgentMain.o buildout/support-binaries/AgentFundamentals.o buildout/support-binaries/WatchdogMain.o buildout/support-binaries/CoreMain.o buildout/support-binaries/CoreApplicationPool.o buildout/support-binaries/CoreController.o buildout/support-binaries/SystemMetricsMain.o buildout/support-binaries/TempDirToucherMain.o buildout/support-binaries/SpawnPreparerMain.o buildout/common/libboost_oxt.a   buildout/libev/.libs/libev.a  -lm buildout/libuv/.libs/libuv.a  -lrt -lpthread -lnsl -ldl -lcurl -lz  -lcrypto -std=gnu++11 -lpthread -lrt -ldl -rdynamic
buildout/common/libpassenger_common/Crypto.o: 関数 `Passenger::Crypto::Crypto()' 内:
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/src/cxx_supportlib/Crypto.cpp:710: `OPENSSL_init_crypto' に対する定義されていない参照です
buildout/common/libpassenger_common/Crypto.o: 関数 `Passenger::Crypto::encryptRSA(unsigned char*, unsigned long, std::string, unsigned char**, unsigned long&)' 内:
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/src/cxx_supportlib/Crypto.cpp:868: `RSA_pkey_ctx_ctrl' に対する定義されていない参照です
buildout/common/libpassenger_common/Crypto.o: 関数 `Passenger::Crypto::verifySignature(std::string, char*, int, std::string)' 内:
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/src/cxx_supportlib/Crypto.cpp:924: `EVP_MD_CTX_new' に対する定義されていない参照です
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/src/cxx_supportlib/Crypto.cpp:948: `EVP_MD_CTX_free' に対する定義されていない参照です
buildout/common/libpassenger_common/Crypto.o: 関数 `Passenger::Crypto::logErrorExtended(Passenger::StaticString const&)' 内:
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/src/cxx_supportlib/Crypto.cpp:979: `OPENSSL_init_crypto' に対する定義されていない参照です
collect2: エラー: ld はステータス 1 で終了しました
rake aborted!
Command failed with status (1): [c++ -o buildout/support-binaries/PassengerAgent buildout/common/libpassenger_common/LoggingKit.o buildout/common/libpassenger_common/Exceptions.o buildout/common/libpassenger_common/ProcessManagement/Spawn.o buildout/common/libpassenger_common/ProcessManagement/Utils.o buildout/common/libpassenger_common/Utils/SystemTime.o buildout/common/libpassenger_common/Utils/StrIntUtils.o buildout/common/libpassenger_common/Utils/StrIntUtilsNoStrictAliasing.o buildout/common/libpassenger_common/Utils/IOUtils.o buildout/common/libpassenger_common/Utils/Hasher.o buildout/common/libpassenger_common/Utils.o buildout/common/libpassenger_common/jsoncpp.o buildout/common/libpassenger_common/vendor-modified/modp_b64.o buildout/common/libpassenger_common/vendor-modified/modp_b64_strict_aliasing.o buildout/common/libpassenger_common/UnionStationFilterSupport.o buildout/common/libpassenger_common/ProcessManagement/Ruby.o buildout/common/libpassenger_common/Crypto.o buildout/common/libpassenger_common/Utils/CachedFileStat.o buildout/common/libpassenger_common/Utils/LargeFiles.o buildout/common/libpassenger_common/MemoryKit/mbuf.o buildout/common/libpassenger_common/MemoryKit/palloc.o buildout/common/libpassenger_common/ServerKit/http_parser.o buildout/common/libpassenger_common/ServerKit/Implementation.o buildout/common/libpassenger_common/DataStructures/LString.o buildout/common/libpassenger_common/AppTypes.o buildout/support-binaries/AgentMain.o buildout/support-binaries/AgentFundamentals.o buildout/support-binaries/WatchdogMain.o buildout/support-binaries/CoreMain.o buildout/support-binaries/CoreApplicationPool.o buildout/support-binaries/CoreController.o buildout/support-binaries/SystemMetricsMain.o buildout/support-binaries/TempDirToucherMain.o buildout/support-binaries/SpawnPreparerMain.o buildout/common/libboost_oxt.a   buildout/libev/.libs/libev.a  -lm buildout/libuv/.libs/libuv.a  -lrt -lpthread -lnsl -ldl -lcurl -lz  -lcrypto -std=gnu++11 -lpthread -lrt -ldl -rdynamic  ]
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/build/support/cplusplus.rb:53:in `run_compiler'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/build/support/cplusplus.rb:118:in `create_cxx_executable'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/passenger-5.1.12/build/agent.rb:105:in `block in <top (required)>'
/opt/rh/rh-ruby24/root/usr/local/share/gems/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => apache2 => buildout/support-binaries/PassengerAgent
(See full trace by running task with --trace)

--------------------------------------------

It looks like something went wrong

Please read our documentation for troubleshooting tips:

   https://www.phusionpassenger.com/library/install/apache/
   https://www.phusionpassenger.com/library/admin/apache/troubleshooting/

If that doesn't help, please use our support facilities. We'll do our best to help you.

   https://www.phusionpassenger.com/support

解決は下記のコマンドでいけた。

$ sudo yum remove openssl openssl-devel
コメントを入力:
 
  • 環境構築/Redmine/Apacheモジュールのインストール.txt
  • 最終更新: 2022/11/30 08:42
  • by 白くじら