我现在正尝试将Ruby上的ruby与MariaDB连接起来。但由于某些原因,在尝试安装mysql2
gem时,我收到此错误:
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
我在轨道上的ruby缺少什么SSL / Crypto库?
我无法找到有这个确切问题的其他人。
我得到的错误:
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -
I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -
I/usr/include/mysql -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-
map=/build/ruby2.3-yge53O/rub$
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -
I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -
I/usr/include/mysql -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/ruby2.3-yge53O/rub$
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
答案 0 :(得分:2)