make[1]: *** /lib/modules/4.9.24-v7+/build: そのファイルやディレクトリはありません。止める

make[1]: *** /lib/modules/4.9.24-v7+/build: そのファイルやディレクトリはありません。止める

私はcryptodevソースコードを次から得ました。http://nwl.cc/pub/cryptodev-linux/cryptodev-linux-1.9.tar.gzディレクトリに移動して~/cryptodevtarアーカイブを解凍し、~/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

このエラーが発生し、次に何をすべきかわかりません。私は助けを期待しています。よろしくお願いします。

ベストアンサー1

まだ関係があるかどうかはわかりませんが、同様の問題がありました。マーク・プロニックコメントでは、次のコマンドで問題が解決したと述べました。

sudo apt-get install raspberrypi-kernel-headers

おすすめ記事