LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Version requires old depmod, but couldn't run /sbin/depmod.old: No such file or dir (https://www.linuxquestions.org/questions/linux-software-2/version-requires-old-depmod-but-couldnt-run-sbin-depmod-old-no-such-file-or-dir-688224/)

jiobo 12-04-2008 02:53 AM

Version requires old depmod, but couldn't run /sbin/depmod.old: No such file or dir
 
Quote:

cd /lib/modules/2.4.36.9; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.36.9; fi
Version requires old depmod, but couldn't run /sbin/depmod.old: No such file or directory
make: *** [_modinst_post] Error 2
This error was preventing me from building some modules that were needed. There is a workaround for this error, so that in case you get this error then you can use this solution too. This is what I did, I copied the /sbin/depmod to /sbin/depmod.old, and then re-ran make, and it worked.

# which depmod
/sbin/depmod

# cp /sbin/depmod /sbin/depmod.old
# make


All times are GMT -5. The time now is 11:18 PM.