如何在高山码头工人或更好的Cassandra客户端上安装perl OpenSSL DBD :: Cassandra
在高山码头工人上,此操作失败:
cpm install DBD::Cassandra
阅读成功安装的日志后
cpm install IO::Socket::INET6
并且安装失败
cpm install OpenSSL
FROM alpine:3.10.3
## alpine curl and wget aren't fully compatible, so we install them
## here. gnupg is needed for Module::Signature.
RUN apk update && apk upgrade
RUN apk add --no-cache curl tar make gcc build-base wget gnupg ca-certificates g++ git gd-dev
RUN apk add --no-cache zlib zlib-dev
RUN apk add --no-cache perl perl-dev
RUN curl -L <this was cencored by stack overflow>cpanm > /bin/cpanm && chmod +x /bin/cpanm
RUN cpanm App::cpm
WORKDIR /usr
RUN cpm install Try::Tiny
RUN cpm install YAML
RUN cpm install JSON
RUN cpm install JSON::MaybeXS
RUN cpm install HTTP::Request
RUN cpm install HTTP::Response
RUN cpm install HTTP::Daemon
RUN cpm install GD::Simple
RUN cpm install GD::Graph
RUN cpm install Data::HexDump::Range
RUN cpm install Proc::Daemon
RUN cpm install Test::Block
RUN cpm install Text::Colorizer
RUN cpm install Gzip::Faster
ENV PERL5LIB=/usr/local/lib/perl5
ENV PATH=/usr/local/bin:$PATH
RUN apk add --no-cache musl-obstack-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN cpm install Proc::ProcessTable
RUN cpm install Kafka::Connection
COPY run.sh /run.sh
RUN chmod +x "/run.sh"
RUN mkdir -p /code_path
WORKDIR /code_path
CMD ["/run.sh"]
输出失败文件指示缺少IO :: Socket :: INET6 OpenSSL:
bash-5.0# tail /root/.cpanm/work/1582818617.3526/build.log
/usr/include/openssl/bn.h:332:1: note: declared here
DEPRECATEDIN_0_9_8(int
^~~~~~~~~~~~~~~~~~
OpenSSL.xs: In function 'boot_OpenSSL':
OpenSSL.xs:854:9: warning: implicit declaration of function 'SSL_load_error_strings'; did you mean 'ERR_lib_error_string'? [-Wimplicit- function-declaration]
SSL_load_error_strings();
^~~~~~~~~~~~~~~~~~~~~~
ERR_lib_error_string
make: *** [Makefile:353: OpenSSL.o] Error 1
-> FAIL Installing OpenSSL failed. See /root/.cpanm/work/1582818617.3526/build.log for details. Retry with --force to force install it.
对于/bin/cpanm
,使用Alpine的本机软件包perl-app-cpanminus: