找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3085|回復: 0
打印 上一主題 下一主題
收起左側

建立交叉編譯系統(tǒng)遇到的問題

[復制鏈接]
跳轉到指定樓層
樓主
ID:3721 發(fā)表于 2015-1-5 16:25 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
建立完畢后出現(xiàn)如下問題,即“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中是只能以用戶身份登陸的。所以在系統(tǒng)目錄作安裝的時候,首先使用sudo -s切換到管理員權限,否則任何操作都無法執(zhí)行,也可使用su命令。有些命令使用su并不能夠通過。我之前建立交叉編譯系統(tǒng)就遇到過,gedit /root/.bashrc 無法通過,需要使用sudo gedit /root/.bashrc命令。

編譯linux內核還會遇到缺少NCURSES庫,需要安裝相應的庫。
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復 返回頂部 返回列表