首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >致命错误:‘go/version.h’文件未找到白色设置found go

致命错误:‘go/version.h’文件未找到白色设置found go
EN

Stack Overflow用户
提问于 2021-04-26 14:31:12
回答 1查看 255关注 0票数 2

我使用Github API来创建一个脚本来传输来自Gitlab的秘密。

在这样做的同时,我一直在尝试设置doing go包来加密秘密。这里是参考https://github.com/GoKillers/libsodium-go的链接

我已经按照页面上提到的步骤操作了。

代码语言:javascript
复制
Pre-setup:

Please install Libsodium here https://download.libsodium.org/doc/installation/index.html
sudo ldconfig
sudo apt-get install pkg-config

Install libsodium-go:

go get -d github.com/GoKillers/libsodium-go
cd $GOPATH/src/github.com/GoKillers/libsodium-go
./build.sh

但是对于预设置已经使用了brew install libsodium

当我运行./build.sh

我得到以下错误

代码语言:javascript
复制
In file included from cryptohash/crypto_hash.go:5:
/usr/local/include/sodium.h:5:10: fatal error: 'sodium/version.h' file not found
#include "sodium/version.h"
         ^~~~~~~~~~~~~~~~~~
1 error generated.

不确定如何解决此问题。任何帮助都将不胜感激!

EN

回答 1

Stack Overflow用户

发布于 2021-08-28 15:53:44

也有同样的问题,当我运行brew install libsodium时,显示了一个警告,说明linked已经安装,只是没有链接。要链接,请运行brew link libsodium。如果发现冲突文件,则运行brew link --overwrite libsodium解决了该问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67261825

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档