夫子哂之 行成于思毁于随
===========================================================
x86_64 linux 下安装简体中文amsn
===========================================================
效果还不错,虽然有点麻烦。aMSN
https://sourceforge.net/projects/amsn
A very nice MSN compatible messenger application, aMSN Messenger is a
multiplatform MSN messenger clone. Works pretty much like its Windows
based counterpart. Perfect for keeping in touch with those friends who
have not yet seen the light. Works on linux

CENTOS 4.3 x86_64 上安装tcl/tk/amsn的步骤.

[位置]安装指令如下:

  1. 安装tcl

    1. cd /tmp/tcl8.5a4/

  2. ./configure --help 看你需要那些options

  3. ./configure --with-x --enable-xft --enable-threads

  4. make;make install

  5. 安装tk

    1. cd /tmp/tk8.5a4/unix

  6. ./configure --help

  7. ./configure --with-tcl --with-x --enable-xft --enable-threads

  8. make;make install

      • 记得要enable-xft 这樣你才可以选择FireFly?大的字体或是微软XX:P

  9. 安装amsn

    1. http://amsn.sourceforge.net/download.php 下载你需要的tarbal版本

  10. 解压缩

  11. cd amsn9.5

  12. ./configure --help

  13. ./configure --with-tcl=/usr/local/lib/tcl8.5 --with-tk=/usr/local/lib/tk8.5 --with-x

      • 如果找不到tkConfig.sh tclConfig.sh 请找到这2个档案並各自copytcl8.5, tk8.52个目錄裡面

  14. 另外tcl/tk的目錄不一定跟上面一樣,请依自己的设定作适当的修改

    1. make

  15. compile完之后请先自己执行amsn看看是否有问题

      • 如果是segmentation fault(记忆体区段错误)whereis wish並且修改amsn这个档案,指定wish的絕对位置便可

  16. ex. vi ./amsn

  17. 修改exec wish $0 exec /usr/local/bin/wish8.5 $0

    1. 如果可以顺利执行,恭喜你!你有一个可以输入中文的amsn:-)

  18. make install

tls

如果你安装好之后发现amsn告诉你需要安装tls这个module,请先利用他內建的downloader安装,但是如果你想自己安装在此提供小弟的作法:

  1. 安装openssl http://www.openssl.org

    1. ./config


  1. make

  2. make install

  3. 安装tlsl http://tls.sourceforge.net/

    1. ./configure

修改Makefile 142

SHLIB_LD_LIBS = -L/usr/local/lib -ltclstub8.5 -L/usr/local/ssl/lib -lssl -L/usr/local/ssl/lib -lcrypto

SHLIB_LD_LIBS = -fPIC/usr/lib -ltclstub8.4${TCL_DBGX} -fPIC/usr/local/ssl/lib -lssl -fPIC/usr/local/ssl/lib -lcrypto


否则会报错

rm -f libtls1.50.so

gcc -pipe -shared -o libtls1.50.so tls.o tlsIO.o tlsBIO.o tlsX509.o fixstrtod.o -L/usr/local/lib -ltclstub8.5 -L/usr/local/ssl/lib -lssl -L/usr/local/ssl/lib -lcrypto

/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_meth.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

make: *** [libtls1.50.so] Error 1


  1. make

  2. make install

  3. amsn的偏好设定中设定好tls的位置便可

    • 如果amsn仍然找不到tls module 请作以下设定:

      1. 找到 pkgIndex.tcl(确定你tls已经安装) 通常都会在/usr/local/lib/tls1.50/pkgIndex.tcl

  • 修改pkgIndex.tcl

package ifneeded tls 1.50 "[list load [file join $dir ../libtls1.50.so] ] ; [list source [file join $dir tls.tcl] ]"


    然后设定tls目录为/usr/local/lib/tls1.50

  • 重新啟动amsn

  • 参考

http://kevinblue.twbbs.org/wiki?Tarbal%A6w%B8%CBamsn

http://tkabber.jabber.ru/node/191

http://www.tcl.tk/software/tcltk/downloadnow85.html


looric 发表于:2006.07.14 14:46 ::分类: ( Linux ) ::阅读:(951次) :: 评论 (0)

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)




切换风格
新闻聚合
博客日历
文章归档...
最新发表...
博客统计...
Blog信息
网站链接...