标签:lolcat
我的系统是centos6.5 lolcat彩虹特效依赖的是ruby2.1.5以上的版本。
安装依赖环境:
[root@node1 ~]# yum groupinstall "Development tools" 或者: [root@node1 ~]# yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel
清除所以ruby以安装的项目,以免影响
[root@node1 ~]# yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
下载ruby源码包:
[root@node1 ~]# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz
编译安装:
[root@node1 ~]# tar zxf ruby-2.1.5.tar.gz [root@node1 ~]# cd ruby-2.1.5 [root@node1 ~]# ./configure [root@node1 ~]# make && make install [root@node1 ~]# ruby -v ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
[root@node1 ~]# wget https://github.com/busyloop/lolcat/archive/master.zip [root@node1 ~]# unzip master.zip [root@node1 ~]# cd lolcat-master/bin [root@node1 ~]# gem install lolcat
等待安置完成
[root@node1 ~]# lolcat -v lolcat 42.1.44 (c)2011 moe@busyloop.net
本文出自 “aolens·程超” 博客,请务必保留此出处http://aolens.blog.51cto.com/7021142/1874952
标签:lolcat
原文地址:http://aolens.blog.51cto.com/7021142/1874952