Skip to content

Instantly share code, notes, and snippets.

View parseword's full-sized avatar

Shaun Cummiskey parseword

View GitHub Profile
@parseword
parseword / php-7.2-pthreads.md
Created January 12, 2018 20:08
Build errors compiling the pthreads extension for PHP 7.2 on CentOS 6

If you get errors like this when trying to compile pthreads for PHP 7.2, see the article Installing PHP 7.2 with pthreads on CentOS 6 for a solution.

[root@parox03 /home/files/php-7.2.1/ext/pthreads]# make
/bin/sh /home/files/php-7.2.1/ext/pthreads/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/files/php-7.2.1/ext/pthreads -DPHP_ATOM_INC -I/home/files/php-7.2.1/ext/pthreads/include -I/home/files/php-7.2.1/ext/pthreads/main -I/home/files/php-7.2.1/ext/pthreads -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/home/files/php-7.2.1/ext/pthreads/.  -DHAVE_CONFIG_H  -g -O2   -c /home/files/php-7.2.1/ext/pthreads/php_pthreads.c -o php_pthreads.lo
mkdir .libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/files/php-7.2.1/ext/pthreads -DPHP_ATOM_INC -I/home
@parseword
parseword / gist:778067a441d69f5f21e3fa1f5386eb27
Created September 26, 2017 00:04
pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: unable to open database file
[root@host /tmp]# portmaster -Kvw glib-2.50.2_5,1
[...snip many lines of compile and install output...]
====> Compressing man pages (compress-man)
===>>> Creating a backup package for old version glib-2.50.2_5,1
Creating package for glib-2.50.2_5,1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)