大佬教程收集整理的这篇文章主要介绍了ubuntu下 arm-linux-gcc-4.5.1安装v1.0(未经整理版本),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
http://a
stute11
.blog.51cto.com/4404646/1048756 ubuntu下 arm-linux-gcc-4.5.1安装 0、 rootroot@rootroot-virtual-machine:~$ arm-linux-gcc arm-linux-gcc: command not found rootroot@rootroot-virtual-machine:~$ gcc gcc: Fatal error: no input files compilation terminated. rootroot@rootroot-virtual-machine:~$ gcc -v Using built-in spec
s. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README
.bugs --enable-languages=c,c++,java,go,d,fortran,objc,
Obj-C++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-ob
ject --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-
checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:db:99:df inet addr
:192.168.237.135 Bcast
:192.168.237.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fedb:99df/64 Scope:Link UP b
roaDCAST RUNNING MULTICAST MTU
:1500 Metric
:1 RX packets:68 errors:0 dropped:0 overruns:0 frame:0 TX packets
:114 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen
:1000 RX bytes:7966 (7.9 KB) TX bytes
:16529 (16.5 KB) lo Link encap:Local Loop
BACk inet addr
:127.0.0.1 Mask:255.0.0.0 inet6 addr: :
:1/128 Scope:Host UP LOOP
BACK RUNNING MTU:65536 Metric
:1 RX packets
:165 errors:0 dropped:0 overruns:0 frame:0 TX packets
:165 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes
:11727 (11.7 KB) TX bytes
:11727 (11.7 KB) rootroot@rootroot-virtual-machine:~$ arm-linux-gcc -v arm-linux-gcc: command not found rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games rootroot@rootroot-virtual-machine:~$ tar -zxvf arm-linux-gcc-4.5.1.tar.gz -C / 或者 tar -zxvf arm-linux-gcc-4.5.1.tar.gz -C / 解压后会在根目录下出现一个opt的文件夹 rootroot@rootroot-virtual-machine:~$ cd wyb/ rootroot@rootroot-virtual-machine:~/wyb$ ll @R_690_1
0586@l 153092 drwxrwxr-x 4 rootroot rootroot 4096 1月 5 09:25 ./ drwxr-xr-x 18 rootroot rootroot 4096 1月 5 09:20 ../ -rwx------ 1 rootroot rootroot 61120204 11月 21 19:07 arm-linux-gcc-4.5.1-v6-vfp-20101103.tar.gz* drwxrwxr-x 33 rootroot rootroot 4096 11月 23 10:27 samba-4.1.6/ -rwxrw-rw- 1 rootroot rootroot 23177462 6月 14 2016 samba-4.1.6.tar.gz* -rw-rw-r-- 1 rootroot rootroot 724
48981 8月 26 05:34 VMwaretools-10.0.10-4301679.tar.gz drwxr-xr-x 9 rootroot rootroot 4096 8月 26 05:34 vmware-tools-di
Strib/ rootroot@rootroot-virtual-machine:~/wyb$ tar zxvf arm-linux-gcc-4.5.1-v6-vfp-20101103.tar.gz rootroot@rootroot-virtual-machine:~/wyb$ ll @R_690_1
0586@l 153096 drwxrwxr-x 5 rootroot rootroot 4096 1月 5 09:26 ./ drwxr-xr-x 18 rootroot rootroot 4096 1月 5 09:20 ../ -rwx------ 1 rootroot rootroot 61120204 11月 21 19:07 arm-linux-gcc-4.5.1-v6-vfp-20101103.tar.gz* drwxrwxr-x 3 rootroot rootroot 4096 1月 5 09:26 opt/ drwxrwxr-x 33 rootroot rootroot 4096 11月 23 10:27 samba-4.1.6/ -rwxrw-rw- 1 rootroot rootroot 23177462 6月 14 2016 samba-4.1.6.tar.gz* -rw-rw-r-- 1 rootroot rootroot 724
48981 8月 26 05:34 VMwaretools-10.0.10-4301679.tar.gz drwxr-xr-x 9 rootroot rootroot 4096 8月 26 05:34 vmware-tools-di
Strib/ rootroot@rootroot-virtual-machine:~/wyb$ cd opt/ rootroot@rootroot-virtual-machine:~/wyb/opt$ ll @R_690_1
0586@l 12 drwxrwxr-x 3 rootroot rootroot 4096 1月 5 09:26 ./ drwxrwxr-x 5 rootroot rootroot 4096 1月 5 09:26 ../ drwxrwxr-x 3 rootroot rootroot 4096 1月 5 09:26 FriendlyARM/ rootroot@rootroot-virtual-machine:~/wyb/opt
$ sudo mv FriendlyARM/ /opt/ [sudo]
password for rootroot: rootroot@rootroot-virtual-machine:~/wyb/opt$ cd /opt/ rootroot@rootroot-virtual-machine:/opt$ ll @R_690_1
0586@l 12 drwxr-xr-x 3 root root 4096 1月 5 09:26 ./ drwxr-xr-x 23 root root 4096 11月 22 16
:48 ../ drwxrwxr-x 3 rootroot rootroot 4096 1月 5 09:26 FriendlyARM/ rootroot@rootroot-virtual-machine:/opt
$ sudo chmod 777 FriendlyARM/ -R rootroot@rootroot-virtual-machine:/opt$ 第二: 添加环境变量 修改
.bashrc文件内容(最后面
添加pATH路径) vi ~/
.bashrc PATH=/opt/FriendlyARM/toolschain/4.5.1/bin:$PATH (注意根据安装的版本不同做
相应的修改即可,适用ubuntu) 所以用户有效 终端输入sudo gedit /etc/environment ,在PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"后加入:/opt/FriendlyARM/toolschain/4.5.1/bin最后的PATH如下PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/FriendlyARM/toolschain/4.5.1/bin" 6.重启电脑,检查是否导入PATH:echo $PATH。 使环境变量生效
source ~/
.bashrc rootroot@rootroot-virtual-machine:/opt$ cd ~ rootroot@rootroot-virtual-machine:~$ ll
.bashrc -rw-r--r-- 1 rootroot rootroot 3637 11月 22 16
:47
.bashrc rootroot@rootroot-virtual-machine:~$ ll *
.bashrc ls: c
Annot access *
.bashrc: No such file or directory rootroot@rootroot-virtual-machine:~$ cp
.bashrc
bak1_orig
.bashrc rootroot@rootroot-virtual-machine:~$ gedit
.bashrc PATH=/opt/FriendlyARM/toolschain/4.5.1/bin:$PATH 之后重启虚拟机。 rootroot@rootroot-virtual-machine:~$ echo $PATH /opt/FriendlyARM/toolschain/4.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games rootroot@rootroot-virtual-machine:~$ arm-linux-gcc bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~$ arm-linux-gcc --version bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~$ arm-linux-gcc -v bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" rootroot@rootroot-virtual-machine:~$ 之后再次重启虚拟机。 rootroot@rootroot-virtual-machine:~$ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" rootroot@rootroot-virtual-machine:~$ arm-linux-gcc -v bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~$ arm-linux-gcc -v bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ cd /etc/ rootroot@rootroot-virtual-machine:/etc$ ll @R_690_1
0586@l 1148 drwxr-xr-x 130 root root 12288 1月 5 09:33 ./ drwxr-xr-x 23 root root 4096 11月 22 16
:48 ../ drwxr-xr-x 3 root root 4096 4月 17 2014 acpi/ -rw-r--r-- 1 root root 2981 4月 17 2014 adduser.conf drwxr-xr-x 2 root root 4096 11月 22 16
:48 alternatives/ -rw-r--r-- 1 root root 401 2月 20 2014 anacrontab -rw-r--r-- 1 root root 112 1月 10 2014 apg.conf drwxr-xr-x 6 root root 4096 4月 17 2014 apm/ drwxr-xr-x 3 root root 4096 4月 17 2014 apparmor/ drwxr-xr-x 8 root root 4096 4月 17 2014 apparmor.d/ drwxr-xr-x 5 root root 4096 4月 17 2014 apport/ drwxr-xr-x 6 root root 4096 11月 22 16
:49 apt/ drwxr-xr-x 3 root root 4096 4月 17 2014 aptdaemon/ drwxr-xr-x 2 root root 4096 4月 17 2014 at-spi2/ drwxr-xr-x 3 root root 4096 4月 17 2014 avahi/ -rw-r--r-- 1 root root 2177 4月
9 2014 bash
.bashrc -rw-r--r-- 1 root root 45 3月 23 2014 bash_completion drwxr-xr-x 2 root root 4096 11月 22 16
:48 bash_completion.d/ -rw-r--r-- 1 root root 356 1月 2 2012 bindresvport
.blacklist -rw-r--r-- 1 root root 321 4月 17 2014 blkid.conf lrwxrwxrwx 1 root root 15 11月 22 16:37 blkid.tab -> /dev/
.blkid.tab drwxr-xr-x 2 root root 4096 4月 17 2014 bluetooth/ -rw-r--r-- 1 root root 33 4月 17 2014 brlapi.key drwxr-xr-x 2 root root 1228
8 4月 17 2014 brltty/ -rw-r--r-- 1 root root 2247
8 4月 1 2014 brltty.conf drwxr-xr-x 3 root root 4096 4月 17 2014 ca-certificates/ -rw-r--r-- 1 root root 7464 4月 17 2014 ca-certificate
s.conf drwxr-xr-x 2 root root 4096 4月 17 2014 calendar/ drwxr-s--- 2 root dip 4096 4月 17 2014 chatscripts/ -rw-r--r-- 1 root root 1332 1月 16 2014 colord.conf drwxr-xr-x 2 root root 4096 4月 17 2014 compizconfig/ drwxr-xr-x 2 root root 4096 4月 17 2014 console-setup/ drwxr-xr-x 2 root root 4096 4月 17 2014 cracklib/ drwxr-xr-x 2 root root 4096 4月 17 2014 cron.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 cron.daily/ drwxr-xr-x 2 root root 4096 4月 17 2014 cron.hourly/ drwxr-xr-x 2 root root 4096 4月 17 2014 cron.monthly/ -rw-r--r-- 1 root root 722 2月
9 2013 crontab drwxr-xr-x 2 root root 4096 4月 17 2014 cron.weekly/ drwxr-xr-x 5 root lp 4096 1月 5 09:21 cups/ drwxr-xr-x 2 root root 4096 4月 17 2014 cups
Helpers/ drwxr-xr-x 4 root root 4096 4月 17 2014 dbus-1/ drwxr-xr-x 4 root root 4096 4月 17 2014 dconf/ -rw-r--r-- 1 root root 296
9 2月 23 2014 debconf.conf -rw-r--r-- 1 root root 11 2月 20 2014 debian_version drwxr-xr-x 2 root root 4096 11月 22 17
:15 default/ -rw-r--r-- 1 root root 604 11月 7 2013 deluser.conf drwxr-xr-x 2 root root 4096 4月 17 2014 depmod.d/ drwxr-xr-x 4 root root 4096 4月 17 2014 dhcp/ drwxr-xr-x 2 root root 4096 4月 17 2014
Dictionaries-common/ drwxr-xr-x 2 root root 4096 4月 17 2014 dn
smasq.d/ drwxr-xr-x 3 root root 4096 4月 17 2014 doc-base/ drwxr-xr-x 4 root root 4096 4月 17 2014 dpkg/ -rw-r--r-- 1 root root 3095 4月 14 2014 drirc drwxr-xr-x 3 root root 4096 4月 17 2014 emacs/ -rw-r--r-- 1 root root 96 4月 17 2014 environment drwxr-xr-x 3 root root 4096 4月 17 2014 firefox/ drwxr-xr-x 4 root root 4096 4月 17 2014 fonts/ -rw-rw-r-- 1 root root 868 11月 22 17:06 fstab drwxr-xr-x 2 root root 4096 4月 17 2014 fstab.d/ -rw-r----- 1 root fuse 280 5月 24 2013 fuse.conf -rw-r--r-- 1 root root 2584 10月 10 2012 gai.conf drwxr-xr-x 5 root root 4096 4月 17 2014 gconf/ drwxr-xr-x 2 root root 4096 4月 17 2014 gdb/ drwxr-xr-x 4 root root 4096 4月 17 2014 ghostscript/ drwxr-xr-x 2 root root 4096 4月 17 2014 gnome/ drwxr-xr-x 2 root root 4096 4月 17 2014 gnome-app-install/ drwxr-xr-x 2 root root 4096 4月 17 2014 groff/ -rw-r--r-- 1 root root 906 11月 22 16
:47 group -rw------- 1 root root 898 11月 22 16
:47 group- drwxr-xr-x 2 root root 4096 4月 17 2014 grub.d/ -rw-r----- 1 root shadow 758 11月 22 16
:47 gshadow -rw------- 1 root root 750 11月 22 16
:47 gshadow- drwxr-xr-x 2 root root 4096 4月 17 2014 gtk-2.0/ drwxr-xr-x 2 root root 4096 4月 17 2014 gtk-3.0/ -rw-r--r-- 1 root root 4781 11月 16 2013 hdpar
m.conf -rw-r--r-- 1 root root 92 2月 20 2014 host.conf -rw-r--r-- 1 root root 25 11月 22 16
:45 hostname -rw-r--r-- 1 root root 239 11月 22 16
:45 hosts -rw-r--r-- 1 root root 411 4月 17 2014 host
s.allow -rw-r--r-- 1 root root 711 4月 17 2014 host
s.deny drwxr-xr-x 2 root root 4096 4月 17 2014 hp/ drwxr-xr-x 3 root root 4096 4月 17 2014 ifplugd/ -rw-rw-r-- 1 root root 121 11月 22 16
:45 iftab drwxr-xr-x 2 root root 4096 11月 22 17
:15 init/ drwxr-xr-x 2 root root 4096 11月 22 17
:15 init.d/ drwxr-xr-x 5 root root 4096 11月 22 17:06 initramfs-tools/ -rw-r--r-- 1 root root 1721 3月 2
9 2014 inputrc drwxr-xr-x 3 root root 4096 5月 1
9 2013 insserv/ -rw-r--r-- 1 root root 771 5月 1
9 2013 insserv.conf drwxr-xr-x 2 root root 4096 5月 1
9 2013 insserv.conf.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 iproute2/ -rw-r--r-- 1 root root 24 4月 11 2014 issue -rw-r--r-- 1 root root 17 4月 11 2014 issue.net drwxr-xr-x 2 root root 4096 4月 17 2014 kbd/ drwxr-xr-x 4 root root 4096 3月 14 2013 kernel/ -rw-r--r-- 1 root root 110 11月 22 16
:48 kernel-img.conf -rw-r--r-- 1 root root 1311 4月 2 2014 kerneloop
s.conf drwxr-xr-x 2 root root 4096 4月 17 2014 ldap/ -rw-r--r-- 1 root root 79864 11月 23 10:25 ld.so.cache -rw-r--r-- 1 root root 34 4月 17 2014 ld.so.conf drwxr-xr-x 2 root root 4096 11月 22 17:06 ld.so.conf.d/ -rw-r--r-- 1 root root 267 2月 20 2014 legal -rw-r--r-- 1 root root 191 12月 4 2013 libaudit.conf drwxr-xr-x 2 root root 4096 4月 17 2014 libnl-3/ drwxr-xr-x 2 root root 4096 12月 11 2013 libpaper.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 libreoffice/ drwxr-xr-x 2 root root 4096 11月 22 16
:47 lightdm/ -rw-r--r-- 1 root root 1291 3月 2
9 2014 lintianrc -rw-r--r-- 1 root root 257
0 8月 5 2010 locale.alias -rw-r--r-- 1 root root 389 11月 22 16
:47 localtime drwxr-xr-x 4 root root 4096 4月 17 2014 log
check/ -rw-r--r-- 1 root root 10551 2月 17 2014 login.defs -rw-r--r-- 1 root root 703 1月 23 2014 logrotate.conf drwxr-xr-x 2 root root 4096 4月 17 2014 logrotate.d/ -rw-r--r-- 1 root root 103 4月 11 2014 lsb-release -rw-r--r-- 1 root root 1486
7 3月 20 2014 ltrace.conf -rw-r--r-- 1 root root 111 4月 4 2014 magic -rw-r--r-- 1 root root 111 4月 4 2014 magic.mime -rw-r--r-- 1 root root 38210 11月 23 10:25 mailcap -rw-r--r-- 1 root root 44
9 5月 13 2013 mailcap
.order -rw-r--r-- 1 root root 5173 4月 10 2014 manpath.config -rw-r--r-- 1 root root 23922 5月 13 2013 mime.types -rw-r--r-- 1 root root 956 2月 1
9 2014 mke2f
s.conf drwxr-xr-x 2 root root 4096 4月 17 2014 modprobe.d/ -rw-r--r-- 1 root root 255 11月 22 16
:47 modules drwxr-xr-x 2 root root 4096 4月 17 2014 modules-load.d/ -rw-r--r-- 1 root root 975 1月 5 09:33 mtab -rw------- 1 root rootroot 0 11月 22 17
:17 mtab.fuselock -rw-r--r-- 1 root root 624 8月 8 2007 mtool
s.conf -rw-r--r-- 1 root root 8453 10月 1 2012 nanorc -rw-r--r-- 1 root root 2064 11月 24 2006 netscsid.conf drwxr-xr-x 7 root root 4096 4月 17 2014 network/ drwxr-xr-x 6 root root 4096 4月 17 2014 NetworkManager/ -rw-r--r-- 1 root root 91 2月 20 2014 networks drwxr-xr-x 2 root root 4096 4月 17 2014 newt/ -rw-r--r-- 1 root root 507 4月 17 2014 nsswitch.conf drwxr-xr-x 2 root root 4096 4月 17 2014 obex-data-server/ drwxr-xr-x 2 root root 4096 4月 17 2014 opt/ -rw-r--r-- 1 root root 241 4月 11 2014 os-release -rw-r--r-- 1 root root 552 2月 1 2014 pa
m.conf drwxr-xr-x 2 root root 4096 11月 22 17
:15 pa
m.d/ -rw-rw-r-- 1 root root 3 11月 22 16
:47 papersize -rw-r--r-- 1 root root 1926 11月 22 17
:15 passwd -rw------- 1 root root 1926 11月 22 17
:15 passwd- drwxr-xr-x 2 root root 4096 4月 17 2014 pcmcia/ drwxr-xr-x 4 root root 4096 4月 17 2014 perl/ drwxr-xr-x 2 root root 4096 4月 17 2014 pki/ drwxr-xr-x 5 root root 4096 4月 17 2014 pm/ -rw-r--r-- 1 root root 7649 4月 17 2014 pnm2ppa.conf drwxr-xr-x 5 root root 4096 4月 17 2014 polkit-1/ -rw-rw-r-- 1 root root 350 11月 22 16
:47 popularity-contest.conf drwxr-xr-x 8 root root 4096 4月 17 2014 ppp/ -rw-r--r-- 1 root root 665 2月 20 2014 profile drwxr-xr-x 2 root root 4096 4月 17 2014 profile.d/ -rw-r--r-- 1 root root 2932 12月 30 2013 protocols drwxr-xr-x 2 root root 4096 11月 22 17:06 @R_216_5404@/ -rw------- 1 root root 0 4月 17 2014 .pwd.lock drwxr-xr-x 2 root root 4096 4月 17 2014 python/ drwxr-xr-x 2 root root 4096 11月 23 10:25 python2.7/ drwxr-xr-x 2 root root 4096 4月 17 2014 python3/ drwxr-xr-x 2 root root 4096 4月 17 2014 python3.4/ drwxr-xr-x 2 root root 4096 11月 22 16
:48 rc0.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 rc1.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 rc2.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 rc3.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 rc4.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 rc5.d/ drwxr-xr-x 2 root root 4096 11月 22 16
:48 rc6.d/ -rwxr-xr-x 1 root root 387 11月 23 11:00 rc.local* -rwxr-xr-x 1 root root 306 4月 17 2014 rc.local
~* -rwxr-xr-x 1 root root 306 11月 23 10:59 rc.loca
l.bak1* drwxr-xr-x 2 root root 4096 11月 22 16
:48 rc
s.d/ drwxr-xr-x 5 root root 4096 4月 17 2014 resolvconf/ lrwxrwxrwx 1 root root 29 11月 22 16
:45 resolv.conf -> ../run/resolvconf/resolv.conf -rwxr-xr-x 1 root root 268 2月 4 2014 rmt* -rw-r--r-- 1 root root 887 12月 30 2013 rpc -rw-r--r-- 1 root root 1245 4月 1
9 2013 rsyslog.conf drwxr-xr-x 2 root root 4096 4月 17 2014 rsyslog.d/ drwxr-xr-x 3 root root 4096 4月 17 2014 samba/ drwxr-xr-x 3 root root 4096 4月 17 2014 sane.d/ -rw-r--r-- 1 root root 4038 2月 17 2014 securetty drwxr-xr-x 4 root root 4096 4月 17 2014 security/ drwxr-xr-x 2 root root 4096 4月 17 2014 selinux/ -rw-r--r-- 1 root root 10344 1月 15 2014 sensors3.conf drwxr-xr-x 2 root root 4096 4月 17 2014 sensor
s.d/ -rw-r--r-- 1 root root 19558 12月 30 2013
services drwxr-xr-x 2 root root 4096 4月 17 2014 sgml/ -rw-r----- 1 root shadow 1100 11月 22 17
:15 shadow -rw------- 1 root root 1100 11月 22 17
:15 shadow- -rw-r--r-- 1 root root 73 4月 17 2014 s
Hells -rw-r--r-- 1 root root 1803 3月 7 2014 signond.conf drwxr-xr-x 3 root root 4096 4月 17 2014 signon-ui/ drwxr-xr-x 2 root root 4096 4月 17 2014 skel/ drwxr-xr-x 4 root root 4096 4月 17 2014 speech-dispatcher/ drwxr-xr-x 2 root root 4096 11月 22 17
:15 ssh/ drwxr-xr-x 4 root root 4096 4月 17 2014 ssl/ -rw-r--r-- 1 root root 22 11月 22 16
:47 subgid -rw------- 1 root root 0 4月 17 2014 subgid- -rw-r--r-- 1 root root 22 11月 22 16
:47 subuid -rw------- 1 root root 0 4月 17 2014 subuid- -r--r----- 1 root root 745 2月 11 2014 sudoers drwxr-xr-x 2 root root 4096 4月 17 2014 sudoer
s.d/ -rw-r--r-- 1 root root 2084 4月 1 2013 sysct
l.conf drwxr-xr-x 2 root root 4096 4月 17 2014 sysct
l.d/ drwxr-xr-x 3 root root 4096 4月 17 2014 systemd/ drwxr-xr-x 2 root root 4096 4月 17 2014 terminfo/ drwxr-xr-x 2 root root 4096 4月 17 2014 thunderbird/ -rw-r--r-- 1 root root 15 11月 22 16
:47 timezone -rw-r--r-- 1 root root 1309 1月 5 09:33 tpvmlp.conf -rw-r--r-- 1 root root 1260 7月 1 2013 ucf.conf drwxr-xr-x 4 root root 4096 4月 17 2014 udev/ drwxr-xr-x 2 root root 4096 3月 11 2014 udisks2/ drwxr-xr-x 3 root root 4096 4月 17 2014 ufw/ -rw-r--r-- 1 root root 328 11月 22 17:06
updatedb.conf drwxr-xr-x 3 root root 4096 4月 17 2014
update-manager/ drwxr-xr-x 2 root root 4096 4月 17 2014
update-motd.d/ drwxr-xr-x 2 root root 4096 4月 10 2014
update-notifier/ drwxr-xr-x 2 root root 4096 4月 17 2014 UPower/ -rw-r--r-- 1 root root 222 4月 12 2014 upstart-xsessions -rw-r--r-- 1 root root 88
8 4月
9 2014 usb_modeswitch.conf drwxr-xr-x 2 root root 4096 4月
9 2014 usb_modeswitch.d/ drwxr-xr-x 2 root root 4096 4月 17 2014 vim/ drwxr-xr-x 3 root root 4096 11月 22 17:05 vmware-caf/ drwxr-xr-x 6 root root 4096 11月 22 17:06 vmware-tools/ lrwxrwxrwx 1 root root 23 11月 22 16:37 vtrgb -> /etc/alternatives/vtrgb -rw-r--r-- 1 root root 4812 2月 8 2014 wgetrc -rw-r--r-- 1 root root 1343 1月 10 2007 wodi
m.conf drwxr-xr-x 2 root root 4096 4月 17 2014 wpa_supplicant/ drwxr-xr-x 11 root root 4096 4月 17 2014 X11/ drwxr-xr-x 4 root root 4096 4月 17 2014 xdg/ drwxr-xr-x 2 root root 4096 4月 17 2014 xml/ drwxr-xr-x 2 root root 4096 4月 17 2014 xul-ext/ -rw-r--r-- 1 root root 34
9 6月 27 2012 zsh_command_not_found rootroot@rootroot-virtual-machine:/etc$ ll environment -rw-r--r-- 1 root root 96 4月 17 2014 environment rootroot@rootroot-virtual-machine:/etc$ sud cp environment environment
.bak No command 'sud' found,did you mean: Command 'sup' from package 'sup' (univers
E) Command 'snd' from package 'snd-nox' (univers
E) Command 'snd' from package 'snd-gtk-jack' (univers
E) Command 'snd' from package 'snd-gtk-@R_216_5404@' (univers
E) Command 'sed' from package 'sed' (main) Command '
stud' from package '
stud' (univers
E) Command 'sum' from package 'coreutils' (main) Command 'sur' from package 'subtle' (univers
E) Command 's3d' from package 's3d' (univers
E) Command 'sudo' from package 'sudo-ldap' (univers
E) Command 'sudo' from package 'sudo' (main) Command 'sd' from package 'sd' (univers
E) Command 'su' from package 'login' (main) Command 'spd' from package 'spd' (univers
E) sud: command not found rootroot@rootroot-virtual-machine:/etc
$ sudo cp environment environment
.bak [sudo]
password for rootroot: rootroot@rootroot-virtual-machine:/etc
$ sudo gedit environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/FriendlyARM/toolschain/4.5.1/bin" ATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/FriendlyARM/toolschain/4.5.1/bin" 三次重启虚拟机: rootroot@rootroot-virtual-machine:~$ arm-linux-gcc bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: No such file or directory rootroot@rootroot-virtual-machine:~
$ sudo apt-get install lsb-core [sudo]
password for rootroot: Reading package list
s... Done Building dependency tree Reading state @R_
489_4036@ion... Done The following extra packages will be installed: alien at build-essential cpp-4.8 deb
Helper debugedit dh-apparmor dpkg-dev fakeroot g++ g++-4.8 gcc-4.8 gcc-4.8-base heirloom-mailx lib32z1 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan0 libatomic1 libc-dev-bin libc6 libc6-dbg libc6-dev libc6-i386 libdpkg-perl libfakeroot libgcc-4.8-dev libgomp1 libitm1 libmail-sendmail-perl libquadmath0 librpm3 librpmbuild3 librpmio3 librpmsign1 libsigsegv2 libstdc++-4.8-dev libstdc++6 libsys-hostname-long-perl libtsan0 lsb-base lsb-invalid-mta lsb-release lsb-security m4 pax po-debconf rpm rpm-common rpm2cpio Suggested packages: lsb-rpm default-mta mail-transport-agent gcc-4.8-locales dh-make rpm-i18n apparmor-easyprof debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg gcc-4.8-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg glibc-doc libstdc++-4.8-doc lsb libmail-Box-perl elfutils The following NEW packages will be installed: alien at build-essential deb
Helper debugedit dh-apparmor dpkg-dev fakeroot g++ g++-4.8 heirloom-mailx lib32z1 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libc6-i386 libfakeroot libmail-sendmail-perl librpm3 librpmbuild3 librpmio3 librpmsign1 libsigsegv2 libstdc++-4.8-dev libsys-hostname-long-perl lsb-core lsb-invalid-mta lsb-security m4 pax po-debconf rpm rpm-common rpm2cpio The following packages will be upgraded: cpp-4.8 gcc-4.8 gcc-4.8-base libasan0 libatomic1 libc-dev-bin libc6 libc6-dbg libc6-dev libdpkg-perl libgcc-4.8-dev libgomp1 libitm1 libquadmath0 libstdc++6 libtsan0 lsb-base lsb-release 18 upgraded,34 newly installed,0 to remove and 695 not upgraded. Need to get 46.6 MB of archive
s. After this operation,58.2 MB of additional disk space will be used. Do
you want to con
Tinue? [Y/n] y Get
:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libc6-dev amd64 2.19-0ubuntu6.9 [1,910 kB] Get:2
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libc-dev-bin amd64 2.19-0ubuntu6.9 [69.0 kB] Get:3
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libc6-dbg amd64 2.19-0ubuntu6.9
[3,
450 kB] Get
:4 http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libc6 amd64 2.19-0ubuntu6.9 [4,717 kB] Get:5
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libtsan0 amd64 4.8.4-2ubuntu1~14.04.3 [94.9 kB] Get:6
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libquadmath0 amd64 4.8.4-2ubuntu1~14.04.3 [126 kB] Get:7
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libitm1 amd64 4.8.4-2ubuntu1~14.04.3 [28.5 kB] Get:8
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libgomp1 amd64 4.8.4-2ubuntu1~14.04.3 [23.1 kB] Get:9
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libatomic1 amd64 4.8.4-2ubuntu1~14.04.3 [8,636 B] Get
:10
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libasan0 amd64 4.8.4-2ubuntu1~14.04.3 [63.1 kB] Get
:11
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main gcc-4.8 amd64 4.8.4-2ubuntu1~14.04.3
[5,047 kB] Get
:12
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main cpp-4.8 amd64 4.8.4-2ubuntu1~14.04.3 [4,595 kB] Get
:13
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libgcc-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [1,688 kB] Get
:14
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main gcc-4.8-base amd64 4.8.4-2ubuntu1~14.04.3 [16.2 kB] Get
:15
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libstdc++6 amd64 4.8.4-2ubuntu1~14.04.3 [259 kB] Get
:16
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libsigsegv2 amd64 2.10-2 [15.0 kB] Get
:17
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main lsb-base all 4.1+Debian11ubuntu6.2 [13.3 kB] Get
:18
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main lsb-release all 4.1+Debian11ubuntu6.2 [11.6 kB] Get
:19
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libdpkg-perl all 1.17.5ubuntu5.7 [179 kB] Get:20
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main dpkg-dev all 1.17.5ubuntu5.7 [726 kB] Get:21
http://cn.archive.ubuntu.com/ubuntu/ trusty/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB] Get:22
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main dh-apparmor all 2.8.95~2430-0ubuntu5.3 [12.2 kB] Get:23
http://cn.archive.ubuntu.com/ubuntu/ trusty/main deb
Helper all 9.20131227ubuntu1 [604 kB] Get:24
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main librpmio3 amd64 4.11.1-3ubuntu0.1 [68.6 kB] Get:25
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main librpm3 amd64 4.11.1-3ubuntu0.1 [153 kB] Get:26
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main librpmbuild3 amd64 4.11.1-3ubuntu0.1
[56.3 kB] Get:27
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main librpmsign1 amd64 4.11.1-3ubuntu0.1 [7,890 B] Get:28
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main rpm-common amd64 4.11.1-3ubuntu0.1 [21.5 kB] Get:29
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main rpm2cpio amd64 4.11.1-3ubuntu0.1
[5,142 B] Get:30
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main debugedit amd64 4.11.1-3ubuntu0.1 [15.6 kB] Get:31
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main rpm amd64 4.11.1-3ubuntu0.1 [114 kB] Get:32
http://cn.archive.ubuntu.com/ubuntu/ trusty/main alien all 8.90
[54.1 kB] Get:33
http://cn.archive.ubuntu.com/ubuntu/ trusty/main at amd64 3.1.14-1ubuntu1
[37.6 kB] Get:34
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libstdc++-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [1,053 kB] Get:35
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main g++-4.8 amd64 4.8.4-2ubuntu1~14.04.3 [18.1 MB] Get:36
http://cn.archive.ubuntu.com/ubuntu/ trusty/main g++ amd64 4
:4.8.2-1ubuntu6 [1,490 B] Get:37
http://cn.archive.ubuntu.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B] Get:38
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libfakeroot amd64 1.20-3ubuntu2 [25.4 kB] Get:39
http://cn.archive.ubuntu.com/ubuntu/ trusty/main fakeroot amd64 1.20-3ubuntu2
[55.0 kB] Get
:40
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/universe heirloom-mailx amd64 12.5-2+deb7u1build0.14.04.1 [219 kB] Get
:41
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main libc6-i386 amd64 2.19-0ubuntu6.9 [2,201 kB] Get
:42
http://cn.archive.ubuntu.com/ubuntu/ trusty/main lib32z1 amd64 1
:1.2.8.dfsg-1ubuntu1
[57.5 kB] Get
:43
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-perl all 1.19.02-3
[50.0 kB] Get
:44
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-xs-perl amd64 0.04-2build4 [12.6 kB] Get
:45
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-merge-perl all 0.08-2 [12.7 kB] Get
:46
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libsys-hostname-long-perl all 1.4-3 [11.3 kB] Get
:47
http://cn.archive.ubuntu.com/ubuntu/ trusty/main libmail-sendmail-perl all 0.79.16-1 [26.5 kB] Get
:48
http://cn.archive.ubuntu.com/ubuntu/ trusty/main m4 amd64 1.4.17-2ubuntu1 [195 kB] Get
:49
http://cn.archive.ubuntu.com/ubuntu/ trusty/main pax amd64 1:20120606-2+deb7u1 [85.7 kB] Get:50
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main lsb-invalid-mta all 4.1+Debian11ubuntu6.2
[5,320 B] Get:51
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main lsb-security amd64 4.1+Debian11ubuntu6.2 [4,964 B] Get:52
http://cn.archive.ubuntu.com/ubuntu/ trusty-
updates/main lsb-core amd64 4.1+Debian11ubuntu6.2 [26.3 kB] Fetched 46.6 MB in 45s (1,020 kB/s) Extrac
Ting templates from packages: 100% Preconfiguring packages ... (Reading database ... 166200 files and directories currently installed.) Preparing to unpack .../libc6-dev_2.19-0ubuntu6.9_amd64.deb ... Unpacking libc6-dev:amd64 (2.19-0ubuntu6.
9) over (2.19-0ubuntu6) ... Preparing to unpack .../libc-dev-bin_2.19-0ubuntu6.9_amd64.deb ... Unpacking libc-dev-bin (2.19-0ubuntu6.
9) over (2.19-0ubuntu6) ... Preparing to unpack .../libc6-dbg_2.19-0ubuntu6.9_amd64.deb ... Unpacking libc6-dbg:amd64 (2.19-0ubuntu6.
9) over (2.19-0ubuntu6) ... Preparing to unpack .../libc6_2.19-0ubuntu6.9_amd64.deb ... Unpacking libc6:amd64 (2.19-0ubuntu6.
9) over (2.19-0ubuntu6) ... Processing
triggers for man-db (2.6.7.1-1) ... Set
Ting up libc6:amd64 (2.19-0ubuntu6.
9) ... Processing
triggers for libc-bin (2.19-0ubuntu6) ... (Reading database ... 166200 files and directories currently installed.) Preparing to unpack .../libtsan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Preparing to unpack .../gcc-4.8-base_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Processing
triggers for man-db (2.6.7.1-1) ... Set
Ting up gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) ... (Reading database ... 166200 files and directories currently installed.) Preparing to unpack .../libstdc++6_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ... Set
Ting up libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) ... Processing
triggers for libc-bin (2.19-0ubuntu6) ...
SELEc
Ting prevIoUsly un
SELEcted package libsigsegv2:amd64. (Reading database ... 166212 files and directories currently installed.) Preparing to unpack .../libsigsegv2_2.10-2_amd64.deb ... Unpacking libsigsegv2:amd64 (2.10-2) ... Preparing to unpack .../lsb-base_4.1+Debian11ubuntu6.2_al
l.deb ... Unpacking lsb-base (4.1+Debian11ubuntu6.2) over (4.1+Debian11ubuntu6) ... Set
Ting up lsb-base (4.1+Debian11ubuntu6.2) ... (Reading database ... 166221 files and directories currently installed.) Preparing to unpack .../lsb-release_4.1+Debian11ubuntu6.2_al
l.deb ... Unpacking lsb-release (4.1+Debian11ubuntu6.2) over (4.1+Debian11ubuntu6) ... Preparing to unpack .../libdpkg-perl_1.17.5ubuntu5.7_al
l.deb ... Unpacking libdpkg-perl (1.17.5ubuntu5.7) over (1.17.5ubuntu5) ...
SELEc
Ting prevIoUsly un
SELEcted package dpkg-dev. Preparing to unpack .../dpkg-dev_1.17.5ubuntu5.7_al
l.deb ... Unpacking dpkg-dev (1.17.5ubuntu5.7) ...
SELEc
Ting prevIoUsly un
SELEcted package po-debconf. Preparing to unpack .../po-debconf_1.0.16+nmu2ubuntu1_al
l.deb ... Unpacking po-debconf (1.0.16+nmu2ubuntu1) ...
SELEc
Ting prevIoUsly un
SELEcted package dh-apparmor. Preparing to unpack .../dh-apparmor_2.8.95~2430-0ubuntu5.3_al
l.deb ... Unpacking dh-apparmor (2.8.95~2430-0ubuntu5.3) ...
SELEc
Ting prevIoUsly un
SELEcted package deb
Helper. Preparing to unpack .../deb
Helper_9.20131227ubuntu1_al
l.deb ... Unpacking deb
Helper (9.20131227ubuntu1) ...
SELEc
Ting prevIoUsly un
SELEcted package librpmio3. Preparing to unpack .../librpmio3_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking librpmio3 (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package librpm3. Preparing to unpack .../librpm3_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking librpm3 (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package librpmbuild3. Preparing to unpack .../librpmbuild3_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking librpmbuild3 (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package librpmsign1. Preparing to unpack .../librpmsign1_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking librpmsign1 (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package rpm-common. Preparing to unpack .../rpm-common_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking rpm-common (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package rpm2cpio. Preparing to unpack .../rpm2cpio_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking rpm2cpio (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package debugedit. Preparing to unpack .../debugedit_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking debugedit (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package rp
m. Preparing to unpack .../rpm_4.11.1-3ubuntu0.1_amd64.deb ... Unpacking rpm (4.11.1-3ubuntu0.1) ...
SELEc
Ting prevIoUsly un
SELEcted package alien. Preparing to unpack .../archives/alien_8.90_al
l.deb ... Unpacking alien (8.90) ...
SELEc
Ting prevIoUsly un
SELEcted package at. Preparing to unpack .../at_3.1.14-1ubuntu1_amd64.deb ... Unpacking at (3.1.14-1ubuntu1) ...
SELEc
Ting prevIoUsly un
SELEcted package libstdc++-4.8-dev:amd64. Preparing to unpack .../libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
SELEc
Ting prevIoUsly un
SELEcted package g++-4.8. Preparing to unpack .../g++-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ... Unpacking g++-4.8 (4.8.4-2ubuntu1~14.04.3) ...
SELEc
Ting prevIoUsly un
SELEcted package g++. Preparing to unpack .../g++_4%3a4.8.2-1ubuntu6_amd64.deb ... Unpacking g++ (4
:4.8.2-1ubuntu6) ...
SELEc
Ting prevIoUsly un
SELEcted package build-essentia
l. Preparing to unpack .../build-essential_11.6ubuntu6_amd64.deb ... Unpacking build-essential (11.6ubuntu6) ...
SELEc
Ting prevIoUsly un
SELEcted package libfakeroot:amd64. Preparing to unpack .../libfakeroot_1.20-3ubuntu2_amd64.deb ... Unpacking libfakeroot:amd64 (1.20-3ubuntu2) ...
SELEc
Ting prevIoUsly un
SELEcted package fakeroot. Preparing to unpack .../fakeroot_1.20-3ubuntu2_amd64.deb ... Unpacking fakeroot (1.20-3ubuntu2) ...
SELEc
Ting prevIoUsly un
SELEcted package heirloom-mailx. Preparing to unpack .../heirloom-mailx_12.5-2+deb7u1build0.14.04.1_amd64.deb ... Unpacking heirloom-mailx (12.5-2+deb7u1build0.14.04.1) ...
SELEc
Ting prevIoUsly un
SELEcted package libc6-i386. Preparing to unpack .../libc6-i386_2.19-0ubuntu6.9_amd64.deb ... Unpacking libc6-i386 (2.19-0ubuntu6.
9) ...
SELEc
Ting prevIoUsly un
SELEcted package lib32z1. Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ... Unpacking lib32z1 (1
:1.2.8.dfsg-1ubuntu1) ...
SELEc
Ting prevIoUsly un
SELEcted package libalgorithm-diff-per
l. Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_al
l.deb ... Unpacking libalgorithm-diff-perl (1.19.02-3) ...
SELEc
Ting prevIoUsly un
SELEcted package libalgorithm-diff-xs-per
l. Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-2build4_amd64.deb ... Unpacking libalgorithm-diff-xs-perl (0.04-2build4) ...
SELEc
Ting prevIoUsly un
SELEcted package libalgorithm-merge-per
l. Preparing to unpack .../libalgorithm-merge-perl_0.08-2_al
l.deb ... Unpacking libalgorithm-merge-perl (0.08-2) ...
SELEc
Ting prevIoUsly un
SELEcted package libsys-hostname-long-per
l. Preparing to unpack .../libsys-hostname-long-perl_1.4-3_al
l.deb ... Unpacking libsys-hostname-long-perl (1.4-3) ...
SELEc
Ting prevIoUsly un
SELEcted package libmail-sendmail-per
l. Preparing to unpack .../libmail-sendmail-perl_0.79.16-1_al
l.deb ... Unpacking libmail-sendmail-perl (0.79.16-1) ...
SELEc
Ting prevIoUsly un
SELEcted package m4. Preparing to unpack .../m4_1.4.17-2ubuntu1_amd64.deb ... Unpacking m4 (1.4.17-2ubuntu1) ...
SELEc
Ting prevIoUsly un
SELEcted package pax. Preparing to unpack .../pax_1%3a20120606-2+deb7u1_amd64.deb ... Unpacking pax (1:20120606-2+deb7u1) ...
SELEc
Ting prevIoUsly un
SELEcted package lsb-invalid-mta. Preparing to unpack .../lsb-invalid-mta_4.1+Debian11ubuntu6.2_al
l.deb ... Unpacking lsb-invalid-mta (4.1+Debian11ubuntu6.2) ...
SELEc
Ting prevIoUsly un
SELEcted package lsb-security. Preparing to unpack .../lsb-security_4.1+Debian11ubuntu6.2_amd64.deb ... Unpacking lsb-security (4.1+Debian11ubuntu6.2) ...
SELEc
Ting prevIoUsly un
SELEcted package lsb-core. Preparing to unpack .../lsb-core_4.1+Debian11ubuntu6.2_amd64.deb ... Unpacking lsb-core (4.1+Debian11ubuntu6.2) ... Processing
triggers for man-db (2.6.7.1-1) ... Processing
triggers for doc-base (0.10.5) ... Processing 1 added doc-base file... Processing
triggers for ureadahead (0.
100.0-16) ... ureadahead will be reprofiled on next reboot Processing
triggers for install-info (5.2.0.dfsg.1-2) ... Set
Ting up libc-dev-bin (2.19-0ubuntu6.
9) ... Set
Ting up libc6-dev:amd64 (2.19-0ubuntu6.
9) ... Set
Ting up libc6-dbg:amd64 (2.19-0ubuntu6.
9) ... Set
Ting up libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up cpp-4.8 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up gcc-4.8 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up libsigsegv2:amd64 (2.10-2) ... Set
Ting up lsb-release (4.1+Debian11ubuntu6.2) ... Set
Ting up libdpkg-perl (1.17.5ubuntu5.7) ... Set
Ting up dpkg-dev (1.17.5ubuntu5.7) ... Set
Ting up po-debconf (1.0.16+nmu2ubuntu1) ... Set
Ting up dh-apparmor (2.8.95~2430-0ubuntu5.3) ... Set
Ting up deb
Helper (9.20131227ubuntu1) ... Set
Ting up librpmio3 (4.11.1-3ubuntu0.1) ... Set
Ting up librpm3 (4.11.1-3ubuntu0.1) ... Set
Ting up librpmbuild3 (4.11.1-3ubuntu0.1) ... Set
Ting up librpmsign1 (4.11.1-3ubuntu0.1) ... Set
Ting up rpm-common (4.11.1-3ubuntu0.1) ... Set
Ting up rpm2cpio (4.11.1-3ubuntu0.1) ... Set
Ting up debugedit (4.11.1-3ubuntu0.1) ... Set
Ting up rpm (4.11.1-3ubuntu0.1) ... Set
Ting up alien (8.90) ... Set
Ting up at (3.1.14-1ubuntu1) ... atd start/running,process 8598 Set
Ting up libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up g++-4.8 (4.8.4-2ubuntu1~14.04.3) ... Set
Ting up g++ (4
:4.8.2-1ubuntu6) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Set
Ting up build-essential (11.6ubuntu6) ... Set
Ting up libfakeroot:amd64 (1.20-3ubuntu2) ... Set
Ting up fakeroot (1.20-3ubuntu2) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Set
Ting up heirloom-mailx (12.5-2+deb7u1build0.14.04.1) ...
update-alternatives: using /usr/bin/heirloom-mailx to provide /usr/bin/mailx (mail
X) in auto mode Set
Ting up libc6-i386 (2.19-0ubuntu6.
9) ... Set
Ting up lib32z1 (1
:1.2.8.dfsg-1ubuntu1) ... Set
Ting up libalgorithm-diff-perl (1.19.02-3) ... Set
Ting up libalgorithm-diff-xs-perl (0.04-2build4) ... Set
Ting up libalgorithm-merge-perl (0.08-2) ... Set
Ting up libsys-hostname-long-perl (1.4-3) ... Set
Ting up libmail-sendmail-perl (0.79.16-1) ... Set
Ting up m4 (1.4.17-2ubuntu1) ... Set
Ting up pax (1:20120606-2+deb7u1) ... Set
Ting up lsb-invalid-mta (4.1+Debian11ubuntu6.2) ... Set
Ting up lsb-security (4.1+Debian11ubuntu6.2) ... Processing
triggers for ureadahead (0.
100.0-16) ... Set
Ting up lsb-core (4.1+Debian11ubuntu6.2) ... Processing
triggers for libc-bin (2.19-0ubuntu6) ... rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ rootroot@rootroot-virtual-machine:~$ arm-linux-gcc arm-linux-gcc: no input files rootroot@rootroot-virtual-machine:~$ arm-linux-gcc -v Using built-in spec
s. COLLECT_GCC=arm-linux-gcc COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper Target: arm-none-linux-gnueabi Configured with: /work/toolchain/build/src/gcc-4.5.1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1 --with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-pkgversion=ctng-1.8.1-FA --with-bugurl=
http://www.arm9.net/ --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static --enable-threads=posix --with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --disable-nls --enable-s
ymvers=gnu --enable-c99 --enable-long-long Thread model: posix gcc version 4.5.1 (ctng-1.8.1-FA) rootroot@rootroot-virtual-machine:~$ 测试交叉工具链是否安装正确,在终端输入 arm-linux-gcc -v查看版本信息 参
考资料:
https://zhidao
.baidu.com/question/286
262649.html 用友善提供的4.5.1解压后,运行/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc -v出错 #/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc -v bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: 没有那个文件或目录 不知道为什么,试了很多方法都不行,运行环境ubuntu 11.04 #ls arm-linux-addr2line arm-none-linux-gnueabi-addr2line arm-linux-ar arm-none-linux-gnueabi-ar arm-linux-as arm-none-linux-gnueabi-as arm-linux-c++ arm-none-linux-gnueabi-c++ arm-linux-cc arm-none-linux-gnueabi-cc arm-linux-c++filt arm-none-linux-gnueabi-c++filt arm-linux-cpp arm-none-linux-gnueabi-cpp arm-linux-g++ arm-none-linux-gnueabi-g++ arm-linux-gcc arm-none-linux-gnueabi-gcc arm-linux-gcc-4.5.1 arm-none-linux-gnueabi-gcc-4.5.1 ................................ 安装没问题,也改过/root/
.bashrc文件中的路径 export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin 执行arm-linux-gcc -v 提示也是一样的 ningxinliner | 浏览 4025 次 发布于2011-06-30 17
:16 最佳答案 有人回答就怪了 追问 The problem has been solved,because I installed the amd64.iso linux system,so first must excuse apt-get install lsb-core,then you can excuse arm-linux-gcc -v
大佬总结
以上是大佬教程为你收集整理的ubuntu下 arm-linux-gcc-4.5.1安装v1.0(未经整理版本)全部内容,希望文章能够帮你解决ubuntu下 arm-linux-gcc-4.5.1安装v1.0(未经整理版本)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。