当前位置:  开发笔记 > 运维 > 正文

在Antergos Linux上找不到"OPENSSL_1.0.0"

如何解决《在AntergosLinux上找不到"OPENSSL_1.0.0"》经验,为你挑选了1个好方法。

我正在Antergos Linux环境中的android studio上开发一个App.同步,构建和调试一切正常.一天前,经过一些更新,它不再构建.源代码是完全相同的,我已经尝试将我的代码重置为以前也工作的旧提交,所以我知道问题不是来自我的代码.Gradle Sync消息是:

Build command failed.

Error while executing process /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake with arguments {-H/home/andre/Development/Edru/edru-android/app
-B/home/andre/Development/Edru/edru-android/app/.externalNativeBuild/cmake/debug/armeabi
-GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/andre/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/andre/Development/Edru/edru-android/app/build/intermediates/cmake/debug/obj/armeabi
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/home/andre/Android/Sdk/cmake/3.6.3155560/bin/ninja
-DCMAKE_TOOLCHAIN_FILE=/home/andre/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=android-19 -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions}

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake:  /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by  /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

Build command failed.

Error while executing process /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake with arguments {-H/home/andre/Development/Edru/edru-android/app
-B/home/andre/Development/Edru/edru-android/app/.externalNativeBuild/cmake/release/armeabi
-GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/andre/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/andre/Development/Edru/edru-android/app/build/intermediates/cmake/release/obj/armeabi
-DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/home/andre/Android/Sdk/cmake/3.6.3155560/bin/ninja
-DCMAKE_TOOLCHAIN_FILE=/home/andre/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=android-19 -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions}

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

/home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by /home/andre/Android/Sdk/cmake/3.6.3155560/bin/cmake)

我已经检查过,我有openssl 1.0和openssl 1.1.我已经用一个全新的android-studio重新安装了我的操作系统,问题仍然存在.

感谢您的关注.



1> JonasVauther..:

问题出在cmake 3.6.3155560Android和openssl-1.0.2.k-3之间.如果您是Arch Linux的最新版本,我相信您现在已经安装extra/openssl-1.0 1.0.2.k-3core/openssl 1.1.0.e-1安装了.这是我的情况,至少.

在这种情况下,只需降级openssl-1.0 1.0.2.k-3openssl-1.0 1.0.2.k-2,如下:

注意:它适用于我,但我不是Arch专家,降级包可能会对您的系统产生影响.这样做需要您自担风险.

    在这里下载软件包:"openssl-1.0-1.0.2.k-2-x86_64.pkg.tar.xz"

    降级到刚刚下载的软件包 $ pacman -U openssl-1.0-1.0.2.k-2-x86_64.pkg.tar.xz

    作为验证,如果您运行pacman -Ss openssl-1.0,它应该告诉您:

    extra/openssl-1.0 1.0.2.k-3 [已安装:1.0.2.k-2]

当然,pacman -Syu然后会openssl-1.0再次更新.

更新:截至今天(30-05-2017),它似乎是固定的.

推荐阅读
依然-狠幸福
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有