得到错误的openssl / rsa.h:没有这样的文件或目录

时间:2019-02-21 11:04:31

标签: c++ ubuntu openssl

我正在使用ubuntu并编译gRPC,但在openssh上却出错:

gRPC/src/core/lib/security/credentials/jwt/json_token.h:25:25: fatal error: openssl/rsa.h: No such file or directory

我的系统具有以下openssh版本:

OpenSSL 1.0.2h-fips  3 May 2016

试图使用以下命令安装openssh:

apt-get install libssl-dev

它给出错误command not found

1 个答案:

答案 0 :(得分:0)

您的系统似乎找不到let soldList1 = [ { itemCode: "X001", soldRate: 0.0789 }, { itemCode: "5555", soldRate: 0.0543 }, { itemCode: "3141", soldRate: 0.0112 }, { itemCode: "Mix-001", soldRate: 0.01 }, { itemCode: "7689-L", soldRate: 0.005 }, { itemCode: "1111", soldRate: 0.003 } ]; let soldList2 = [ { itemCode: "3141", soldRate: 0.0712 }, { itemCode: "7689-L", soldRate: 0.03 }, { itemCode: "5555", soldRate: 0.0234 }, { itemCode: "1111", soldRate: 0.011 }, { itemCode: "X001", soldRate: 0.008 }, { itemCode: "Mix-001", soldRate: 0.004 } ]; let soldList3 = [ { itemCode: "5555", soldRate: 0.0339 }, { itemCode: "X001", soldRate: 0.0221 }, { itemCode: "3141", soldRate: 0.0111 }, { itemCode: "1111", soldRate: 0.0089 }, { itemCode: "Mix-001", soldRate: 0.0077 }, { itemCode: "7689-L", soldRate: 0.0032 } ]; let soldList4 = [ { itemCode: "8888", soldRate: 0.13 }, { itemCode: "9999", soldRate: 0.11 }, { itemCode: "3141", soldRate: 0.08 }, { itemCode: "1111", soldRate: 0.07 } ]; let soldList5 = [ { itemCode: "3141", soldRate: 0.044 }, { itemCode: "1111", soldRate: 0.011 }, { itemCode: "8888", soldRate: 0.0011 }, { itemCode: "9999", soldRate: 0.0001 } ]; let soldList6 = [ { itemCode: "Mix-001", soldRate: 0.5678 }, { itemCode: "7689-L", soldRate: 0.546 }, { itemCode: "8888", soldRate: 0.323 }, { itemCode: "9999", soldRate: 0.0032 }, { itemCode: "Mix-001", soldRate: 0.0022 }, { itemCode: "UV-007", soldRate: 0.0012 }, { itemCode: "TT-08", soldRate: 0.0011 }, { itemCode: "PP-03", soldRate: 0.0009 } ]; function sumSoldRates(...arrs) { let itemCodes = [].concat(...arrs).reduce((acc, obj) => { if (!acc.includes(obj.itemCode)) { acc.push(obj.itemCode); } return acc; }, []); let result = itemCodes.map(code => { let obj = { itemCode: code, data: [], dataSum: 0 }; arrs.forEach(arr => { let item = arr.find(el => el.itemCode === code); if (item) { obj.data.push(item.soldRate); obj.dataSum += item.soldRate; } else { obj.data.push(0); } }); return obj; }); result.sort((a, b) => b.dataSum - a.dataSum); return result; } let result = sumSoldRates( soldList1, soldList2, soldList3, soldList4, soldList5, soldList6 ); console.log(result);命令。

这可能对您有帮助(apt-get: command not found)。