Wdcp在安装memcached出现错误的解决办法
今天在安装memcached时出现了以下错误(tar: libevent-1.4.14b-stable.tar.gz: Cannot open: No such file or directory),(memcached)的安装请移步我的另一篇文章:http://www.jakehu.me/816
错误如下:
- tar: libevent-1.4.14b-stable.tar.gz: Cannot open: No such file or directory
- tar: Error is not recoverable: exiting now
- memcached_ins.sh: line 35: cd: libevent-1.4.14b-stable: No such file or directory
- memcached_ins.sh: line 36: ./configure: No such file or directory
- make: *** No targets specified and no makefile found. Stop.
经过查看.sh脚本,发现如下代码
- cd /tmp
- wget -c https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
- wget -c http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
- wget -c http://pecl.php.net/get/memcache-2.2.7.tgz
- tar xf libevent-1.4.14b-stable.tar.gz
- cd libevent-1.4.14b-stable
- ./configure --prefix=/usr
- make
- [ $? != 0 ] && exit
- make install
- 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目录里。
最后再运行:
- wget -c http://down.wdlinux.cn/in/memcached_ins.sh
- chmod 755 memcached_ins.sh
- ./memcached_ins.sh
之后出现以下页面,就表示安装成功了