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?
linuxlinux-kernelmakefile make arm
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
add a comment
1 Answer
activeoldestvotes
up vote0down vote
Did you try \"make modules_install\"?
to install modules
make modules_install
to install kernel
make install
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
- depmod: ERROR: could not open directory /lib/modules/ 解决方法
- FATAL: could not load /lib/modules/2.6.XXX/modules.dep No such file or directory
- Error: could not open `C:/Program Files/Java/jre6/lib/i386/jvm.cfg'之解决方法
- Error: could not open `E:\Program Files\Java\jre7\lib\amd64\jvm.cfg' 解决方法
- Error: could not open `C:\Java\jre7\lib\amd64\jvm.cfg';JAVA_HOME环境变量失效的解决方法
- Error: could not open `E:\Program Files\Java\jre7\lib\amd64\jvm.cfg' 解决方法
- error:could not open ...jvm.cfg解决方法
- error:could not open ...jvm.cfg解决方法
- error:could not open ...jvm.cfg解决方法
- error:could not open ...jvm.cfg解决方法
- Error: could not open `javaROOT_PATH\lib\amd64\jvm.cfg';
- could not open `D:\java\lib\amd64\jvm.cfg'解决方法
- Could not get lock /var/lib/dpkg/lock - open 解决方法
- Ubuntu14 Could not open file /var/lib/dpkg/status - open (2: No such file or directory)
- rmmod: chdir(/lib/modules): No such file or directory 解决方法
- rmmod: chdir(/lib/modules): No such file or directory 解决方法
- rmmod: chdir(/lib/modules): No such file or directory 解决方法
- rmmod: chdir(/lib/modules): No such file or directory 解决方法
- 【SuperMap .Net 组件】三维自定义专题图
- 调试说明
- [jquery实例] 点击返回顶部top
- Android动画之Interpolator和AnimationSet
- mac的sed不支持\t
- depmod: ERROR: could not open directory /lib/modules/ 解决方法
- Google输了官司,物联网恐怕也不能用Java了吧
- java框架是什么意思?
- Scala 特质
- 大数据的最大价值: 大数据+物体=智能
- Map的使用与遍历
- 程序员们都是不被世人所理解的真正天才吗?-请大家看这个数独的解法
- 前端test
- undefined reference to 'pthread_create'问题解决