想研究下p2p协议,就在Linux CentOS 系统上安装aMule源码包, aMule是多平台的eMule,支持windows linux。
从sourceforge上下载aMule的源代码包, 解压到同目录下.
编译前查看系统的 开发环境 必须安装 gcc-c++ , gtk2--devel gd--devel 如果没有就安装。
安装wxGTK (wxGTK-2.8.10.tar.gz)
tar -xzvf wxGTK-2.8.10.tar.gz
cd wxGTK-2.8.10
./configure --prefix=/usr --enable-unicode && make
必须使用unicdoe支持。
google cryptopp560.zip
unzip cryptopp560 解压,里面都是源代码。默认编译成windows程序,
必须使用如下命令
cd cryptopp560
make && cp libcryptopp.a /usr/lib/ 声称对应的库文件
进入aMule-Srouce-* 目录
编译前需要先配置
./configure -prefix=/home/fish/code/aMule --enable-debug && make
因为我是为了研究 aMule所以添加上了debug信息。 /home/fish/code/aMule是生成的aMule安装位置。
waiting......
执行 /home/fish/code/aMule/bin/amule 就可以看到aMule程序了。