⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00000023.htm

📁 一份很好的linux入门资料
💻 HTM
字号:
<HTML><HEAD>  <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人:&nbsp;Watson&nbsp;(华生医生),&nbsp;信区:&nbsp;Linux&nbsp;<BR>标&nbsp;&nbsp;题:&nbsp;UNIX&nbsp;下&nbsp;irc&nbsp;client&nbsp;的编译过程傻瓜书&nbsp;(fwd)&nbsp;<BR>发信站:&nbsp;BBS&nbsp;水木清华站&nbsp;(Wed&nbsp;May&nbsp;20&nbsp;19:40:08&nbsp;1998)&nbsp;WWW-POST&nbsp;<BR>&nbsp;<BR>发&nbsp;表&nbsp;人:Iam_<A HREF="mailto:Sh@bbs.ustc.edu.(沉默的雨衣)">Sh@bbs.ustc.edu.(沉默的雨衣)</A>&nbsp;版面名称:main[7884]
&nbsp;<BR>文章提要:UNIX&nbsp;下&nbsp;irc&nbsp;client&nbsp;的编译过程傻瓜书&nbsp;
&nbsp;<BR>源&nbsp;发&nbsp;站:中国科大BBS站(Fri,&nbsp;17&nbsp;Apr&nbsp;1998&nbsp;09:30:56)
&nbsp;<BR>
&nbsp;<BR>在写这个简介之前,&nbsp;作者认为读者已经知道如何通过FTP去下载一个文件.&nbsp;在USTC,&nbsp;
&nbsp;<BR>可以通过&nbsp;<A HREF="http://202.38.75.11/cgi-bin/myarchie">http://202.38.75.11/cgi-bin/myarchie</A>&nbsp;查询到在如下的服务器上有UNIX&nbsp;
&nbsp;<BR>下的&nbsp;irc&nbsp;客户程序(irc&nbsp;client),&nbsp;其中有些是源码,&nbsp;有些是可执行代码.&nbsp;这里不推荐&nbsp;
&nbsp;<BR>使用可执行代码,&nbsp;因为它是在特定的UNIX上编译的,&nbsp;并不能适合所有的UNIX平台.&nbsp;
&nbsp;<BR>
&nbsp;<BR><A HREF="ftp://166.111.4.80
">ftp://166.111.4.80
</A>&nbsp;<BR>
&nbsp;<BR>可以查询到:&nbsp;
&nbsp;<BR><A HREF="ftp://202.38.75.11/pub/Linux/irc/irc-2.8.2.bin.tar.gz">ftp://202.38.75.11/pub/Linux/irc/irc-2.8.2.bin.tar.gz</A>&nbsp;
&nbsp;<BR><A HREF="ftp://202.38.75.11/pub/Linux/irc/ircii-2.8.2-src.tgz">ftp://202.38.75.11/pub/Linux/irc/ircii-2.8.2-src.tgz</A>&nbsp;
&nbsp;<BR><A HREF="ftp://ftp.ustc.edu.cn/.pubold/ustcnet/unix/irc/irc-2.8.2-ix86-linux-bin.tgz">ftp://ftp.ustc.edu.cn/.pubold/ustcnet/unix/irc/irc-2.8.2-ix86-linux-bin.tgz</A>&nbsp;
&nbsp;<BR><A HREF="ftp://ftp.ustc.edu.cn/.pubold/ustcnet/unix/irc/ircii-2.8.2-src.tgz">ftp://ftp.ustc.edu.cn/.pubold/ustcnet/unix/irc/ircii-2.8.2-src.tgz</A>&nbsp;
&nbsp;<BR>等等.&nbsp;
&nbsp;<BR>
&nbsp;<BR>下面作者把自己的步骤详细地说一下.&nbsp;
&nbsp;<BR>
&nbsp;<BR>首先我从&nbsp;75.11&nbsp;下载了&nbsp;ircii-2.8.2-src.tgz&nbsp;到我的当前目录&nbsp;/usr/people/sh,&nbsp;
&nbsp;<BR>(通过&nbsp;pwd&nbsp;命令可以知道自己的当前目录是什么),&nbsp;然后我创建了&nbsp;tmp&nbsp;这个临时目录存&nbsp;
&nbsp;<BR>放这个文件以及即将编译生成的文件,&nbsp;下面:(注意,&nbsp;$&nbsp;在这里是提示符,&nbsp;就象&nbsp;DOS&nbsp;下&nbsp;
&nbsp;<BR>的&nbsp;c:\&nbsp;一样)&nbsp;
&nbsp;<BR>
&nbsp;<BR>这些是我加的注释,&nbsp;不必键入&nbsp;
&nbsp;<BR>$&nbsp;cp&nbsp;ircii-2.8.2-src.tgz&nbsp;tmp&nbsp;#&nbsp;拷贝文件&nbsp;
&nbsp;<BR>$&nbsp;cd&nbsp;tmp&nbsp;#&nbsp;进入目录&nbsp;
&nbsp;<BR>$&nbsp;gzip&nbsp;-d&nbsp;ircii-2.8.2-src.tgz&nbsp;#&nbsp;将压缩文件解开&nbsp;
&nbsp;<BR>$&nbsp;tar&nbsp;xvf&nbsp;ircii-2.8.2-src.tar&nbsp;#&nbsp;将打包文件解开&nbsp;
&nbsp;<BR>
&nbsp;<BR>最后一步,&nbsp;会有如下类似的信息输出:&nbsp;
&nbsp;<BR>ircii-2.8.2/&nbsp;
&nbsp;<BR>ircii-2.8.2/doc/&nbsp;
&nbsp;<BR>ircii-2.8.2/doc/BUGS&nbsp;
&nbsp;<BR>ircii-2.8.2/doc/Copyright&nbsp;
&nbsp;<BR>ircii-2.8.2/doc/HISTORY&nbsp;
&nbsp;<BR>(后面略去)&nbsp;
&nbsp;<BR>
&nbsp;<BR>然后我得到了目录&nbsp;ircii-2.8.2,&nbsp;然后&nbsp;
&nbsp;<BR>$&nbsp;cd&nbsp;ircii-2.8.2&nbsp;
&nbsp;<BR>$&nbsp;./configure&nbsp;--prefix=/usr/people/sh&nbsp;#&nbsp;这是检测软件&nbsp;
&nbsp;<BR>
&nbsp;<BR>会有类似的输出:&nbsp;
&nbsp;<BR>creating&nbsp;cache&nbsp;./config.cache&nbsp;
&nbsp;<BR>this&nbsp;is&nbsp;ircii&nbsp;version&nbsp;2.8.2&nbsp;
&nbsp;<BR>checking&nbsp;for&nbsp;gcc...&nbsp;gcc&nbsp;
&nbsp;<BR>(中间略去)&nbsp;
&nbsp;<BR>creating&nbsp;./config.status&nbsp;
&nbsp;<BR>creating&nbsp;Makefile&nbsp;
&nbsp;<BR>creating&nbsp;source/Makefile&nbsp;
&nbsp;<BR>creating&nbsp;include/defs.h&nbsp;
&nbsp;<BR>well&nbsp;there&nbsp;we&nbsp;are,&nbsp;you&nbsp;now&nbsp;might&nbsp;want&nbsp;to&nbsp;look&nbsp;in&nbsp;include/config.h&nbsp;
&nbsp;<BR>and&nbsp;see&nbsp;if&nbsp;there&nbsp;is&nbsp;anything&nbsp;you&nbsp;might&nbsp;want&nbsp;to&nbsp;tune,&nbsp;else&nbsp;you&nbsp;can&nbsp;
&nbsp;<BR>just&nbsp;run&nbsp;a&nbsp;make&nbsp;here..&nbsp;good&nbsp;luck!&nbsp;
&nbsp;<BR>
&nbsp;<BR>这就表示&nbsp;configure&nbsp;通过了.&nbsp;
&nbsp;<BR>
&nbsp;<BR>这里,&nbsp;我想把编译生成的&nbsp;irc&nbsp;可执行代码放置在由&nbsp;prefix&nbsp;指定的目录下.&nbsp;如果&nbsp;
&nbsp;<BR>不写&nbsp;--prefix=.....,&nbsp;那么程序会默认安装在&nbsp;/usr/local&nbsp;这个目录下.&nbsp;然后,&nbsp;
&nbsp;<BR>
&nbsp;<BR>$&nbsp;make&nbsp;#&nbsp;编译&nbsp;
&nbsp;<BR>
&nbsp;<BR>如果在&nbsp;configure&nbsp;时没有加&nbsp;prefix&nbsp;参数,&nbsp;在这里也可以加,&nbsp;用&nbsp;make&nbsp;prefix=...&nbsp;
&nbsp;<BR>
&nbsp;<BR>现在我看到了很多的输出:&nbsp;
&nbsp;<BR>
&nbsp;<BR>rm&nbsp;-f&nbsp;count.c&nbsp;
&nbsp;<BR>lex&nbsp;count.l&nbsp;
&nbsp;<BR>(后面略去)&nbsp;
&nbsp;<BR>没有出现&nbsp;error&nbsp;或是&nbsp;warning,&nbsp;我很幸运&nbsp;:),&nbsp;然后,&nbsp;
&nbsp;<BR>$&nbsp;make&nbsp;install&nbsp;#&nbsp;安装&nbsp;
&nbsp;<BR>
&nbsp;<BR>输出是:&nbsp;
&nbsp;<BR>`ircserv'&nbsp;is&nbsp;up&nbsp;to&nbsp;date.&nbsp;
&nbsp;<BR>`ircflush'&nbsp;is&nbsp;up&nbsp;to&nbsp;date.&nbsp;
&nbsp;<BR>`wserv'&nbsp;is&nbsp;up&nbsp;to&nbsp;date.&nbsp;
&nbsp;<BR>(后面略去)&nbsp;
&nbsp;<BR>
&nbsp;<BR>还是没出现&nbsp;error&nbsp;或是&nbsp;warning,&nbsp;en?&nbsp;这不是什么好事,&nbsp;有了错误才能学到东西嘛~&nbsp;
&nbsp;<BR>然后,&nbsp;我去看编译生成的结果:&nbsp;
&nbsp;<BR>
&nbsp;<BR>$&nbsp;cd&nbsp;/usr/people/sh&nbsp;#&nbsp;到&nbsp;prefix&nbsp;指定的目录下&nbsp;
&nbsp;<BR>$&nbsp;ls&nbsp;-lF&nbsp;
&nbsp;<BR>输出:&nbsp;
&nbsp;<BR>total&nbsp;2&nbsp;
&nbsp;<BR>drwxr-xr-x&nbsp;2&nbsp;sh&nbsp;lion&nbsp;512&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;bin/&nbsp;
&nbsp;<BR>drwxr-xr-x&nbsp;3&nbsp;sh&nbsp;lion&nbsp;512&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;lib/&nbsp;
&nbsp;<BR>
&nbsp;<BR>$&nbsp;cd&nbsp;bin&nbsp;
&nbsp;<BR>$&nbsp;ls&nbsp;-lF&nbsp;
&nbsp;<BR>输出:&nbsp;
&nbsp;<BR>total&nbsp;1957&nbsp;
&nbsp;<BR>lrwxr-xr-x&nbsp;1&nbsp;sh&nbsp;lion&nbsp;42&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;irc&nbsp;-&gt;&nbsp;/usr/people/sh/&nbsp;
&nbsp;<BR>bin/irc-2.8.2*&nbsp;
&nbsp;<BR>-rwxr-xr-x&nbsp;1&nbsp;sh&nbsp;lion&nbsp;823776&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;irc-2.8.2*&nbsp;
&nbsp;<BR>-rwxr-xr-x&nbsp;1&nbsp;sh&nbsp;lion&nbsp;59380&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;ircflush*&nbsp;
&nbsp;<BR>-rwxr-xr-x&nbsp;1&nbsp;sh&nbsp;lion&nbsp;61992&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;ircserv*&nbsp;
&nbsp;<BR>-rwxr-xr-x&nbsp;1&nbsp;sh&nbsp;lion&nbsp;55420&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;wserv*&nbsp;
&nbsp;<BR>
&nbsp;<BR>$&nbsp;cd&nbsp;../lib&nbsp;
&nbsp;<BR>$&nbsp;ls&nbsp;-lF&nbsp;
&nbsp;<BR>输出:&nbsp;
&nbsp;<BR>total&nbsp;1&nbsp;
&nbsp;<BR>drwxr-xr-x&nbsp;4&nbsp;sh&nbsp;lion&nbsp;512&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;irc/&nbsp;
&nbsp;<BR>
&nbsp;<BR>$&nbsp;cd&nbsp;irc&nbsp;
&nbsp;<BR>$&nbsp;ls&nbsp;-lF&nbsp;
&nbsp;<BR>输出:&nbsp;
&nbsp;<BR>total&nbsp;3&nbsp;
&nbsp;<BR>drwxr-xr-x&nbsp;2&nbsp;sh&nbsp;lion&nbsp;1024&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;script/&nbsp;
&nbsp;<BR>drwxr-xr-x&nbsp;2&nbsp;sh&nbsp;lion&nbsp;512&nbsp;Apr&nbsp;17&nbsp;08:45&nbsp;translation/&nbsp;
&nbsp;<BR>
&nbsp;<BR>现在可以说已经成功了&nbsp;99%&nbsp;了,&nbsp;剩下的还有:&nbsp;
&nbsp;<BR>1.&nbsp;需要一个联机帮助,&nbsp;它可以从&nbsp;75.11&nbsp;上下载,&nbsp;我得到了它:&nbsp;
&nbsp;<BR>ircii-2.8help.tar.gz&nbsp;
&nbsp;<BR>
&nbsp;<BR>然后,&nbsp;
&nbsp;<BR>$&nbsp;cd&nbsp;/usr/people/sh/lib/irc&nbsp;
&nbsp;<BR>$&nbsp;gzip&nbsp;-d&nbsp;ircii-2.8help.tar.gz&nbsp;
&nbsp;<BR>$&nbsp;tar&nbsp;xvf&nbsp;ircii-2.8help.tar&nbsp;
&nbsp;<BR>我得到了一个新的目录&nbsp;help,&nbsp;下面存放了这个客户程序所需要的帮助信息.&nbsp;
&nbsp;<BR>
&nbsp;<BR>2.&nbsp;需要一个资源文件,&nbsp;我在&nbsp;script&nbsp;目录下发现了一个&nbsp;ircrc,&nbsp;我把它&nbsp;
&nbsp;<BR>拷贝到我的根目录&nbsp;/usr/people/sh:&nbsp;
&nbsp;<BR>$&nbsp;cp&nbsp;/usr/people/sh/lib/irc/script/ircrc&nbsp;~/.ircrc&nbsp;
&nbsp;<BR>********&nbsp;现在我可以用了!&nbsp;********&nbsp;
&nbsp;<BR>$&nbsp;/usr/people/sh/bin/irc&nbsp;sh&nbsp;202.38.64.3&nbsp;
&nbsp;<BR>
&nbsp;<BR>这样每次敲太繁,&nbsp;可以把&nbsp;/usr/people/sh/bin&nbsp;加到启动时的配置文件里去,&nbsp;这里不赘&nbsp;
&nbsp;<BR>述.&nbsp;命令行里的第二项是聊天时的代号,&nbsp;最后一项是&nbsp;IRC&nbsp;服务器的&nbsp;IP.&nbsp;
&nbsp;<BR>****&nbsp;注意&nbsp;****&nbsp;
&nbsp;<BR>
&nbsp;<BR>这个缺省的&nbsp;.ircrc&nbsp;不是很好,&nbsp;它还没有设置完整.&nbsp;下文,&nbsp;我将给出我的&nbsp;.ircrc&nbsp;
&nbsp;<BR>例子.&nbsp;
&nbsp;<BR>
&nbsp;<BR>****&nbsp;感受&nbsp;****&nbsp;
&nbsp;<BR>IRC&nbsp;别的好处我且不谈,&nbsp;只说一句:&nbsp;
&nbsp;<BR>当我在&nbsp;PBBS&nbsp;里苦苦地等待着那缓慢的,间歇的输出的时候,&nbsp;我欣喜地发现在IRC里,&nbsp;
&nbsp;<BR>这种停顿&nbsp;*似乎*&nbsp;并不存在.&nbsp;:)&nbsp;
&nbsp;<BR>欢迎大家使用&nbsp;IRC&nbsp;来聊天!&nbsp;
&nbsp;<BR>--&nbsp;
&nbsp;<BR>※&nbsp;来源:&nbsp;中国科大BBS站&nbsp;[bbs.ustc.edu.cn]&nbsp;
&nbsp;<BR>
&nbsp;<BR>&nbsp;<BR>--&nbsp;<BR>台湾&nbsp;BBS&nbsp;Linux&nbsp;精华&nbsp;(97.11.版)&nbsp;<BR>SMTH-Linux/Unix/XWindow&nbsp;版在线&nbsp;Mirror&nbsp;!&nbsp;(还要哪些版&nbsp;?&nbsp;:-)&nbsp;<BR>Web&nbsp;Linux&nbsp;专栏:&nbsp;<A HREF="http://tarn.Cathay.ml.org/linuxboard">http://tarn.Cathay.ml.org/linuxboard</A>&nbsp;<BR>SSH&nbsp;for&nbsp;Windows&nbsp;(4ever),&nbsp;Cathay&nbsp;DNS&nbsp;名字服务,&nbsp;Archie,&nbsp;...&nbsp;<BR>在:&nbsp;http/<A HREF="ftp://tarn.Cathay.ml.org">ftp://tarn.Cathay.ml.org</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/me&nbsp;的签名档收不下了...自个儿去看吧&nbsp;<BR>&nbsp;<BR>※&nbsp;来源:·BBS&nbsp;水木清华站&nbsp;bbs.net.tsinghua.edu.cn·[FROM:&nbsp;linux.ustc.edu.cn]&nbsp;&nbsp;<BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -