我从http://nwl.cc/pub/cryptodev-linux/cryptodev-linux-1.9.tar.gz获取了从~/cryptodev目录下的加密驱动程序源代码,解压缩了tar归档文件,并进入了~/cryptodev/cryptodev-linux-1.9目录。我按照https://github.com/cryptodev-linux/cryptodev-linux/blob/master/INSTALL上的说明,输入make,得到了以下错误:
hubot@hubot-vps:~/cryptodev/cryptodev-linux-1.9 $ make
make -C /lib/modules/4.9.24-v7+/build M=/home/hubot/cryptodev/cryptodev-linux-1.9 modules
make[1]: *** /lib/modules/4.9.24-v7+/build: No such file or directory. Stop.
Makefile:27: recipe for target 'build' failed
make: *** [build] Error 2我停止了这个错误,我不知道下一步该做什么。我指望得到帮助。提前谢谢你。
发布于 2017-12-20 10:28:02
不确定它是否仍然相关,但我也遇到过类似的问题,正如马克·普罗尼克在评论中所说的那样,下面的命令修复了它:
sudo apt-get install raspberrypi-kernel-headers发布于 2020-05-02 18:34:01
我跑来跑去避开这件事
sudo ln -s /usr/src/linux-headers-4.19.97-v7l+ build
注意,我不知道使用不同的构建是否会导致问题,但是在完成此操作之后,我能够构建我的包。
https://unix.stackexchange.com/questions/374629
复制相似问题