我正在尝试在 Ubuntu 18.04 中构建稳定的 cpp-netlib 0.12.0,但是当我开始运行时
$ make -j4
我收到很多错误,例如:
error: ‘SSL_R_SHORT_READ’ was not declared in this scope
ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)
-DOPENSSL_INCLUDE_DIR
谷歌告诉我这是因为 make 变量-DOPENSSL_SSL_LIBRARY
需要定义。但是,我找不到需要设置它们的目录/库。示例给出了/usr/lib/openssl-1.0
and /usr/include/openssl-1.0
,但我找不到类似的东西,即使我通过 apt-get 安装了最新版本的 openssl。
我的/usr/include
目录包含文件夹“openssl”,但usr/lib
甚至没有,只有“openssh”,它似乎不包含任何相关内容。
我怎样才能解决这个问题?