PHP, JavaScript, Ajax, jQuery, ActionScript, Flex, AIR, Facebook App, Linux, Apache, MySQL...

2010年4月26日 星期一

[Linux]在 CentOS 上安裝核心開發工具 Development Tools (Automake, Gcc (C/C++), Perl, Python & Debuggers)

要在 CentOS 中使用所有的開發工具,例如 GNU GCC C/C++ compilers 、 make 等功能,需要安裝'Development Tools',這些工具包括核心開發工具,如 automake , Gcc , Perl , Python 和 debuggers:

=> flex
=> gcc
=> redhat-rpm-config
=> strace
=> rpm-build
=> make
=> pkgconfig
=> gettext
=> automake
=> strace64
=> gdb
=> bison
=> libtool
=> autoconf
=> gcc-c++
=> binutils and all dependencies.

打開 termianl 或通過 ssh 以 root 身份登錄並鍵入以下命令:
# yum groupinstall 'Development Tools'

安裝完成後就可以編譯和使用任何應用系統。

ps.如果安裝時出現以下錯誤:
Transaction Check Error:
file /usr/share/man/man1/Xserver.1x.gz from install of xorg-x11-server-Xvfb-1.1.1-48.67.el5 conflicts with file from package xorg-x11-server-Xnest-1.1.1-48.26.el5
file /usr/share/man/man1/Xserver.1x.gz from install of xorg-x11-server-Xvfb-1.1.1-48.67.el5 conflicts with file from package xorg-x11-server-Xorg-1.1.1-48.26.el5

要先把 xorg-x11-server-Xorg 和 org-x11-server-Xnest 移除再裝:
# yum remove xorg-x11-server-Xorg org-x11-server-Xnest
# yum remove xorg-x11-server-Xorg xorg-x11-server-Xnest


參考資料

http://www.cyberciti.biz/faq/centos-linux-install-gcc-c-c-compiler/

0 意見:

張貼留言