Config the ubuntu

faint! Can't input chinese in the ubuntu. just use the poor _chinse_engilsh_ to write the blog.

There are error with installing subversion. following is list:

deon@kgd924:~/subversion-1.3.1$ ./configure
configure: Configuring Subversion 1.3.1
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
configure: creating config.nice
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

I write a hello word to test the GCC complier. following is coding:
--hello.c
#include <stdio.h>
main(){
    printf("Hello world");
}

There are new error with complie.

deon@kgd924:~$ gcc hello.c  -o test
hello.c:1:19: error: stdio.h: 沒有那個文件或目錄
hello.c: 在函數 ‘main’ 中:
hello.c:3: 警告:內建函數 ‘printf’ 不兼容的隱式聲明
hello.c:2: 警告:‘main’ 的返回類型不是 ‘int’

I think this is problem, and i found the comments in the "www.ubuntun.org.cn". I don't know why have't not to install the c headers when i use the "apt-get install gcc".
so just install in manual.

root@kgd924:/home/deon# apt-get install gcc libc6-dev
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關係樹... 完成
gcc 已經是最新的版本了。
將會安裝下列的額外的軟件包:
  linux-kernel-headers
建議安裝的軟件包:
  glibc-doc manpages-dev

ok, is ok now.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章