久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 Ubuntu 上安裝 OpenSSL 庫?

How do I install the OpenSSL libraries on Ubuntu?(如何在 Ubuntu 上安裝 OpenSSL 庫?)
本文介紹了如何在 Ubuntu 上安裝 OpenSSL 庫?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在嘗試在使用 OpenSSL 1.0.0 的 Ubuntu 10.04 LTS 上構(gòu)建一些代碼.當(dāng)我運(yùn)行 make 時(shí),它??會(huì)使用-lssl"選項(xiàng)調(diào)用 g++.來源包括:

I'm trying to build some code on Ubuntu 10.04 LTS that uses OpenSSL 1.0.0. When I run make, it invokes g++ with the "-lssl" option. The source includes:

#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <openssl/des.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>

我跑了:

$ sudo apt-get install openssl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

但我猜 openssl 包不包含庫.我在 make 時(shí)遇到這些錯(cuò)誤:

But I guess the openssl package doesn't include the library. I get these errors on make:

foo.cpp:21:25: error: openssl/bio.h: No such file or directory
foo.cpp:22:28: error: openssl/buffer.h: No such file or directory
foo.cpp:23:25: error: openssl/des.h: No such file or directory
foo.cpp:24:25: error: openssl/evp.h: No such file or directory
foo.cpp:25:25: error: openssl/pem.h: No such file or directory
foo.cpp:26:25: error: openssl/rsa.h: No such file or directory

如何在 Ubuntu 10.04 LTS 上安裝 OpenSSL C++ 庫?

How do I install the OpenSSL C++ library on Ubuntu 10.04 LTS?

我做了一個(gè) man g++ 和(在鏈接選項(xiàng)"下)它聲明的 -l 選項(xiàng):鏈接器搜索庫的標(biāo)準(zhǔn)目錄列表......"和搜索的目錄包括幾個(gè)標(biāo)準(zhǔn)系統(tǒng)目錄……"那些標(biāo)準(zhǔn)系統(tǒng)目錄是什么?

I did a man g++ and (under "Options for Linking") for the -l option it states: " The linker searches a standard list of directories for the library..." and "The directories searched include several standard system directories..." What are those standard system directories?

推薦答案

你要安裝開發(fā)包,就是libssl-dev:

You want to install the development package, which is libssl-dev:

sudo apt-get install libssl-dev

這篇關(guān)于如何在 Ubuntu 上安裝 OpenSSL 庫?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

What do compilers do with compile-time branching?(編譯器如何處理編譯時(shí)分支?)
Can I use if (pointer) instead of if (pointer != NULL)?(我可以使用 if (pointer) 而不是 if (pointer != NULL) 嗎?)
Checking for NULL pointer in C/C++(在 C/C++ 中檢查空指針)
Math-like chaining of the comparison operator - as in, quot;if ( (5lt;jlt;=1) )quot;(比較運(yùn)算符的數(shù)學(xué)式鏈接-如“if((5<j<=1)))
Difference between quot;if constexpr()quot; Vs quot;if()quot;(“if constexpr()之間的區(qū)別與“if())
C++, variable declaration in #39;if#39; expression(C++,if 表達(dá)式中的變量聲明)
主站蜘蛛池模板: 亚洲自拍偷拍av | 久久香蕉网 | 国产精品国产成人国产三级 | 亚洲人成免费 | 男女视频在线免费观看 | 久草在线在线精品观看 | 在线高清免费观看视频 | 亚洲成人三区 | 久久一区二区视频 | 伊人免费网 | 亚洲一区在线日韩在线深爱 | 精品国产久 | 成人精品一区 | 亚洲成人网在线播放 | 爱操av | 一区二区免费看 | 国产精品久久久久999 | 国产精品免费观看视频 | 成人在线观看免费 | 狠狠干影院 | www.中文字幕 | 黄色在线免费观看 | 香蕉一区二区 | 日韩视频在线观看中文字幕 | 久久精品91久久久久久再现 | 国精日本亚洲欧州国产中文久久 | 久久er精品 | 欧美视频精品 | 国产aa| 亚洲国产第一页 | 欧美日韩在线播放 | 亚洲精品2区 | 久久专区 | 国产成人精品区一区二区不卡 | 日日夜夜草 | 米奇7777狠狠狠狠视频 | 色毛片| 亚洲区一区二区 | 91精品国产综合久久香蕉922 | 久久精品色欧美aⅴ一区二区 | 亚洲大片 |