depmod: ERROR: could not open directory /lib/modules/ 解决方法

来源:互联网 发布:人上人 知乎 编辑:程序博客网 时间:2024/06/05 21:17

http://stackoverflow.com/questions/22783793/how-to-install-kernel-modules-from-source-code-error-while-make-process


0 down vote favorite

I want to install the kernel modules to lib/modules/ . Actually there has to be created a folder in lib/modules/(uname-r) after doingmake modules , but there are only created 3 folders called "build", "kernel" and "source". I also get an error aftermake modules:

DEPMOD 3.4.79WARNING: COULDN't open directory /lib/modules/3.4.79: No such file or direcotyFATAL: Could not open /lib/modules/3.4.79/modules.dep.temp for writing: No suhc file or directorymake: *** [_modinst_post] Error 1

Indeed there is no directory called that, but how can I add it?

shareimprove this question
 
 
Have you compiled the kernel? These directories are generated after the kernel has been built. – brokenfootApr 1 '14 at 22:35
 
i compiled it with "make" in the kernel source – csnewbApr 2 '14 at 10:42
 
Just to state the obvious since you've not mentioned it, looking at my box /lib/modules/ is only root-writable - youdo have the right permissions, don't you? – Notlikethat Apr 2 '14 at 21:28

1 Answer

activeoldestvotes
up vote0down vote

Did you try \"make modules_install\"?

to install modules

make modules_install

to install kernel

make install

shareimprove this answer
 
 
yes i did, there are built 3 folders called build, kernel, source. there is also 2 files called modules.builtin and modules.order – csnewbApr 2 '14 at 10:44

0 0
原创粉丝点击