openssl编译:

  1、编译静态库

    ./config --prefix=/root/openssl/soft

    make

  2、编译动态库

    ./config --prefix=/root/openssl/soft shared

    make

    make install

  3、问题

    1、在静态编译的时候,只需make之后就能使用了,在动态编译时,需要make install,否则就会出现问题:

cannot load engine 'dev'
load engine error
//下面出现一大堆的错误
。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。

    这个问题以后考究。

    2、在测试openssl时,如果使用静态库,就不要动态编译,这样可能会出现内存泄漏的问题,这个可能是动态库和静态库交叉使用时的问题,也可能是源码上的bug,能力问题不能找到问题的本质。

  4、在使用硬件的的时候,需要厂家提供库文件,这个库文件一般放在/lib文件夹下。

    /lib/libxxx.so

  5、在修改完环境变量后,进行source,如果开启了多个终端一定要在每个窗口都要进行source或者。。。。

相关文章:

  • 2021-04-10
  • 2022-01-25
  • 2021-12-05
  • 2021-10-13
  • 2022-01-14
  • 2021-09-21
  • 2021-06-29
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-05-15
  • 2022-12-23
  • 2021-05-29
  • 2021-05-19
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案