Kerya techblog

Most Read Posts

  • Gentoo mail (postfix + postfixadmin + dovecot + amavisd-new + roundcube)
  • Zabbix - no such instance currently exists at this oid
  • LVM cant Boot - ALERT /dev/mapper/ubuntu--vg-root does not exist DROPPING to Shell -
  • liquidsoap-1.1.1 gentoo install
  • Laravel manual user register
  • Gentoo: php 5.6.0 + pecl-memcached 2.2.0 install script
  • Zabbix APC Smart UPS monitoring on FreeBSD with snmp
  • Squid 3.4 debian 7 install script
  • Подключение Foxgate S6224-S2 Ubuntu minicom
  • Abills
  • exim+dovecot+postfixadmin+clamav+spamassassin on FreeBSD
  • Openmeetings 2.1.1 Ubuntu 12.04.2 installation
  • libtool version mismatch pecl gentoo
  • Securing NTP
  • FreeBSD 9 ossec setup errors fix
  • Mikrotik no-ip ddns update script
  • Скопировать права mysql gentoo
  • fix for - corrupted record for package (pkgdep line without argument), ignoring
  • mysql backup scripts
  • snmpd less verbose log FreeBSD (Connection from UDP messages)
  1. Вы здесь:  
  2. Home
  • Home
  • Все статьи

Gentoo: php 5.6.0 + pecl-memcached 2.2.0 install script

Подробности
Автор: Kirill
  • gentoo
  • php
  • pecl
  • memcached

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

# 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    

Nginx redirects

Подробности
Автор: Kirill

Почему я никогда больше не куплю смартфон Gigabyte

Подробности
Автор: Kirill

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

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

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

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

Скрипт переполучения IP адреса на perl

Подробности
Автор: Kirill

Скрипт переполучения IP адреса:

inet.pl :

#!/usr/bin/perl

$inet_if = 'fxp0';

use Net::Ping::External qw(ping);

my $alive = ping(host => "8.8.8.8");

if ($alive == 0) {
    system("killall dhclient");
    system("route delete default");
    system("ifconfig $inet_if -alias");
    system("ifconfig $inet_if down");
    system("sleep 3");
    system("ifconfig $inet_if up");
    system("dhclient $inet_if");
}

  1. mysql database sync scripts
  2. Abills

Страница 14 из 18

  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

Search

Older Posts

  • zerotier one add more routes (43)
  • modsecurity for nginx compilation scripts for freebsd (430)
  • Greenbone Vulnerability Manager (GVM) hacks (504)
  • elasticsearch cluster red status fix due to high watermark (398)
  • ubuntu arrow keys misbehaviour fix (478)
  • icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration" (475)
  • Make user superadmin in zabbix (524)
  • dnf Error: unknown option (627)
  • unpack pfx certificate (used for apache or nginx) (456)
  • mysql audit plugin build script (749)
  • mysql dump one row (533)
  • redmine 5 docker-compose (700)
  • gitlab runner dind docker-compose (518)
  • AWS S3 IAM policy to limit to single sub folder (464)
  • logrotate hints (628)

Login Form

  • Забыли пароль?
  • Забыли логин?
  • Регистрация