TXF_1996 TXF_1996
关注数: 199 粉丝数: 172 发帖数: 31,940 关注贴吧数: 30
GHC编译出错T_T are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). HC [stage 1] libraries/Cabal/Cabal/dist-install/build/Distribution/PackageDescription/Configuration.dyn_o HC [stage 1] libraries/haskeline/dist-install/build/System/Console/Haskeline/Term.dyn_o libraries/haskeline/System/Console/Haskeline/Term.hs:107:16: Warning: In the use of `isEmptyChan' (imported from Control.Concurrent, but defined in Control.Concurrent.Chan): Deprecated: "if you need this operation, use Control.Concurrent.STM.TChan instead. See http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fhackage.haskell.org%2Ftrac%2Fghc%2Fticket%2F4154&urlrefer=efa8c705046822465bfbf8cee6ccc551 for details" HC [stage 1] compiler/stage2/build/StaticFlags.dyn_o HC [stage 1] compiler/stage2/build/BufWrite.dyn_o HC [stage 1] compiler/stage2/build/StringBuffer.dyn_o HC [stage 1] libraries/base/dist-install/build/Foreign/C/Error.o ghc-stage1: internal error: evacuate: strange closure type 6642882 (GHC version 7.6.3 for x86_64_unknown_linux) Please report this as a GHC bug: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.haskell.org%2Fghc%2Freportabug&urlrefer=d31ab7f436a744064a99f648fcc20c7a /bin/sh: line 1: 1329 Aborted "inplace/bin/ghc-stage1" -fPIC -dynamic -H32m -O -optc-Wa,--noexecstack -opta-Wa,--noexecstack -w -package-name ghc-7.6.3 -hide-all-packages -i -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/vectorise -icompiler/stage2/build -icompiler/stage2/build/autogen -Icompiler/stage2/build -Icompiler/stage2/build/autogen -Icompiler/../rts/dist/build -Icompiler/stage2 -Icompiler/. -Icompiler/parser -Icompiler/utils -optP-DGHCI -optP-include -optPcompiler/stage2/build/autogen/cabal_macros.h -package Cabal-1.16.0 -package array-0.4.0.1 -package base-4.6.0.1 -package bin-package-db-0.0.0.0 -package bytestring-0.10.0.2 -package containers-0.5.0.0 -package directory-1.2.0.1 -package filepath-1.3.0.1 -package hoopl-3.9.0.0 -package hpc-0.6.0.0 -package process-1.1.0.2 -package template-haskell-2.8.0.0 -package time-1.4.0.1 -package unix-2.6.0.1 -Wall -fno-warn-name-shadowing -fno-warn-orphans -XHaskell98 -XNondecreasingIndentation -XCPP -XMagicHash -XUnboxedTuples -XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls -XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances -XRankNTypes -XScopedTypeVariables -XDeriveDataTypeable -XBangPatterns -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -O2 -no-user-package-db -rtsopts -odir compiler/stage2/build -hidir compiler/stage2/build -stubdir compiler/stage2/build -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -c compiler/utils/StringBuffer.lhs -o compiler/stage2/build/StringBuffer.dyn_o make[1]: *** [compiler/stage2/build/StringBuffer.dyn_o] Error 134 make[1]: *** Waiting for unfinished jobs.... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "", LC_ALL = (unset), LC_MESSAGES = "C", LANG = "zh_CN.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). make: *** [all] Error 2 * ERROR: dev-lang/ghc-7.6.3-r1 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/ghc-7.6.3-r1'`, * the complete build log and the output of `emerge -pqv '=dev-lang/ghc-7.6.3-r1'`. * The complete build log is located at '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/work/ghc-7.6.3' * S: '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/work/ghc-7.6.3' http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fpan.baidu.com%2Fshare%2Flink%3Fshareid%3D1323689706%26uk%3D1780270178&urlrefer=3e66eef7fc92dcc906c10434184bca1f
ifconfig查看、配置IP 1.ifconfig 查看网络接口状态 ifconfig 如果不接任何参数,就会输出当前网络接口的情况; [root@linuxchao ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:03:0D:27:86:41 inet addr:192.168.1.86 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::203:dff:fe27:8641/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:618 errors:0 dropped:0 overruns:0 frame:0 TX packets:676 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:491238 (479.7 KiB) TX bytes:86286 (84.2 KiB) Interrupt:5 Base address:0x8c00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1692 errors:0 dropped:0 overruns:0 frame:0 TX packets:1692 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3174550 (3.0 MiB) TX bytes:3174550 (3.0 MiB) 解说: eth0 表示第一块网卡, 其中 HWaddr 表示网卡的物理地址,可以看到目前这个网卡的物理地址(MAC地址)是 00:03:0D:27:86:41; inet addr 用来表示网卡的IP地址,此网卡的 IP地址是 192.168.1.86,广播地址, Bcast:192.168.1.255,掩码地址Mask:255.255.255.0 lo 是表示主机的回坏地址,这个一般是用来测试一个网络程序,但又不想让局域网或外网的用户能够查看,只能在此台主机上运行和查看所用的网络接口。比如把 HTTPD服务器的指定到回坏地址,在浏览器输入 127.0.0.1 就能看到你所架WEB网站了。但只是您能看得到,局域网的其它主机或用户无从知道; 如果想知道主机所有网络接口的情况,请用下面的命令; [root@linuxchao ~]#ifconfig -a 如果想查看某个端口,比如查看eth0 的状态,就可以用下面的方法; [root@linuxchao ~]#ifconfig eth0 2.ifconfig 配置网络接口 ifconfig 可以用来配置网络接口的IP地址、掩码、网关、物理地址等;值得一说的是用ifconfig 为网卡指定IP地址,这只是用来调试网络用的,并不会更改系统关于网卡的配置文件。如果您想把网络接口的IP地址固定下来,目前有三个方法:一是通过各个 发行和版本专用的工具来修改IP地址;二是直接修改网络接口的配置文件;三是修改特定的文件,加入ifconfig 指令来指定网卡的IP地址,比如在redhat或Fedora中,把ifconfig 的语名写入/etc/rc.d/rc.local文件中; ifconfig 配置网络端口的方法: ifconfig 工具配置网络接口的方法是通过指令的参数来达到目的的,我们只说最常用的参数; ifconfig 网络端口 IP地址 hw MAC地址 netmask 掩码地址 broadcast 广播地址 [up/down] * 实例一: 比如我们用ifconfig 来调试 eth0网卡的地址 [root@linuxchao ~]#ifconfig eth0 down [root@linuxchao ~]#ifconfig eth0 192.168.1.99 broadcast 192.168.1.255 netmask 255.255.255.0 [root@linuxchao ~]#ifconfig eth0 up [root@linuxchao ~]#ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:03:0D:27:86:41 inet addr:192.168.1.99 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::203:dff:fe27:8641/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:618 errors:0 dropped:0 overruns:0 frame:0 TX packets:676 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:491238 (479.7 KiB) TX bytes:86286 (84.2 KiB) Interrupt:5 Base address:0x8c00 注解: 上面的例子我们解说一下; 第一行:ifconfig eth0 down 表示如果eth0是激活的,就把它DOWN掉。此命令等同于 ifdown eth0; 第二行:用ifconfig 来配置 eth0的IP地址、广播地址和网络掩码; 第三行:用ifconfig eth0 up 来激活eth0 ; 此命令等同于 ifup eth0 第四行:用 ifconfig eth0 来查看 eth0的状态; 当然您也可以用直接在指令IP地址、网络掩码、广播地址的同时,激活网卡;要加up参数;比如下面的例子; [root@linuxchao ~]#ifconfig eth0 192.168.1.99 broadcast 192.168.1.255 netmask 255.255.255.0 up * 实例二:在这个例子中,我们要学会设置网络IP地址的同时,学会设置网卡的物理地址(MAC地址); 比如我们设置网卡eth1的IP地址、网络掩码、广播地址,物理地址并且激活它; [root@linuxchao ~]#ifconfig eth1 192.168.1.252 hw ether 04:64:03:00:12:51 netmask 255.255.255.0 broadcast 192.168.1.255 up 或 [root@linuxchao ~]#ifconfig eth1 hw ether 04:64:03:00:12:51 [root@linuxchao ~]#ifconfig eth1 192.168.1.252 netmask 255.255.255.0 broadcast 192.168.1.255 up 其中 hw 后面所接的是网络接口类型, ether表示乙太网, 同时也支持 ax25 、ARCnet、netrom等,详情请查看 man ifconfig ; 3.如何用ifconfig 来配置虚拟网络接口 有时我们为了满足不同的需要还需要配置虚拟网络接口,比如我们用不同的IP地址来架运行多个HTTPD服务器,就要用到虚拟地址;这样就省却了同一个IP地址,如果开设两个的HTTPD服务器时,要指定端口号。 虚拟网络接口指的是为一个网络接口指定多个IP地址,虚拟接口是这样的 eth0:0 、 eth0:1、eth0:2 ... .. eth1N。当然您为eth1 指定多个IP地址,也就是 eth1:0、eth1:1、eth1:2 ... ...以此类推; 其实用ifconfig 为一个网卡配置多个IP地址,就用前面我们所说的ifconfig的用法,这个比较简单;看下面的例子; [root@linuxchao ~]#ifconfig eth1:0 192.168.1.251 hw ether 04:64:03:00:12:51 netmask 255.255.255.0 broadcast 192.168.1.255 up 或 [root@linuxchao ~]#ifconfig eth1 hw ether 04:64:03:00:12:51 [root@linuxchao ~]#ifconfig eth1 192.168.1.251 netmask 255.255.255.0 broadcast 192.168.1.255 up 注意:指定时,要为每个虚拟网卡指定不同的物理地址; 在 Redhat/Fedora 或与Redhat/Fedora类似的系统,您可以把配置网络IP地址、广播地址、掩码地址、物理地址以及激活网络接口同时放在一个句子中,写入/etc/rc.d/rc.local中。比如下面的例子; ifconfig eth1:0 192.168.1.250 hw ether 00:11:00:33:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up ifconfig eth1:1 192.168.1.249 hw ether 00:11:00:33:11:55 netmask 255.255.255.0 broadcast 192.168.1.255 up 解说:上面是为eth1的网络接口,设置了两个虚拟接口;每个接口都有自己的物理地址、IP地址... ... 4.如何用ifconfig 来激活和终止网络接口的连接 激活和终止网络接口的用 ifconfig 命令,后面接网络接口,然后加上 down或up参数,就可以禁止或激活相应的网络接口了。当然也可以用专用工具ifup和ifdown 工具; [root@linuxchao ~]#ifconfig eth0 down [root@linuxchao ~]#ifconfig eth0 up [root@linuxchao ~]#ifup eth0 [root@linuxchao ~]#ifdown eth0 对于激活其它类型的网络接口也是如此,比如 ppp0,wlan0等;不过只是对指定IP的网卡有效。 注意:对DHCP自动分配的IP,还得由各个发行版自带的网络工具来激活;当然得安装dhcp客户端;这个您我们应该明白; 比如Redhat/Fedora [root@linuxchao ~]#/etc/init.d/network start Slackware 发行版; [root@linuxchao ~]#/etc/rc.d/rc.inet1
首页 2 3 4 5 6 7 下一页