1. 程式人生 > >CentOS上編譯myget時報SSL錯誤的解決辦法

CentOS上編譯myget時報SSL錯誤的解決辦法

      今天在centos上編譯myget,報下面的錯誤:

make  all-recursive
make[1]: Entering directory `/root/soft/myget-0.1.2'
Making all in src
make[2]: Entering directory `/root/soft/myget-0.1.2/src'
g++  -D_FILE_OFFSET_BITS=64   -o mytget  debug.o advio.o tcp.o url.o utils.o block.o header.o plugin.o proxy.o task.o http.o httpplugin.o ftp.o ftpparser.o ftpplugin.o downloader.o myget.o mytget.o progressbar.o  -lpthread
advio.o: In function `IOStream::write(char*, int, long)':
advio.cpp:(.text+0x709): undefined reference to `SSL_write'
advio.o: In function `IOStream::read(char*, int, long)':
advio.cpp:(.text+0x951): undefined reference to `SSL_read'
advio.cpp:(.text+0x983): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::ssl_connect()':
advio.cpp:(.text+0xc8e): undefined reference to `SSL_connect'
advio.cpp:(.text+0xcb1): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::set_fd(int)':
advio.cpp:(.text+0xd22): undefined reference to `SSL_set_fd'
advio.cpp:(.text+0xd30): undefined reference to `SSL_connect'
advio.cpp:(.text+0xd53): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::set_use_ssl(bool)':
advio.cpp:(.text+0xdfb): undefined reference to `SSL_CTX_free'
advio.cpp:(.text+0xe00): undefined reference to `SSLv23_client_method'
advio.cpp:(.text+0xe08): undefined reference to `SSL_CTX_new'
advio.cpp:(.text+0xe1e): undefined reference to `SSL_new'
advio.cpp:(.text+0xe3d): undefined reference to `SSL_set_fd'
advio.cpp:(.text+0xe54): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xe84): undefined reference to `SSL_CTX_free'
advio.o: In function `IOStream::~IOStream()':
advio.cpp:(.text+0xea5): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xecb): undefined reference to `SSL_CTX_free'
advio.o: In function `IOStream::~IOStream()':
advio.cpp:(.text+0xef9): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xf1f): undefined reference to `SSL_CTX_free'
mytget.o: In function `main':
mytget.cpp:(.text+0x2db): undefined reference to `SSL_load_error_strings'
mytget.cpp:(.text+0x2e0): undefined reference to `SSL_library_init'
collect2: ld returned 1 exit status
make[2]: *** [mytget] Error 1
make[2]: Leaving directory `/root/soft/myget-0.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/soft/myget-0.1.2'
make: *** [all] Error 2

    然後我直接複製裡面的g++編譯語句,後面加上-lssl, 問題解決。

相關推薦

CentOS編譯myget時報SSL錯誤解決辦法

      今天在centos上編譯myget,報下面的錯誤: make  all-recursive make[1]: Entering directory `/root/soft/myget-0.1.2' Making all in src

(轉)ubuntu源碼編譯安裝php常見錯誤解決辦法

ttf tar.gz mcr ibm 地址 sin make zip .org 原文地址 http://blog.csdn.net/white__cat/article/details/28907535 ‘./configure’ ‘–prefix=/usr/lo

php程序傳網站logo出現錯誤解決辦法

文件夾權限 php程序 設置 emp nbsp warn ror ora 文件夾創建 工作中遇到的問題,我都會一一解決,並把解決辦法發到這裏來。上傳網站logo出現錯誤:php warning: file upload error unable to creatr a

PHP編譯安裝時常見錯誤解決辦法

containe -c libmcrypt led form vpx char win sta PHP編譯安裝時常見錯誤解決辦法 This article is post on https://coderwall.com/p/ggmpfa configur

PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤

轉載自:http://www.bkjia.com/PHPjc/1008013.html   This article is post on https://coderwall.com/p/ggmpfa configure: error: xslt-config not foun

eclipse git傳下載程式碼auth錯誤解決辦法

當出現這種問題的時候,主要是eclipse裡面的rsa key沒有提交到 gitLAB 上 點選window > Preferences > General > Network Connections > SSH2>Generate

