CentOS 7:カーネルバージョンにはモジュールディレクトリはありません。

CentOS 7:カーネルバージョンにはモジュールディレクトリはありません。

カーネルをコンパイルしてインストールしようとしています。コードをダウンロードしてインストールを構成した後、次のコマンドを正常に実行しました。

# make bzImage
# make modules
# make

しかし、別のコマンドを実行しようとすると、次のようになります。

# make install

このエラーがあります。

[root@Asterix linux-4.18.5]# make install
sh ./arch/x86/boot/install.sh 4.18.5 arch/x86/boot/bzImage \
        System.map "/boot"
depmod: ERROR: could not open directory /lib/modules/4.18.5: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Kernel version 4.18.5 has no module directory /lib/modules/4.18.5
[root@Asterix linux-4.18.5]#

私は何が間違っていましたか?このエラーをどのように解決できますか?

ベストアンサー1

修理する! ! !

@Andy Daltonが私に解決策を提示しました!新しいカーネルを作成してインストールする正しいコマンドの順序は次のとおりです。

# make
# make install modules_install

おすすめ記事