2007年4月26日 星期四

install kegel crosstool in debian

install bison
install flex
install libc6-dev

//error message
no acceptable cc found in $PATH
then,
install gcc

finally,
sh demo-i686.sh

經過了一天
看到了暌違已久的
Done!

下一步
來編輯for arm
./demo-arm9tdmi.sh

...
...
等好幾個小時

挖
成功嚕

+ echo testhello: C compiler can in fact build a trivial program.
testhello: C compiler can in fact build a trivial program.
+ test '' = 1
+ test '' = 1
+ test '' = 1
+ test 1 = ''
+ echo Done.
Done.

透過Facebook分享

修改source list in debian

今天 debian.cse.ntu.edu.tw掛點

今天要安裝flex套件 用aptitude
發現一直連線失敗

跑去/etc/apt/sources.list修改 source

#deb http://debian.csie.ntu.edu.tw/debian/ etch main
#deb-src http://debian.csie.ntu.edu.tw/debian/ etch main

加上
deb http://debian.nctu.edu.tw/debian/ etch main
deb-src http://debian.nctu.edu.tw/debian/ etch main

要先做apt-get update
才不會有下列error message
/************************************error message****************
W: 無法讀取來源檔『http://debian.nctu.edu.tw etch/main Packages (/var/lib/apt/lists/debian.nctu.edu.tw_debian_dists_etch_main_binary-i386_Packages)』的目錄資料。 - stat (2 沒有此一檔案或目錄)
W: 用『apt-get -f install』指令或許能修正這些問題。
*****************************************************************/
然後用apt-get install flex安裝

透過Facebook分享

2007年4月24日 星期二

裝了debian using VMware

下載網路安裝版
http://debian.csie.nctu.edu.tw/debian-cd/4.0_r0/i386/iso-cd/debian-40r0-i386-netinst.iso

由於在公司安裝的關係
http_proxy設定處
就輸入
http://a.b.c.d:3128/

系統核心裝完之後
選擇軟體的地方
選擇桌面環境,Web伺服器(日後會研究到),以及標準系統

哇
等好久喔
還在裝
裝好再來回報

透過Facebook分享

2007年4月21日 星期六

crosstool from kegel.com

Reference:
http://kegel.com/crosstool/current/doc/crosstool-howto.html#quick

tar crosstool
and mkdir /opt/crosstool
chmod /opt/crosstool

sh demo-i686.sh

//error message
build linuxthread
發現有一行
applying patch /home/nelsonchung/crosstool-0.43/patches/glibc-linuxthreads-2.3.6/glibc-linuxthreads-2.3.5-cygwin.patch
居然用到cygwin的patch
覺得怪怪的
改用 glibc-linuxthreads-2.2.2

結果一樣的問題
installation or configuration problem: C compiler cannot creat
摩托學院來源有說是libc6-dev沒裝
安裝完libc6-dev以及相關套件後
在執行 sh demo-i686.sh一次

error message
http://www.divshare.com/download/496694-b56

發現是crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-glibc/csu/version-info.h
有換行的狀況

去修改version-info.h
將前四行 分行的狀況
變成兩行
在第一行跟第三行的最後按下delete
變成
"Compiled on a Linux >>2.6.20-15-generic<< system on 2007-04-28."
"Available extensions:"
" GNU libio by Per Bothner\n"
" crypt add-on version 2.1 by Michael Glad and others\n"
" linuxthreads-0.10 by Xavier Leroy\n"
" BIND-8.2.3-T5B\n"
" libthread_db work sponsored by Alpha Processor Inc\n"
" NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"

在重新build一次。

透過Facebook分享

2007年4月19日 星期四

shell技巧

http://fanqiang.chinaunix.net/program/shell/
2005-10-20/3732.shtml

透過Facebook分享