- 論壇徽章:
- 0
|
GNM , zhumao :
我這里實在找不到一個類似你們所說的版本,太久不用Red Hat的東西了,而下載速度又不快。我剛才在一個Red Hat版本里做過實驗,這是我的Red Hat版本:
[root@sunny ~]# uname -a
Linux sunny 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
[root@sunny ~]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
我實驗結(jié)果也是沒問題的,輸出內(nèi)容是:
- [root@sunny ~]# gcc -Wall -g mailsearch.c
- [root@sunny ~]# ./a.out "http://bn.sina.com.cn/pv/index.html"
- Display. 1:
- bn.sina.com.cn:80/pv/index.html => file00000.html 0
- Request.1 is:
- GET /pv/index.html HTTP/1.0
- Host: bn.sina.com.cn
- User-Agent: Wget/1.10.2
- Accept: */*
- Connection: keep-alive
- Request.1 115 bytes send OK!
- The following is the response header:
- HTTP/1.1 200 OK
- Date: Sun, 10 Sep 2006 05:39:53 GMT
- Server: Apache/1.3.27 (Unix)
- Last-Modified: Sun, 10 Sep 2006 05:32:00 GMT
- ETag: "1d7652-13296-4503a350"
- Accept-Ranges: bytes
- Content-Length: 78486
- Keep-Alive: timeout=15, max=10000
- Connection: Keep-Alive
- Content-Type: text/html
- Display. 56:
- bn.sina.com.cn:80/pv/index.html => file00000.html 1
- bn.sina.com.cn:80/bbs/p/2006/0906/16121295.html => file00001.html 0
- bn.sina.com.cn:80/bbs/p/2006/0906/14121292.html => file00002.html 0
- bn.sina.com.cn:80/bbs/p/2006/0905/15431284.html => file00003.html 0
- bn.sina.com.cn:80/bbs/p/2006/0901/14251263.html => file00004.html 0
- bn.sina.com.cn:80/bbs/p/2006/0901/14131261.html => file00005.html 0
- bn.sina.com.cn:80/bbs/p/2006/0901/14151262.html => file00006.html 0
- bn.sina.com.cn:80/bbs/p/2006/0830/15271245.html => file00007.html 0
- bn.sina.com.cn:80/bbs/p/2006/0904/15471273.html => file00008.html 0
- bn.sina.com.cn:80/bbs/p/2006/0904/16091275.html => file00009.html 0
- bn.sina.com.cn:80/bbs/p/2006/0905/15151283.html => file00010.html 0
- bn.sina.com.cn:80/dv/mmx.html => file00011.html 0
- bn.sina.com.cn:80/dv/flashgame.html => file00012.html 0
- bn.sina.com.cn:80/dv/flashgame.htm => file00013.html 0
- bn.sina.com.cn:80/pv/# => file00014.html 0
- bn.sina.com.cn:80/dv/eryueyatou.html => file00015.html 0
- bn.sina.com.cn:80/bbs/2006/0427/1452523.html => file00016.html 0
- bn.sina.com.cn:80/bbs/2006/0330/1831383.html => file00017.html 0
- bn.sina.com.cn:80/pv/moshu.html => file00018.html 0
- bn.sina.com.cn:80/dv/streetmagicians.html => file00019.html 0
- bn.sina.com.cn:80/blog/index.html => file00020.html 0
- bn.sina.com.cn:80/dv/huwai/index.shtml => file00021.html 0
- bn.sina.com.cn:80/bbs/p/2006/0719/1651999.html => file00022.html 0
- bn.sina.com.cn:80/bbs/p/2006/0717/1534979.html => file00023.html 0
- bn.sina.com.cn:80/bbs/p/2006/0712/1839950.html => file00024.html 0
- bn.sina.com.cn:80/bbs/p/2006/0605/1124684.html => file00025.html 0
- bn.sina.com.cn:80/bbs/p/2006/0524/1623620.html => file00026.html 0
- bn.sina.com.cn:80/bbs/p/2006/0607/1835714.html => file00027.html 0
- bn.sina.com.cn:80/bbs/p/2006/0511/1435560.html => file00028.html 0
- bn.sina.com.cn:80/bbs/p/2006/0517/1633575.html => file00029.html 0
- bn.sina.com.cn:80/bbs/2006/0406/1110426.html => file00030.html 0
- bn.sina.com.cn:80/dv/funny/index.shtml => file00031.html 0
- bn.sina.com.cn:80/dv/love2006.html => file00032.html 0
- auto.sina.com.cn:80/z/shipin/index.shtml => file00033.html 0
- www.22film.com:80/ => file00034.html 0
- www.streetballa.com:80/ => file00035.html 0
- www.dvchina.cn:80/ => file00036.html 0
- new.dvchina.cn:80/ => file00037.html 0
- www.20802.com:80/ => file00038.html 0
- www.cetv.edu.cn:80/program/a0908/index.php => file00039.html 0
- www.pop-photo.com.cn:80/index.html => file00040.html 0
- www.chndv.cn:80/ => file00041.html 0
- www.pconline.com.cn:80/digital/dv/ => file00042.html 0
- www.nbdv.net:80/ => file00043.html 0
- www.3cworld.com.cn:80/ => file00044.html 0
- www.bjlongs.com:80/ => file00045.html 0
- www.tailenet.com:80/ => file00046.html 0
- corp.sina.com.cn:80/chn/ => file00047.html 0
- corp.sina.com.cn:80/eng/ => file00048.html 0
- ads.sina.com.cn:80/ => file00049.html 0
- corp.sina.com.cn:80/chn/sina_job.html => file00050.html 0
- www.sina.com.cn:80/intro/lawfirm.shtml => file00051.html 0
- englishcenter.sina.com:80/ => file00052.html 0
- unipro.sina.com.cn:80/cgi-bin/regist0.cgi?url1=&url2=&id1=1&id2=0&entry=people&mcheck=bb25a9cc2d921f9d191ea3c76c7278b7 => file00053.html 0
- tech.sina.com.cn:80/focus/sinahelp.shtml => file00054.html 0
- home.sina.com.cn:80/intro/copyright.shtml => file00055.html 0
- Request.2 is:
- GET /bbs/p/2006/0906/16121295.html HTTP/1.0
- Host: bn.sina.com.cn
- User-Agent: Wget/1.10.2
- Accept: */*
- Connection: keep-alive
- Request.2 131 bytes send OK!
復制代碼
我仔細比較了你們的系統(tǒng)和我的系統(tǒng),除了gcc版本不同外,另外一個最重要的差別是內(nèi)核版本我這里是2.6,而你們都是2.4的,不知道是不是這個問題。
建議你們用Debian、Ubuntu之類的試試,所有的軟件包管理一個apt命令搞定,不需要自己去到處找包,不需要自己解決包之前的依賴關(guān)系。找軟件用命令:
注:這里x是軟件包名稱或這個軟件包的描述字符中的一個
安裝軟件用命令:
比如我這里:
test@local:~$ apt-cache search crawler
htdig - WWW search system for an intranet or small internet
htdig-doc - Documentation for the htdig package
test@local:~$ sudo apt-get install htdig
Password:
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關(guān)系樹... 完成
將會安裝下列額外的軟件包:
gawk libdb2 lockfile-progs
建議安裝的軟件包:
catdoc pstotext gs xpdf xpdf-i
推薦安裝的軟件包:
wwwoffle htdig-doc
下列【新】軟件包將被安裝:
gawk htdig libdb2 lockfile-progs
共升級了 0 個軟件包,新安裝了 4 個軟件包,要卸載 0 個軟件包,有 2 個軟件未被升級。
需要下載 2112kB 的軟件包。
解壓縮后會消耗掉 6119kB 的額外空間。
您希望繼續(xù)執(zhí)行嗎?[Y/n]
你只需要確認一下,需要安裝的4個軟件包就會自動安裝完成,不用你自己去找。開發(fā)人員可以專心地去做程序而省去了搜索軟件包的麻煩。
Red Hat說實在地太商業(yè)化了,不是開發(fā)人員用的版本。 |
|