找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2564|回复: 0
打印 上一主题 下一主题
收起左侧

建立交叉编译系统遇到的问题

[复制链接]
跳转到指定楼层
楼主
ID:3721 发表于 2015-1-5 16:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
建立完毕后出现如下问题,即“XX 不在 sudoers 文件中。此事将被报告。”
[camel@localhost ~]$ sudo -s
[sudo] password for camel:
camel 不在 sudoers 文件中。此事将被报告。
[camel@localhost ~]$ su
密码:
[root@localhost camel]# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1)
[root@localhost camel]#

su命令取得的权限是有限的,在fedora9中是可以以管理员身份登陆的,而在我使用的fedora17中是只能以用户身份登陆的。所以在系统目录作安装的时候,首先使用sudo -s切换到管理员权限,否则任何操作都无法执行,也可使用su命令。有些命令使用su并不能够通过。我之前建立交叉编译系统就遇到过,gedit /root/.bashrc 无法通过,需要使用sudo gedit /root/.bashrc命令。

编译linux内核还会遇到缺少NCURSES库,需要安装相应的库。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表