0

我遇到了静态链接的问题,这不是动态的。

配置时我的13 步Dockerfile(见下文)我得到以下信息:

 ...
 checking for HMAC_Init_ex in -lcrypto... no
 configure: error: Library crypto not found. Install openssl!"

Dockerfile

 #STEP 4: Set OpenSSL version
 ENV OPENSSL_VERSION 1.0.2d

 #STEP 5: Download and install no-shared OpenSSL 
 RUN wget "http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" && \
     tar xf openssl-$OPENSSL_VERSION.tar.gz && \
     cd openssl-$OPENSSL_VERSION && \
     export CFLAGS="$CFLAGS -fPIC" && \
     export CXXFLAGS="$CXXFLAGS -fPIC" &&\
     CC="gcc -fPIC" ./config no-shared \
                        --prefix=/usr \
                        --libdir=lib && \
     make && \
     make install && \
       cd ..

 #STEP 12: Download sqlcipher
 RUN git clone --progress --verbose https://github.com/sqlcipher/sqlcipher.git

 #STEP 13: Install no-shared sqlcipher
 RUN cd sqlcipher && \ 
     ./configure  --disable-tcl --disable-shared --enable-tempstore=yes \
     CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="/usr/lib/libcrypto.a" && \
     make && \
     make install && \
     cd ..
4

0 回答 0