#!/bin/bash

version='3.4.7'
prefix='/usr'
#prefix='/usr/local/squid-'${version}

if [ ! -f squid-$version.tar.xz ] ; then
    wget http://www.squid-cache.org/Versions/v3/3.4/squid-$version.tar.xz
fi
if [ ! -d squid-$version ]; then
    tar xvf squid-$version.tar.xz
fi
cd squid-$version
./configure \
  --prefix=${prefix} \
  --localstatedir=/var \
  --srcdir=. \
  --sysconfdir=/etc/squid \
  --with-default-user=proxy \
  --with-logdir=/var/log/squid \
  --with-pidfile=/var/run/squid.pid \
  --libexecdir=${prefix}/lib/squid \
  --datadir=${prefix}/share/squid
make -j 30
make install
chown proxy /var/log/squid

 

При стандартной компиляции может вылезти ошибка:

# make
/bin/sh /usr/src/memcached-2.2.0/libtool --mode=compile cc -I/usr/lib64/php5.6/include/php    -I. -I/usr/src/memcached-2.2.0 -DPHP_ATOM_INC -I/usr/src/memcached-2.2.0/include -I/usr/src/memcached-2.2.0/main -I/usr/src/memcached-2.2.0 -I/usr/lib64/php5.6/include/php -I/usr/lib64/php5.6/include/php/main -I/usr/lib64/php5.6/include/php/TSRM -I/usr/lib64/php5.6/include/php/Zend -I/usr/lib64/php5.6/include/php/ext -I/usr/lib64/php5.6/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/memcached-2.2.0/php_memcached.c -o php_memcached.lo
/usr/src/memcached-2.2.0/libtool: line 482: CDPATH: command not found
libtool: Version mismatch error.  This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make: *** [php_memcached.lo] Error 63

Это лечится запуском

aclocal && libtoolize --force && autoreconf

между phpize и ./configure

Скрипт установки:

--------------------------------------------------------------------------------------------------

#!/bin/bash                                                                                                                                                 
                                                                                                                                                            
cd /usr/src                                                                                                                                                 
wget http://pecl.php.net/get/memcached-2.2.0.tgz                                                                                                            
tar xvf memcached-2.2.0.tgz                                                                                                                                 
cd memcached-2.2.0                                                                                                                                          
phpize                                                                                                                                                      
aclocal && libtoolize --force && autoreconf                                                                                                                 
./configure                                                                                                                                                 
make                                                                                                                                                        
make install                                                                                                                                                
if [ ! -f /etc/php/fpm-php5.6/ext/memcached.ini ];                                                                                                          
    then                                                                                                                                                    
           echo "extension=memcached.so" > /etc/php/fpm-php5.6/ext/memcached.ini                                                                               
fi                                                                                                                                                          
cd /etc/php/fpm-php5.6/ext-active                                                                                                                           
ln -s ../ext/memcached.ini memcached.ini                                                                                                                    
                                                                                                                                                            
if [ ! -f /etc/php/cli-php5.6/ext/memcached.ini ];                                                                                                          
    then                                                                                                                                                    
           echo "extension=memcached.so" > /etc/php/fpm-php5.6/ext/memcached.ini                                                                               
fi                                                                                                                                                          
cd /etc/php/cli-php5.6/ext-active                                                                                                                           
ln -s ../ext/memcached.ini memcached.ini    

Gsmart 1345 : Констркутивный дефект разъема питания, после поломки ремонту не подлежит, разъём в продаже отсутствует. Конструкция располагает к поломке.

Gsmart 1362 : глючил GPS, замена стекла равна цене нового телефона.

Maya M1 v2 : глючит GPS, отваливается bluetooth, внутренняя память не 4ГБ, а разбита на 1 Гб и 1,75 ГБ, в итоге принципиальных отличий от апаратов с 1 гигом нет. Постоянно не хватате памяти :-( После покупки провалялся в сервие в общей сложности около 2-х месяцев.

Вердикт: никогда никогда никогда не куплю никаких смартфонов этой фирмы.