centos 下git clone報401錯誤解決辦法

1.我們在伺服器上直接git clone專案的版本庫的時候報401錯誤! 錯誤如下:error: The requested URL returned error: 401 Unauthorized while accessing 原因:git

CentOSNTP服務的DDOS攻擊解決辦法

引言: 在網路上,Linux伺服器大行其道,但是也備受攻擊。本文將描述在實際中碰到的NTP攻擊問題以及相應的解決辦法。 1. 場景描述      Aliyun上的ECS一臺,過一段時間,頻繁報警,說是流量過大,遭到了DDOS攻擊,服務將被隔離,並停止響應服務一段時間,進行流

angular.min.js 在iis服務 post方法出現 500錯誤解決辦法

原因 請求 Content-Type 不一樣 修改一下就可以了 a.module("login", [], function($httpProvider) { // 修改請求Content-T

pyspider爬取https網址的時候報HTTP 599: SSL 錯誤解決辦法

pyspider是個非常適合新手快速入門爬取網站資料的一個框架,是國內某個大神寫的,然而往往我們在實際使用過程中也會遇到很多坑,下面是我在使用pyspider爬取https網站的時候報了一個錯誤:錯誤資

Ubuntu(64位)編譯Android原始碼常見錯誤解決辦法

錯誤: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o]

常見SSL錯誤解決辦法

在訪問部署了SSL證書的網站過程中,往往由於證書的相容性、證書配置、證書過期等多種原因提示SSL證書錯誤,這裡給大家總結常見的SSL證書錯誤和解決辦法。ssl錯誤一:"無法將這個證書驗證到一個受信任的證書頒發機構"或者類似"該安全證書由您沒有選定信任的公司頒發"等情況。解決方

iOS9 支付寶AlipaySDK編譯錯誤解決辦法

編譯的錯誤: ld: warning: directory not found for option ‘-L/Users/XXX/Downloads/ios’ ld: ‘/XXX/Common/ALiPay/AlipaySDK.framework/AlipaySDK’ do

【實習】從ubuntu遷移過來的代碼,在centos編譯問題的解決匯總

進行 libc 腳本 entos 行集 升級 版本不兼容 ubuntu 實習 目前自己的開發環境(同將來線上環境)是centos 7。我這裏主要實現服務端。需要組裏其他同學提供一個接口(視頻編輯)。公司內部自己開發環境 通常是臺式ubuntu16.04。所以提供視頻處理接口

destoon開啟https ssl 後臺登錄錯誤解決辦法

destoon https ssl destoon開啟https ssl 後臺登錄錯誤解決辦法 修改include/global.func.php文件,在case ‘scheme‘:下面加入 return ‘https://‘; 本來我也打算換一個https,但是我的域名是:http://zhim

Ubuntu(64位)編譯Android源碼常見錯誤解決辦法

androi box track generic perf prop csdn AI not find 2013年07月10日 14:47:27 閱讀數:1239 錯誤: /usr/include/gnu/stubs.h:7:27: error: gnu/s

Cordova - XCode10編譯熱更新外掛錯誤解決方法!

作業系統:OSX10.14 XCode:10.1 熱更新外掛:https://github.com/nordnet/cordova-hot-code-push 這個熱更新外掛,在安卓下編譯,沒有問題,可以順利編譯,但是在最新版的XCode下編譯,卻出現錯誤了! 錯誤資訊:ld: library not

GCC編譯 Value too large for defined data type 錯誤解決辦法

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

centOS 7下無法啟動網路(service network start)錯誤解決辦法

   今天在centOS 7下更改完靜態ip後發現network服務重啟不了,翻遍了網路,嘗試了各種方法,終於解決了。      現把各種解決方法歸納整理,希望能讓後面的同學少走點歪路。。。 首先看問題:執行service network res

Qt Creator 編譯 ROS 包出現連結錯誤解決辦法

若編譯過程中,出現 cannot find -ltf cannot find -lroscpp ... 主要是因為 Qt 編譯 ROS 後連結環節出現問題,主要原因是 Qt 啟動時沒有載入 ROS 相關的環境變數,解決辦法如下: sudo vim /usr/share/ap