I would like installed PHP Memcached on my Operating System. You can find more informations about my system on following facts.
Operating system: Debian 8 (Jessie)
Architecture: armhf
Installed packages: memcached, php7.1-dev, build-essential,
pkg-config, make, git, g++, gcc, libmemcached-dev, libmsgpack-dev,
libmsgpackc2
PHP Version:
PHP 7.1.8-2+0~20170804100723.7+jessie~1.gbpae7f04 (cli) (built: Aug 11 2017 03:58:33) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.8-2+0~20170804100723.7+jessie~1.gbpae7f04, Copyright (c) 1999-2017, by Zend Technologies
PHP Packages
libapache2-mod-php7.1
php-common
php7.1
php7.1-cli
php7.1-common
php7.1-curl
php7.1-dev
php7.1-gd
php7.1-imap
php7.1-json
php7.1-mbstring
php7.1-mcrypt
php7.1-mysql
php7.1-opcache
php7.1-readline
php7.1-xml
php7.1-xmlrpc
php7.1-zip
PHP Modules
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
My error summary
FAILED TEST SUMMARY
---------------------------------------------------------------------
Memcached::getByKey() with CAS [tests/experimental/get_bykey_cas.phpt]
Memcached::getDelayedByKey() with CAS [tests/experimental/getdelayed_bykey_cas.phpt]
Memcached::getDelayedByKey() with callback exception [tests/experimental/getdelayed_cbthrows.phpt]
Memcached::getMulti() bad server [tests/experimental/getmulti_badserver.phpt]
Memcached::getStats() [tests/experimental/stats.phpt]
Memcached::getStats() with bad server [tests/experimental/stats_badserver.phpt]
=====================================================================
I think I forgot to install a library or an PHP package. But I don`t know which one?
You need more informations? No problem I can post the completely Logfile.
I hope you can help me to fix that special problem.
Related
I'm trying to build libav 12.3 from https://libav.org/download/ using cygwin on Windows 10. There is some documentation on the libav.org website: https://libav.org/documentation/platform.html#Compilation-under-Cygwin
but it is out of date.
I want to know what cygwin packages I need to install. For example, the website specifies texi2html, which I can't find anywhere. Additional libraries such as yasm are not listed.
Some kind of math library is also missing. Currently, my compilation is failing with:
libavfilter/af_compand.c: In function ‘config_output’:
libavfilter/af_compand.c:343:43: error: ‘M_LN10’ undeclared (first use in this >function); did you mean ‘_M_LN2’?
double radius = s->curve_dB * M_LN10 / 20.0;
^~~~~~
_M_LN2
texi2html is a cygwin package.
$ cygcheck -p usr/bin/texi2html
Found 2 matches for usr/bin/texi2html
texi2html-1.82-10 - texi2html: A highly customizable texinfo to HTML and other formats translator (installed binaries and support files)
texi2html-1.82-11 - texi2html: A highly customizable texinfo to HTML and other formats translator (installed binaries and support files)
To install it, you need to follow
https://cygwin.com/cygwin-ug-net/setup-net.html#setup-packages
M_LN10 is defined in "/usr/include/math.h"
$ cygcheck -p usr/include/math.h
Found 6 matches for usr/include/math.h
cygwin-devel-2.10.0-1 - cygwin-devel: Core development files
cygwin-devel-2.11.0-0.2 - cygwin-devel: Core development files
cygwin-devel-2.9.0-3 - cygwin-devel: Core development files
..
so you need to install the cygwin-devel package that includes the standard cygwin headers.
I want to print the phpinfo() function to see if some modules are installed or not:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
the result of commands:
php -m | grep -i xdebug
xdebug
Xdebug
AND
php -v
PHP 5.6.37 (cli) (built: Sep 9 2018 15:55:18)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH
Update
I have added the following extensions and xdebugger parameters:(/usr/local/php56/lib/php.ini)
[Zend]
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.6.so
zend_extension_ts=/usr/local/lib/ioncube/ioncube_loader_lin_5.6_ts.so
zend_extension=/usr/local/lsws/lsphp5/lib/php/modules/xdebug.so
[xdebug]
;Remote settings
xdebug.remote_autostart=on
.
.
.
You see there is no error but I can't use xdebug.
UPDATE 2
This shows what my php.ini file is:
php -i | grep "Loaded Conf"
Loaded Configuration File => /usr/local/php56/lib/php.ini
Check your php.ini in phpinfo() on access over http, probably you have two php on your machine php-cli and php for your apache or nginx etc.
Reinstalling and recompiling and puting softlink resolved the problem:
ln -s /usr/local/php56/lib/php.ini /usr/local/lsws/lsphp5/lib/php.ini
Can not run Pac-manager after installing deb file,
Downloaded Pac Manger from : https://sourceforge.net/projects/pacmanager/
When run
pac
in the terminal , showing below problem
xs/Vte.c: loadable library and perl binaries are mismatched (got
handshake key 0xdb00080, needed 0xdb80080)
System:
Linux PC-pc 4.4.0-3-deepin-amd64 #1 SMP Deepin 4.4.30-2 (2016-12-01)
x86_64 GNU/Linux
Thanks.
The work on the PAC manager project has been discontinued [*], you may want to give a try to Ásbrú Connection Manager. It's a fork for which you can find a Debian based package for Gnome2::Vte.
I am trying to debug gcov code. I wrote a simple C program which calls __gcov_flush() method which is part of gcc/gcov.
After confirming that libgcov.a library has not been built with debug symbols, I have installed debuginfo packages for gcc on my machine (SLES 10).
# gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)
# rpm -qi gcc-debuginfo-4.1.2_20070115-0.29.6.x86_64
Name : gcc-debuginfo Relocations: (not relocatable)
Version : 4.1.2_20070115 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 0.29.6 Build Date: Sat Sep 5 03:04:50 2009
Install Date: Thu Apr 24 05:25:32 2014 Build Host: bingen
Group : Development/Debug Source RPM: gcc-4.1.2_20070115-0.29.6.src.rpm
Size : 251823743 License: GPL v2 or later
Signature : DSA/SHA1, Sat Sep 5 03:06:59 2009, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
URL : http://gcc.gnu.org/
Summary : Debug information for package gcc
Description :
This package provides debug information for package gcc.
Debug information is useful when developing applications that use this
package or when debugging this package.
Distribution: SUSE Linux Enterprise 10
/usr/lib/debug/usr/bin # ls -lrt gcov.debug
-rw-r--r-- 1 root root 94216 Sep 5 2009 gcov.debug
However, even after installing the proper version of debuginfo (gcov.debug) packages, GDB still cannot recognize the line number information, it just passes the control to next line without reporting line number (or stepping into the function).
(gdb)s
26 i++;
(gdb)s
27 __gcov_flush();
(gdb)s
28 printf("%d",i);
(gdb)
(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is "/usr/lib/debug".
Why GDB cannot identify line number information for gcov? If I have not installed the proper version of debuginfo packages for gcc/gcov, How to confirm it?
After confirming that libgcov.a library has not been built with debug symbols, I have installed debuginfo packages
You don't appear to understand how debuginfo packages work. They can't magically add debuginfo to an archive library that was built without debug symbols (or one that was stripped).
The usual build flow is:
build everything with -g
prepare separate debuginfo packages for all fully-linked binaries (executables and shared libraries)
strip fully-linked binaries (but not archive libraries)
This allows binaries and shared libraries to be small, but still debuggable after installing the debuginfo package.
Apparently, on SLES10 the "but not archive libraries" was not honored, and libgcov.a got stripped as well. Since separate debuginfo packages do not work for archive libraries, you can't get that info back. Your only option is to rebuild GCC from sources.
P.S. Why would they strip libgcov.a?
It's a trade-off: binaries that end-users link will be smaller, but code in libgcov.a will not be debuggable.
Since most end-users never debug libgcov.a, I'd say it was not an unreasonable trade-off.
I need to open some *.dbf files. I know what PHP has that module for easily work with such files, but how i can add that module to php-fpm ?
[root#mcs-team tmp]# pecl install dbase
downloading dbase-5.1.0.tgz ...
Starting to download dbase-5.1.0.tgz (14,112 bytes)
.....done: 14,112 bytes
12 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed
Also,
* Sun Aug 10 2008 Remi Collet <rpms#famillecollet.com> 5.3.0-0.1.alpha2-dev.200808101630.fc9.remi
- new snapshot (5.3.0alpha2-dev)
- no more dbase extension
Why, and how i can get it ?
[root#mcs-team tmp]# php -v
PHP 5.4.12 (cli) (built: Feb 20 2013 14:41:12)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root#mcs-team tmp]# uname -a
Linux mcs-team.tld 2.6.32-042stab063.2 #1 SMP Tue Oct 23 16:24:09 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
[root#mcs-team ~]# cat /etc/*elease*
CentOS release 6.4 (Final)
yum install php-dev*
pecl install dbase