最近很多小伙伴都在问如何在Mac上更新OpenSSL?和mac安装openssl这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展Apache2.4.12更新,OpenSSL更新至1
最近很多小伙伴都在问如何在Mac上更新OpenSSL?和mac安装openssl这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展Apache 2.4.12 更新,OpenSSL 更新至 1.0.1m、c – 在Mac上更新Make 4.1、c – 如何在GCC中使用OpenSSL?、CentOS6.5下OpenSSL升级到OpenSSL 1.0.1g等相关知识,下面开始了哦!
本文目录一览:- 如何在Mac上更新OpenSSL?(mac安装openssl)
- Apache 2.4.12 更新,OpenSSL 更新至 1.0.1m
- c – 在Mac上更新Make 4.1
- c – 如何在GCC中使用OpenSSL?
- CentOS6.5下OpenSSL升级到OpenSSL 1.0.1g
如何在Mac上更新OpenSSL?(mac安装openssl)
根据此文档,我需要确保我具有1.0.1或更高版本的OpenSSL版本才能连接到Salesforce
API 。
根据这个问题,我可以执行以下步骤(已成功完成)
- 酿造更新
- 酿造安装openssl
- 酿造链接–force openssl
运行时openssl version -a
,我得到以下信息:
OpenSSL 1.0.2h 3 May 2016
built on: reproducible build,date unspecified
platform: darwin64-x86_64-cc
options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: /usr/bin/clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/opt/local/etc/openssl"
但是,当我运行时python -c "import ssl; print ssl.OPENSSL_VERSION"
,我得到以下信息:
OpenSSL 0.9.8zh 14 Jan 2016
我从计算机中收到混合信号,但是我的salesforce模块仍然无法正常工作,因此我知道OpenSSL尚未在计算机上完全更新。
我还应该提到我也尝试过:
sudo port upgrade openssl
Port似乎已经工作了,但是当我运行时python -c "import ssl; print ssl.OPENSSL_VERSION"
,仍然显示我在“
OpenSSL 0.9.8zh”上
还有另一种更新OpenSSL的方法吗?
Apache 2.4.12 更新,OpenSSL 更新至 1.0.1m
Apache 2.4.12 更新,改进内容如下:
Apache Lounge changes: *) VC 11 & VC10 : Upgraded OpenSSL to 1.0.1m from 1.0.1l (Changelog) *) VC10 : Upgraded OpenSSL to 0.9.8zf from 1.9.8ze (Changelog)
下载地址: http://www.apachelounge.com/download/
更多内容请看发行说明。
c – 在Mac上更新Make 4.1
有没有人遇到这个问题或知道解决它的方法?
解决方法
Step1:安装自制软件(安装命令来自https://brew.sh/):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
第2步:使用自制软件来安装make
brew install make --with-default-names
只是因为它不起作用,试试这个:
brew install homebrew/dupes/make --with-default-names
步骤3:您需要更改默认命令以使用正确的make而不是MacBook或Mac中的默认值.
例如,如果您键入
make --version
你会看见:
GNU Make 3.81copyright (C) 2006 Free Software Foundation,Inc.This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or fitness FOR APARTIculaR PURPOSE.This program built for i386-apple-darwin11.3.0
哪个是默认版本的默认路径.
所以,现在,在.bash_profile(应该在你的主目录/ Users / your_name下),添加以下行:
export PATH="/usr/local/bin:$PATH"
然后找到你的.bash_profile.现在尝试检查您的版本:
make --version
它应该显示:
GNU Make 4.2.1Built for x86_64-apple-darwin16.5.0copyright (C) 1988-2016 Free Software Foundation,Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY,to the extent permitted by law.
干杯.
c – 如何在GCC中使用OpenSSL?
g++ server.cpp /usr/lib/libssl.a -o server
给出错误消息,就像-l选项一样.我必须在命令行上键入什么才能与openssl链接?文件/usr/lib/libssl.a存在,但是我仍然得到链接器错误没有这样的函数MD5()存在.
解决方法
根据您提供的信息,听起来好像链接器失败,因为它无法在libssl.a中找到对md5函数的引用.我相信这个函数实际上是在libcrypto中,所以你可能也需要指定这个库.
g server.cpp -L /usr/lib -lssl -lcrypto -o server
CentOS6.5下OpenSSL升级到OpenSSL 1.0.1g
# cd /usr/src# wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz -O openssl-1.0.1g.tar.gz
# tar -zxf openssl-1.0.1g.tar.gz
# cd openssl-1.0.1g
# ./config
# make
# make test
# make install
# openssl version(显示的是旧的版本1.0.1e)
执行下面的命令:
# mv /usr/bin/openssl /root/ (或者删除)
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# openssl version
OpenSSL 1.0.1g 7 Apr 2014
今天关于如何在Mac上更新OpenSSL?和mac安装openssl的讲解已经结束,谢谢您的阅读,如果想了解更多关于Apache 2.4.12 更新,OpenSSL 更新至 1.0.1m、c – 在Mac上更新Make 4.1、c – 如何在GCC中使用OpenSSL?、CentOS6.5下OpenSSL升级到OpenSSL 1.0.1g的相关知识,请在本站搜索。
本文标签: