Я нашел ответ на вопрос на этом сайте, который я попытался реализовать с помощью здесь а>.
Я загрузил и установил openssl с здесь. Я выполнил каждый шаг, упомянутый в тексте установки внутри извлеченного файла.
$ ./config $ make $ make test $ make install
Все закончилось без ошибок. Затем, когда я попытался скомпилировать код о том, как сгенерировать хеш SHA, используя пример кода из ответа на вопрос, я получил следующую ошибку:
фатальная ошибка: openssl.h: нет такого файла или каталога
Нужно ли мне делать что-то еще для создания файла заголовка openssl, как я думал, после установки openssl без каких-либо проблем он будет автоматически создан? Я впервые добавляю библиотеку в C, поэтому прошу прощения за мою наивность.
Спасибо за чтение.