Wdcp在安装memcached出现错误的解决办法

今天在安装memcached时出现了以下错误(tar: libevent-1.4.14b-stable.tar.gz: Cannot open: No such file or directory),(memcached)的安装请移步我的另一篇文章:http://www.jakehu.me/816

错误如下:

  1. tar: libevent-1.4.14b-stable.tar.gz: Cannot open: No such file or directory
  2. tar: Error is not recoverable: exiting now
  3. memcached_ins.sh: line 35: cd: libevent-1.4.14b-stable: No such file or directory
  4. memcached_ins.sh: line 36: ./configure: No such file or directory
  5. make: *** No targets specified and no makefile found. Stop.

经过查看.sh脚本,发现如下代码

  1. cd /tmp
  2. wget -c https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
  3. wget -c http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
  4. wget -c http://pecl.php.net/get/memcache-2.2.7.tgz
  5. tar xf libevent-1.4.14b-stable.tar.gz
  6. cd libevent-1.4.14b-stable
  7. ./configure --prefix=/usr
  8. make
  9. [ $? != 0 ] && exit
  10. make install
  11. cd ..

瞬间就明白了,因为在国内网络无法访问Google所以无法下载libevent-1.4.14b-stable.tar.gz和memcached-1.4.15.tar.gz

解决办法:

手动把

https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz

http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz

下载到本机,然后再上传到服务器/tmp目录里。

最后再运行:

  1. wget -c http://down.wdlinux.cn/in/memcached_ins.sh
  2. chmod 755 memcached_ins.sh
  3. ./memcached_ins.sh

之后出现以下页面,就表示安装成功了

20140819102814

posted @ 2014-10-25 02:20  inroam  阅读(684)  评论(0编辑  收藏  举报