1: Install memcached
Problem: Error:libevent is required. If it ' s already installed, specify its path using–with-libevent=/dir/
Install memcached Configure process encountered this problem, but check whether the libevent has been installed, you will find that the system has been installed, but still error, this is because Libevent is the system installed by default, and does not install the corresponding development of the header file, So also use yum-y install libevent-devel;
Reference Link: http://www.wp31.com/1022.html
----------------------------------------reprinted from Http://www.wp31.com/1022.html-------------------------------------- --
See if the system is already installed Libevent
# Rpm-qa|grep Libevent
If there is, don't be happy, upgrade first
#yum-y Install Libevent
Test libevent is not already installed successfully
#ls-al/usr/lib | grep libevent
You can see multiple packages that have already been installed
installing memcached (http://memcached.org/)
You can view the compilation parameters first
# wget http://memcached.googlecode.com/files/memcached-1.4.8.tar.gz
# tar ZXVF memcached-1.4.8.tar.gz
# CD memcached-1.4.8
#./configure–help
#./configure–prefix=/usr/local/memcached
# make
# Make Install
At this time, it will not necessarily compile through, will still appear:
checking for libevent directory ... configure:error:libevent is required. You can get it from http://www.monkey.org/~provos/libevent/
If it ' s already installed, specify its path using–with-libevent=/dir/
Because libevent this package is installed by default, there is no header file installed for the corresponding development.
Therefore, the following commands are also used to install:
Yum Install Libevent-devel
Re-edit, you can pass: Enable memcached,
/usr/local/memcached/bin/memcached-d-M 128-l 192.168.1.1-p 11211-u Root
============================================
Memcached Start report Error while loading shared LIBRARIES:LIBEVENT-1.4.S workaround:
The reason is that the Libevent-1.4.so.2 class library is not found and the workaround is as follows:
Use Ld_debug=help./memcached-v to determine which class library path to load by using the following method:
ln-s/usr/local/lib/libevent-1.4.so.2/lib/libevent-1.4.so. 2
Seems to solve the problem with Ldconfig.
----------------------------------------reprinted from Http://www.wp31.com/1022.html-------------------------------------- --
2:redis Installation
Redis make error:you need TCL 8.5 or newer on order to run the Redis test
Reference Links:
http://blog.csdn.net/luyee2010/article/details/18766911
-------------------------------quote from: http://blog.csdn.net/luyee2010/article/details/18766911-------------------- ----
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
sudo tar xzvf tcl8.6.1-src.tar.gz-c/usr/local/
cd/usr/local/tcl8.6.1/unix/
sudo./configure
sudo make
sudo make install
-------------------------------quote from: http://blog.csdn.net/luyee2010/article/details/18766911-------------------- ----
Environment configuration under CENTOS7