/bin/sh: scripts/mod/modpost: not found


I got the following error when installing the kernel driver for R1soft.

Building modules, stage 2.
MODPOST 1 modules
/bin/sh: scripts/mod/modpost: not found
make[4]: *** [__modpost] Error 127
make[4]: Target `_modpost’ not remade because of errors.
make[3]: *** [modules] Error 2

This can be fixed by running the following command  from the kernel source directory.

cd /usr/src/kernel
sudo make modules_prepare

Advertisements

Author: vishnulinux

Linux admin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s