close

朋友最近也在準備RHCE考試
為了要方便問問題
他希望能夠在linux用msn
所以他找了amsn來用
但他搞不定
就幫他研究
順便做個筆記

我是用centOS
如果您是用其他版本
都大同小異變通一下吧

首先…
需要安裝TCL & TK 套件
目前最新版是8.6a2
但我們不是要這版哦
而是要下載8.5.4
因為amsn目前這版只支援到8.5.4

下載點:Tcl Developer Site

下載完後先解壓縮
首先安裝TCL
進入TCL解壓目錄下的unix目錄

執行 ./configure -prefix=/usr

[root@station1 unix]# ./configure -prefix=/usr
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

出現error
要補裝 gcc套件才能正常運作

[root@station1 unix]#yum install gcc
[root@station1 unix]# ./configure -prefix=/usr
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
.
.
config.status: creating Makefile
config.status: creating dltest/Makefile
config.status: creating tclConfig.sh

這次就沒有出就error了
接著執行編譯命令 make

[root@station1 unix]# make

編譯完就可以安裝了
執行 make install

[root@station1 unix]# make install
Installing libtcl8.5.so to /usr/lib/
Installing tclsh as /usr/bin/tclsh8.5
Installing tclConfig.sh to /usr/lib/
Installing libtclstub8.5.a to /usr/lib/
Installing message catalogs
    Creating msgs
Making directory /usr/lib/tcl8.5/opt0.4
Making directory /usr/lib/tcl8.5/http1.0
Making directory /usr/lib/tcl8.5/encoding
Making directory /usr/lib/tcl8.5/../tcl8
Making directory /usr/lib/tcl8.5/../tcl8/8.3
Making directory /usr/lib/tcl8.5/../tcl8/8.4
Making directory /usr/lib/tcl8.5/../tcl8/8.4/platform
Making directory /usr/lib/tcl8.5/../tcl8/8.5
Installing header files
Installing library files to /usr/lib/tcl8.5
Installing library http1.0 directory
Installing package http 2.7.1 as a Tcl Module
Installing library opt0.4 directory
Installing package msgcat 1.4.2 as a Tcl Module
Installing package tcltest 2.3.0 as a Tcl Module
Installing package platform 1.0.3 as a Tcl Module
Installing package platform::shell 1.1.3 as a Tcl Module
Installing library encoding directory
Making directory /usr/man
Making directory /usr/man/man1
Making directory /usr/man/man3
Making directory /usr/man/mann
Installing and cross-linking top-level (.1) docs
Installing and cross-linking C API (.3) docs
Installing and cross-linking command (.n) docs

接著安裝TK
一樣進到TK解壓後的unix目錄
執行 ./configure --prefix=/usr --enable-xft

[root@station1 unix]# ./configure --prefix=/usr --enable-xft
.
.
configure: WARNING: Can't find xft configuration, or xft is unusable
checking whether char is unsigned... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh

很不幸的又出現warning
補安裝 libXft-devel

[root@station1 unix]# yum install libXft-devel
[root@station1 unix]# ./configure --prefix=/usr --enable-xft
.
.
checking for X11/Xft/Xft.h... yes
checking for FT_New_Face in -lXft... yes
checking whether char is unsigned... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh

成功…
執行編譯 make

[root@station1 unix]#make

編譯完再make install安裝

[root@station1 unix]# make install
Making directory /usr/lib/tk8.5
Creating package index /usr/lib/tk8.5/pkgIndex.tcl
Installing libtk8.5.so to /usr/lib/
Installing wish as /usr/bin/wish8.5
Installing tkConfig.sh to /usr/lib/
Installing libtkstub8.5.a to /usr/lib/
Making directory /usr/lib/tk8.5/images
Making directory /usr/lib/tk8.5/msgs
Making directory /usr/lib/tk8.5/ttk
Installing header files
Installing library files to /usr/lib/tk8.5
Installing library ttk directory
Installing library images directory
Installing translation directory
Making directory /usr/lib/tk8.5/demos
Making directory /usr/lib/tk8.5/demos/images
Installing demos to /usr/lib/tk8.5/demos/
Installing demo images
Installing and cross-linking top-level (.1) docs
Installing and cross-linking C API (.3) docs
Installing and cross-linking command (.n) docs

裝完 tcl & tk 之後
請執行以下指令讓系統認得新的版本

[root@station1 unix]# cd /usr/bin
[root@station1 bin]# rm -rf tclsh
[root@station1 bin]# rm -rf wish
[root@station1 bin]# ln -s tclsh8.5 tclsh
[root@station1 bin]# ln -s wish8.5 wish

接著去 amsn 官網下載package檔安裝
下載回來要+x才能執行

[root@station1 Desktop]# chmod a+x amsn-0.97.2-1.tcl85.x86.package

執行amsn-0.97.2-1.tcl85.x86.package開始安裝

[root@station1 Desktop]# ./amsn-0.97.2-1.tcl85.x86.package

搞定…可以在CentOS使用功能強大的amsn了




arrow
arrow
    全站熱搜

    文森特 發表在 痞客邦 留言(2) 人氣()