|
建立完畢后出現(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庫,需要安裝相應的庫。
|
|