主题 : make zImage出现问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 7051
精华: 0
发帖: 23
金钱: 250 两
威望: 140 点
综合积分: 46 分
注册时间: 2009-06-29
最后登录: 2010-04-19
楼主  发表于: 2009-09-17 21:27

 make zImage出现问题

k@ubuntu:/opt/FriendlyARM/mini2440/linux-2.6.29$ make zImage
  CHK     include/linux/version.h
/bin/sh: cannot create include/linux/version.h.tmp: Permission denied
  UPD     include/linux/version.h
mv: 无法 stat “include/linux/version.h.tmp”: 没有该文件或目录
make: *** [include/linux/version.h] 错误 1

上面是错误提示,怀疑是ubuntu权限问题,请各位大虾指教!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-09-17 22:44
用chown将/opt/FriendlyARM/mini2440的owner改为你当前的登录帐号, 在该目录下重新解压内核源代码并编译
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 7051
精华: 0
发帖: 23
金钱: 250 两
威望: 140 点
综合积分: 46 分
注册时间: 2009-06-29
最后登录: 2010-04-19
2楼  发表于: 2009-09-17 23:15
呵呵,果然版主大大就是不一样!
我用sudo chown -R 登录名 /opt/FriendlyARM/mini2440命令把文件夹下面所有文件的所有者改了就编译通过了!
ubuntu的权限问题真麻烦啊!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-09-17 23:24
以后你就知道Ubuntu不让你用root权限执行命令是为了你好。。。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."