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

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


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.79
WARNING: COULDN't open directory /lib/modules/3.4.79: No such file or direcoty
FATAL: Could not open /lib/modules/3.4.79/modules.dep.temp for writing: No suhc file or directory
make: *** [_modinst_post] Error 1

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

share improve this question
 
 
Have you compiled the kernel? These directories are generated after the kernel has been built. –  brokenfoot Apr 1 '14 at 22:35
 
i compiled it with "make" in the kernel source –  csnewb Apr 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

Did you try \"make modules_install\"?

to install modules

make modules_install

to install kernel

make install

share improve 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 –  csnewb Apr 2 '14 at 10:44

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值