Total Pageviews

Tuesday 27 May 2014

编译racket

wget http://mirror.racket-lang.org/installers/6.0.1/racket-6.0.1-src.tgz
tar zxvf racket-6.0.1-src.tgz
cd racket-6.0.1
cd src
./configure
make
make install

注:如果make install失败,往往是你的vps内存耗尽的缘故,重启vps,再次make install就能成功。而且需先安装libcairo2:
 apt-get install libcairo2 libcairo2-dev libpango-1.0-0 libpango1.0-0 libpango1.0-dev libpangocairo-1.0-0   ,否则在运行make install时,会遇到提示:找不到libcairo.so.2,libpango-1.0.so.0文件。

root@localhost:~# find / -name raco
/usr/share/doc/racket/raco
/usr/share/racket/collects/raco
/usr/share/racket/collects/scribblings/raco
/root/racket-6.0.1/doc/raco
/root/racket-6.0.1/collects/raco
/root/racket-6.0.1/share/pkgs/racket-doc/scribblings/raco
/root/racket-6.0.1/bin/raco
root@localhost:~# echo "export PATH=$PATH:/root/racket-6.0.1/bin" >> /etc/profile                                                                        
root@localhost:~# . /etc/profile
root@localhost:~#

搞了差不多2个小时,才编译成功。