小编Дер*_*гей的帖子

苹果硅胶M1上的水晶郎

当我尝试通过此驱动程序连接到 DB(Postgres) 时https://github.com/will/crystal-pg

require "pg"
cnn = PG.connect("postgres://root:password@localhost/my_db_dev")
Run Code Online (Sandbox Code Playgroud)

我在编译过程中遇到错误

Undefined symbols for architecture arm64:
  "_EVP_MD_size", referenced from:
      _*OpenSSL::Digest#digest_size:Int32 in O-penS-S-L-5858D-igest.o
      _*Digest::MD5@OpenSSL::Digest#digest_size:Int32 in D-igest5858M-D-5.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o /Users/serg/Pro/demka/demka  -rdynamic -L/opt/homebrew/lib -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > …
Run Code Online (Sandbox Code Playgroud)

linker openssl crystal-lang apple-m1

5
推荐指数
1
解决办法
915
查看次数

标签 统计

apple-m1 ×1

crystal-lang ×1

linker ×1

openssl ×1