我使用新的macOS Catalina运行了Django项目,并且运行良好。
我安装了oh_my_zsh,然后尝试运行它因以下错误而崩溃的同一项目。我卸载了oh_my_zsh并再次尝试,但没有成功。
Path: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.4 (3.7.4)
Code Type: X86-64 (Native)
Parent Process: Python [7526]
Responsible: Terminal [7510]
User ID: 501
Date/Time: 2019-10-07 20:59:20.675 +0530
OS Version: Mac OS X 10.15 (19A582a)
Report Version: 12
Anonymous UUID: CB7F20F6-96C0-4F63-9EC5-AFF3E0989687
Time Awake Since Boot: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not …Run Code Online (Sandbox Code Playgroud) 我正在使用Ubuntu 12.04 - 服务器并且始终如一:
/usr/lib/libcrypto.so.1.0.0:没有可用的版本信息(由/usr/lib/libpython2.7.so.1.0要求)
和
/usr/lib/libssl.so.1.0.0:没有可用的版本信息(由/usr/lib/libpython2.7.so.1.0要求)
没有任何模式的错误消息.它可以像运行vi一样简单.文件在那里,它们不是链接.
在学习了ldap服务器的基础知识的同时,在编译和安装OpenLDAP之后,使用其网站上的说明开始了这一点.我当然删除了openLDAP以尝试删除问题.我还重新安装了OpenSSL和libssl1.0.0来尝试测试该解决方案.
任何帮助将不胜感激,不幸的是谷歌没有用.
我有一个需要使用 Libcrypto 的项目 - 我有两个版本的 Libcrypto(为 ARM64 构建的 libcrypto.a(来自 OpenSSL 1.1.1))和(针对 Intel 的 lcrypto.a(来自 OpenSSL 1.0.2))。撇开拥有两个不同版本是否是良好实践的问题不谈,我可以说,如果我包含 libcrypto.a,那么我可以在 M1 上构建和运行,并且它在 M1 上运行良好。如果我包含 lcrypto.a,那么我可以在 Intel 上构建和运行,并且它在 Intel 上运行良好。我不能做的就是将它们都包括在内(链接器错误 - The linked library 'lcrypto.a' is missing one or more architectures required by this target: arm64.) - 如果我不能将它们都包括在内,那么我就无法构建一个胖二进制文件,并且我的应用程序并不是完全有用!
我的问题是如何将两者都包含在我的项目中 - 或者我在哪里可以获得(以及如何包含)Libcrypto 的胖版本?我看过这个https://github.com/balthisar/openssl-xcframeworks/releases和这个https://developer.apple.com/forums/thread/670631但我一无所知。我想我构建了一个 Fat Binary - 但我认为我构建的 Fat Binary 不适用于任何一种架构!
我的项目使用 CMake 构建,但在 Mac 上构建时使用本地 macOS 版本的 clang 和 ld。
在 macOS 10.15 Catalina 上升级到 Xcode 11 后,我无法链接并出现以下错误:ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86_64.
这与新应用公证有关吗?是否有不需要项目在 Xcode 中的修复(我使用 CLion 在 macOS 上开发)或不需要链接我自己的 OpenSSL 构建?
任何帮助表示赞赏。
每当我使用显然使用 Python 的 AWS CLI 时,我都会收到以下错误。
aws --version
WARNING: Executing a script that is loading libcrypto in an unsafe way. This will fail in a future version of macOS. Set the LIBRESSL_REDIRECT_STUB_ABORT=1 in the environment to force this into an error.
aws-cli/1.16.15 Python/2.7.16 Darwin/19.0.0 botocore/1.12.5
Run Code Online (Sandbox Code Playgroud)
我在 macOS 10.15.1 (19B88) 上运行它,内核版本:Darwin 19.0.0。
我的应用程序在 Python 2 上运行(目前),所以我还不能升级 Python。
这是由运行即将不受支持的 Python 版本引起的吗?
我正在尝试使用OpenSSL的EVP接口进行一些加密.我很确定我的代码是正确的,但我似乎无法编译.我正在使用GCC,并且安装了libssl-dev的Ubuntu 32位精确版和最新版本.
该项目目前包含一个文件program.c.
#include <openssl/evp.h>
...
i = EVP_BytesToKey(EVP_aes_256_cbc(), EVP_sha1() ... );
...
EVP_CIPHER_CTX_init(e_ctx);
Run Code Online (Sandbox Code Playgroud)
以及其他各种电话.
这是我如何调用gcc:
gcc -Wall -g -lssl -lcrypto -o program program.c
Run Code Online (Sandbox Code Playgroud)
然后我得到这样的输出
/home/andy/program/program.c:31: undefined reference to `EVP_sha1'
/home/andy/program/program.c:31: undefined reference to `EVP_aes_256_cbc'
/home/andy/program/program.c:31: undefined reference to `EVP_BytesToKey'
/home/andy/program/program.c:44: undefined reference to `EVP_CIPHER_CTX_init'
Run Code Online (Sandbox Code Playgroud)
所以包含显然在起作用:
andy@ProgStation2:/usr/include$ find . | grep evp.h
./openssl/evp.h
Run Code Online (Sandbox Code Playgroud)
这是输出locate libcrypto.我最好的猜测是,这是一个愚蠢的位置,这就是为什么我的链接失败,所以我-L/usr/lib/i386-linux-gnu之前尝试过-lcrypto没有运气.
/lib/i386-linux-gnu/libcrypto.so.1.0.0
Run Code Online (Sandbox Code Playgroud)
我有点难过.如果有人想让我觉得自己像个傻瓜,我会非常兴奋地弄清楚我做错了什么!
考虑 OpenSSL,该项目本身有两个产品:libssl.a和libcrypto.a。为了简单起见,我们使用存储在该存储库中的预编译库并仅考虑iphonesimulator平台。
当查看存储库时,每个平台例如iphonesimulator或iphoneos将具有一组用于所有所需架构的静态库。
我的目标是创建一个捆绑这两个静态库的 XCFramework,以便可以方便地将 Swift Package Manager 作为单个包使用。
我绝对可以使用以下命令从静态库创建一个支持多个平台的 XCFramework:iOS Simulator ( i386, x86_64, arm64), iOS ( arm64, ...) :arm7
xcodebuild -create-xcframework \
-library iphonesimulator/lib/libcrypto.a \
-headers iphonesimulator/include/ \
-library iphoneos/lib/libcrypto.a \
-headers iphoneos/include/ \
-output OpenSSL.xcframework
Run Code Online (Sandbox Code Playgroud)
输出如下:
xcframework 成功写入:/Users/name/OSSL_test/OpenSSL.xcframework
框架的结构是正确的,它包含标头和libcrypto.a. 当导入到另一个 Xcode 项目时,该 XCFramework 会被识别并用于构建应用程序。
但是,当我也尝试添加时libssl.a,出现以下错误:
xcodebuild -create-xcframework \
-library iphonesimulator/lib/libcrypto.a \
-headers iphonesimulator/include/ \
-library iphonesimulator/lib/libssl.a …Run Code Online (Sandbox Code Playgroud) 我是 Arch GNU/Linux 用户,通常使用 pacman 管理几乎每个包;我用 tlmgr 管理 TeX 和 LaTeX 相关的东西。我从源代码安装了 tlmgr。
我正在写纸。我想使用参考书目。
当我尝试时latexmk -pdflua main.ltx:
Rc files read:
latexmkrc
Latexmk: This is Latexmk, John Collins, 20 November 2021, version: 4.76.
Latexmk: applying rule 'biber main'...
Rule 'biber main': The following rules & subrules became out-of-date:
'biber main'
------------
Run number 1 of rule 'biber main'
------------
------------
Running 'biber "main.bcf"'
------------
biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file …Run Code Online (Sandbox Code Playgroud) 我看到了这个问题“找不到包‘libcrypto’”。我几个月前修复的相同错误是遵循这个解决方案:https : //github.com/scipr-lab/libsnark/issues/99 我今天尝试了这个解决方案,但它不再起作用了。(我也试过“brew install openssl,brew info openssl”)没有运气。你以前见过这个吗?你能帮忙看看吗?
-- Checking for module 'libcrypto'
-- No package 'libcrypto' found
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
PlaylistParser/src/CMakeLists.txt:2 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud) 我试图通过使用Cmake再次编译所有内容,将Windows的C ++项目转换为Debian。
我不是很习惯在Linux上工作,但是已经设法正确安装了所有东西。
这是错误:
/usr/bin/ld: ../shared/libshared.a(BigNumber.cpp.o): undefined reference to symbol 'BN_new@@OPENSSL_1.0.2d'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2: error adding symbols: DSO missing from command line
Run Code Online (Sandbox Code Playgroud)
这实际上似乎是一个常见问题,但我不知道如何处理Cmake。我已经看到了一些答案,例如:
我有点困惑,您能帮我了解我需要使用Cmake吗?
谢谢