valet-plus icon indicating copy to clipboard operation
valet-plus copied to clipboard

Bug: M1 Could not find installation path for: apcu

Open henkvalk opened this issue 3 years ago • 12 comments

  • [x] I've checked the issue queue and could not find anything similar to my bug.
  • [x] I'm on the latest version of valet-plus (valet --version): Valet+ 2.3.0
  • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

What is the problem? Valet will not run because of PECL extensions

What was supposed to happen? A description of what you think was supposed to happen.

What actually happened? Could not find installation path for: apcu

➜  ~ valet fix
Password:
Check Valet+ PHP version...
Run valet fix with the --reinstall option to trigger a full reinstall of the default PHP version.
ARM Mac detected
Please check your linked php version, you might need to restart your terminal!
Linked PHP should be php 7.4:
PHP 7.4.16 (cli) (built: Dec 17 2021 15:38:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies

[PECL] Checking pear config...
Checking php 5.6...
ARM Mac detected
    Skipping 5.6, Pear config path could not be found at: /opt/homebrew/etc/valet-php/5.6/pear.conf
Checking php 7.0...
    Skipping 7.0, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.0/pear.conf
Checking php 7.1...
    Skipping 7.1, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.1/pear.conf
Checking php 7.2...
    Skipping 7.2, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.2/pear.conf
Checking php 7.3...
    Skipping 7.3, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.3/pear.conf
Checking php 7.4...
Checking php 8.0...
    Skipping 8.0, Pear config path could not be found at: /opt/homebrew/etc/valet-php/8.0/pear.conf
➜  ~ valet install --with-mysql-8
[nginx] Stopping
[[email protected]] Stopping
[mysql] Stopping
[devtools] Installing tools
	wp-cli already installed, skipping...
	pv already installed, skipping...
	geoip already installed, skipping...
	zlib already installed, skipping...
	jq already installed, skipping...
	libyaml already installed, skipping...
[binaries] Installing binaries
[binaries] magerun not found, installing from: https://files.magerun.net/n98-magerun-1.103.1.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5383k  100 5383k    0     0  11.0M      0 --:--:-- --:--:-- --:--:-- 11.1M
ARM Mac detected
[binaries] magerun installed to: /opt/homebrew/bin/magerun
[binaries] magerun2 not found, installing from: https://files.magerun.net/n98-magerun2-3.2.0.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5374k  100 5374k    0     0  15.5M      0 --:--:-- --:--:-- --:--:-- 15.7M
[binaries] magerun2 installed to: /opt/homebrew/bin/magerun2
[binaries] drush not found, installing from: https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   647  100   647    0     0   2121      0 --:--:-- --:--:-- --:--:--  2149
100  303k  100  303k    0     0   541k      0 --:--:-- --:--:-- --:--:-- 5060k
[binaries] drush installed to: /opt/homebrew/bin/drush
ARM Mac detected
[BREW TAP] henkrehorst/php already installed
ARM Mac detected
[PECL] Updating PECL channel: pecl.php.net
[PECL] Installing extensions

In Pecl.php line 167:
                                                                                                                                                                                                                         
  Could not find installation path for: apcu                                                                                                                                                                             
                                                                                                                                                                                                                         
  downloading apcu-5.1.21.tgz ...                                                                                                                                                                                        
  Starting to download apcu-5.1.21.tgz (92,516 bytes)                                                                                                                                                                    
  .....................done: 92,516 bytes                                                                                                                                                                                
  42 source files, building                                                                                                                                                                                              
  running: phpize                                                                                                                                                                                                        
  Configuring for:                                                                                                                                                                                                       
  PHP Api Version:         20190902                                                                                                                                                                                      
  Zend Module Api No:      20190902                                                                                                                                                                                      
  Zend Extension Api No:   320190902                                                                                                                                                                                     
  configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead                                                                                                                                       
  build/php.m4:2110: PHP_CONFIG_NICE is expanded from...                                                                                                                                                                 
  configure.ac:18: the top level                                                                                                                                                                                         
  configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.                                                                                                                                                          
  configure.ac:161: You should run autoupdate.                                                                                                                                                                           
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...                                                                                                                                                                  
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                        
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                    
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.                                                                                                                                                          
  configure.ac:161: You should run autoupdate.                                                                                                                                                                           
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...                                                                                                                                                                  
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...                                                                                                                                                               
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...                                                                                                                                                                     
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...                                                                                                                                                       
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...                                                                                                                                                     
  build/libtool.m4:561: _LT_AC_LOCK is expanded from...                                                                                                                                                                  
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                        
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                    
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.                                                                                                                                                        
  configure.ac:161: You should run autoupdate.                                                                                                                                                                           
  ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...                                                                                                                                                        
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...                                                                                                                                                               
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...                                                                                                                                                                     
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...                                                                                                                                                       
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...                                                                                                                                                     
  build/libtool.m4:561: _LT_AC_LOCK is expanded from...                                                                                                                                                                  
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                        
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                    
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                   
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                        
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                    
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                        
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                        
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                    
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist                                                            
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist                                                                                 
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script                                       
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script                                                            
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'                                                   
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'                                                                        
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists                                                                                                  
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.                                                                                                                                                  
  configure.ac:161: You should run autoupdate.                                                                                                                                                                           
  ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...                                                                                                                                                         
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                      
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                  
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                   
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                      
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                  
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                        
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                              
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                      
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                  
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                            
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                              
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                              
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                               
  configure.ac:161: the top level                                                                                                                                                                                        
  Enable internal debugging in APCu [no] : building in /private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21                                                                                                      
  running: /private/tmp/pear/temp/apcu/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config --enable-apcu-debug=no                                                                                 
  checking for grep that handles long lines and -e... /usr/bin/grep                                                                                                                                                      
  checking for egrep... /usr/bin/grep -E                                                                                                                                                                                 
  checking for a sed that does not truncate output... /usr/bin/sed                                                                                                                                                       
  checking for pkg-config... /opt/homebrew/bin/pkg-config                                                                                                                                                                
  checking pkg-config is at least version 0.9.0... yes                                                                                                                                                                   
  checking for cc... cc                                                                                                                                                                                                  
  checking whether the C compiler works... yes                                                                                                                                                                           
  checking for C compiler default output file name... a.out                                                                                                                                                              
  checking for suffix of executables...                                                                                                                                                                                  
  checking whether we are cross compiling... no                                                                                                                                                                          
  checking for suffix of object files... o                                                                                                                                                                               
  checking whether the compiler supports GNU C... yes                                                                                                                                                                    
  checking whether cc accepts -g... yes                                                                                                                                                                                  
  checking for cc option to enable C11 features... none needed                                                                                                                                                           
  checking how to run the C preprocessor... cc -E                                                                                                                                                                        
  checking for icc... no                                                                                                                                                                                                 
  checking for suncc... no                                                                                                                                                                                               
  checking for system library directory... lib                                                                                                                                                                           
  checking if compiler supports -R... no                                                                                                                                                                                 
  checking if compiler supports -Wl,-rpath,... yes                                                                                                                                                                       
  checking build system type... arm-apple-darwin21.2.0                                                                                                                                                                   
  checking host system type... arm-apple-darwin21.2.0                                                                                                                                                                    
  checking target system type... arm-apple-darwin21.2.0                                                                                                                                                                  
  checking for PHP prefix... /opt/homebrew/Cellar/[email protected]/7.4.16                                                                                                                                                   
  checking for PHP includes... -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt  
  /homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib                                
  checking for PHP extension directory... /opt/homebrew/Cellar/[email protected]/7.4.16/pecl/20190902                                                                                                                        
  checking for PHP installed headers prefix... /opt/homebrew/Cellar/[email protected]/7.4.16/include/php                                                                                                                     
  checking if debug is enabled... no                                                                                                                                                                                     
  checking if zts is enabled... no                                                                                                                                                                                       
  checking for gawk... no                                                                                                                                                                                                
  checking for nawk... no                                                                                                                                                                                                
  checking for awk... awk                                                                                                                                                                                                
  checking if awk is broken... no                                                                                                                                                                                        
  checking whether to enable APCu support... yes, shared                                                                                                                                                                 
  checking if APCu should be allowed to use rwlocks... yes                                                                                                                                                               
  checking if APCu should be built in debug mode... no                                                                                                                                                                   
  checking if APCu should clear on SIGUSR1... no                                                                                                                                                                         
  checking if APCu will use mmap (or shm)... yes                                                                                                                                                                         
  checking if APCu should utilize spinlocks before flocks... no                                                                                                                                                          
  checking whether the target compiler supports builtin atomics... yes                                                                                                                                                   
  checking for pthread rwlocks... yes                                                                                                                                                                                    
  checking for pthread mutexes... yes                                                                                                                                                                                    
  checking for sigaction... yes                                                                                                                                                                                          
  checking for union semun... yes                                                                                                                                                                                        
  checking for stdio.h... yes                                                                                                                                                                                            
  checking for stdlib.h... yes                                                                                                                                                                                           
  checking for string.h... yes                                                                                                                                                                                           
  checking for inttypes.h... yes                                                                                                                                                                                         
  checking for stdint.h... yes                                                                                                                                                                                           
  checking for strings.h... yes                                                                                                                                                                                          
  checking for sys/stat.h... yes                                                                                                                                                                                         
  checking for sys/types.h... yes                                                                                                                                                                                        
  checking for unistd.h... yes                                                                                                                                                                                           
  checking for valgrind/memcheck.h... no                                                                                                                                                                                 
  checking for shm_open in -lrt... no                                                                                                                                                                                    
  checking whether to include code coverage symbols... no                                                                                                                                                                
  checking for a sed that does not truncate output... /usr/bin/sed                                                                                                                                                       
  checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld                                                                                                                                           
  checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no                                                                                                                                
  checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r                                                                                                                        
  checking for BSD-compatible nm... /usr/bin/nm -B                                                                                                                                                                       
  checking whether ln -s works... yes                                                                                                                                                                                    
  checking how to recognize dependent libraries... pass_all                                                                                                                                                              
  checking for dlfcn.h... yes                                                                                                                                                                                            
  checking the maximum length of command line arguments... 786432                                                                                                                                                        
  checking command to parse /usr/bin/nm -B output from cc object... ok                                                                                                                                                   
  checking for objdir... .libs                                                                                                                                                                                           
  checking for ar... ar                                                                                                                                                                                                  
  checking for ranlib... ranlib                                                                                                                                                                                          
  checking for strip... strip                                                                                                                                                                                            
  checking for dsymutil... dsymutil                                                                                                                                                                                      
  checking for nmedit... nmedit                                                                                                                                                                                          
  checking for -single_module linker flag... yes                                                                                                                                                                         
  checking for -exported_symbols_list linker flag... yes                                                                                                                                                                 
  checking if cc supports -fno-rtti -fno-exceptions... yes                                                                                                                                                               
  checking for cc option to produce PIC... -fno-common                                                                                                                                                                   
  checking if cc PIC flag -fno-common works... yes                                                                                                                                                                       
  checking if cc static flag -static works... no                                                                                                                                                                         
  checking if cc supports -c -o file.o... yes                                                                                                                                                                            
  checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes                                                                                                       
  checking dynamic linker characteristics... darwin21.2.0 dyld                                                                                                                                                           
  checking how to hardcode library paths into programs... immediate                                                                                                                                                      
  checking whether stripping libraries is possible... yes                                                                                                                                                                
  checking if libtool supports shared libraries... yes                                                                                                                                                                   
  checking whether to build shared libraries... yes                                                                                                                                                                      
  checking whether to build static libraries... no                                                                                                                                                                       
                                                                                                                                                                                                                         
  creating libtool                                                                                                                                                                                                       
  appending configuration tag "CXX" to libtool                                                                                                                                                                           
  configure: patching config.h.in                                                                                                                                                                                        
  configure: creating ./config.status                                                                                                                                                                                    
  config.status: creating config.h                                                                                                                                                                                       
  running: make                                                                                                                                                                                                          
  /bin/sh /private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/libtool --mode=compile cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear  
  /temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/  
  homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/apcu/apc.c -o apc.lo                                                  
  mkdir .libs                                                                                                                                                                                                            
   cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-hen  
  kvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  
   -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/apcu/apc.c  -fno-common -DPIC -o .libs/apc.o                                                                                                                         
  /bin/sh /private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/libtool --mode=compile cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear  
  /temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/  
  homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/apcu/apc_lock.c -o apc_lock.lo                                        
   cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-hen  
  kvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  
   -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/apcu/apc_lock.c  -fno-common -DPIC -o .libs/apc_lock.o                                                                                                               
  /bin/sh /private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/libtool --mode=compile cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear  
  /temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/  
  homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/apcu/apc_mutex.c -o apc_mutex.lo                                      
   cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-hen  
  kvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  
   -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/apcu/apc_mutex.c  -fno-common -DPIC -o .libs/apc_mutex.o                                                                                                             
  /bin/sh /private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/libtool --mode=compile cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear  
  /temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/  
  homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/apcu/php_apc.c -o php_apc.lo                                          
   cc -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/private/tmp/pear/temp/apcu -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-henkvalkAtDLtZ/apcu-5.1.21/include -I/private/tmp/pear/temp/pear-build-hen  
  kvalkAtDLtZ/apcu-5.1.21/main -I/private/tmp/pear/temp/apcu -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/  
  7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib  
   -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/apcu/php_apc.c  -fno-common -DPIC -o .libs/php_apc.o                                                                                                                 
  In file included from /private/tmp/pear/temp/apcu/php_apc.c:34:                                                                                                                                                        
  In file included from /private/tmp/pear/temp/apcu/apc_iterator.h:26:                                                                                                                                                   
  /opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/pcre/php_pcre.h:25:10: fatal error: 'pcre2.h' file not found                                                                                                 
  #include "pcre2.h"                                                                                                                                                                                                     
           ^~~~~~~~~                                                                                                                                                                                                     
  1 error generated.                                                                                                                                                                                                     
  make: *** [php_apc.lo] Error 1                                                                                                                                                                                         
  ERROR: `make' failed                                                                                                                                                                                                   
                                                                                                                                                                                                                         

How to reproduce this? Update to version 2.3 (because of Apple Silicon M1)

composer global update weprovide/valet-plus  
valet fix
valet install

added following lines to php.ini:

vi /opt/homebrew/etc/valet-php/7.4/php.ini

export LDFLAGS="-L/opt/homebrew/opt/pcre2/lib"
export CPPFLAGS="-I/opt/homebrew/opt/pcre2/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/pcre2/lib/pkgconfig"

run again

valet fix
valet install

What is the solution?

Sources All sources related to the bug. If the bug uses external tools like PHP extensions it should at least contain a link to the tool. Any other media which proves helpful can be included here.

henkvalk avatar Dec 20 '21 10:12 henkvalk

The same issue.  2021-12-20 в 16 59 22

dimasch avatar Dec 20 '21 12:12 dimasch

Also check this suggestion: https://github.com/weprovide/valet-plus/pull/573#issuecomment-953251568.

Tjitse-E avatar Dec 21 '21 08:12 Tjitse-E

Also check this suggestion: #573 (comment).

@Tjitse-E Thank you. After check this sugggestion, i see another error related to the geoip:

valet install --with-mariadb
Password:
[nginx] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[mysql] Stopping
[devtools] Installing tools
	wp-cli already installed, skipping...
	pv already installed, skipping...
	geoip already installed, skipping...
	zlib already installed, skipping...
	jq already installed, skipping...
	libyaml already installed, skipping...
[binaries] Installing binaries
[binaries] magerun not found, installing from: https://files.magerun.net/n98-magerun-1.103.1.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5383k  100 5383k    0     0  3530k      0  0:00:01  0:00:01 --:--:-- 3541k
ARM Mac detected
[binaries] magerun installed to: /opt/homebrew/bin/magerun
[binaries] magerun2 not found, installing from: https://files.magerun.net/n98-magerun2-3.2.0.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5374k  100 5374k    0     0  5137k      0  0:00:01  0:00:01 --:--:-- 5157k
[binaries] magerun2 installed to: /opt/homebrew/bin/magerun2
[binaries] drush not found, installing from: https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   647    0   647    0     0   1520      0 --:--:-- --:--:-- --:--:--  1533
100  303k  100  303k    0     0   274k      0  0:00:01  0:00:01 --:--:-- 1448k
[binaries] drush installed to: /opt/homebrew/bin/drush
ARM Mac detected
[BREW TAP] henkrehorst/php already installed
ARM Mac detected
[PECL] Updating PECL channel: pecl.php.net
[PECL] Installing extensions
	apcu successfully installed
	apcu is already enabled, skipping...

In Pecl.php line 167:

  Could not find installation path for: geoip

  downloading geoip-1.1.1.tgz ...
  Starting to download geoip-1.1.1.tgz (13,004 bytes)
  .....done: 13,004 bytes
  5 source files, building
  running: phpize
  Configuring for:
  PHP Api Version:         20180731
  Zend Module Api No:      20180731
  Zend Extension Api No:   320180731
  configure.ac:7: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
  aclocal.m4:2705: PHP_CONFIG_NICE is expanded from...
  configure.ac:7: the top level
  configure.ac:149: warning: The macro `AC_LANG_C' is obsolete.
  configure.ac:149: You should run autoupdate.
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
  aclocal.m4:6063: _LT_AC_LANG_C_CONFIG is expanded from...
  aclocal.m4:6062: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: The macro `AC_LANG_C' is obsolete.
  configure.ac:149: You should run autoupdate.
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
  aclocal.m4:3897: _LT_AC_LOCK is expanded from...
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6063: _LT_AC_LANG_C_CONFIG is expanded from...
  aclocal.m4:6062: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: The macro `AC_TRY_LINK' is obsolete.
  configure.ac:149: You should run autoupdate.
  ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
  aclocal.m4:3897: _LT_AC_LOCK is expanded from...
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6063: _LT_AC_LANG_C_CONFIG is expanded from...
  aclocal.m4:6062: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6063: _LT_AC_LANG_C_CONFIG is expanded from...
  aclocal.m4:6062: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6063: _LT_AC_LANG_C_CONFIG is expanded from...
  aclocal.m4:6062: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
  configure.ac:149: You should run autoupdate.
  ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
  aclocal.m4:6145: _LT_AC_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:6144: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6145: _LT_AC_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:6144: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  configure.ac:149: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
  aclocal.m4:4520: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
  aclocal.m4:6145: _LT_AC_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:6144: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
  aclocal.m4:5253: _LT_AC_TAGCONFIG is expanded from...
  aclocal.m4:3406: AC_LIBTOOL_SETUP is expanded from...
  aclocal.m4:3388: _AC_PROG_LIBTOOL is expanded from...
  aclocal.m4:3375: AC_PROG_LIBTOOL is expanded from...
  configure.ac:149: the top level
  building in /private/tmp/pear/temp/pear-build-dimaXXDssY/geoip-1.1.1
  running: /private/tmp/pear/temp/geoip/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for a sed that does not truncate output... /usr/bin/sed
  checking for cc... cc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether the compiler supports GNU C... yes
  checking whether cc accepts -g... yes
  checking for cc option to enable C11 features... none needed
  checking how to run the C preprocessor... cc -E
  checking for icc... no
  checking for suncc... no
  checking whether cc understands -c and -o together... yes
  checking for system library directory... lib
  checking if compiler supports -R... no
  checking if compiler supports -Wl,-rpath,... yes
  checking build system type... arm-apple-darwin21.1.0
  checking host system type... arm-apple-darwin21.1.0
  checking target system type... arm-apple-darwin21.1.0
  checking for PHP prefix... /opt/homebrew/Cellar/[email protected]/7.3.27_2
  checking for PHP includes... -I/opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php -I/opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/TSRM -I/op
  t/homebrew/Cellar/[email protected]/7.3.27_2/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/ext/date/lib
  checking for PHP extension directory... /opt/homebrew/Cellar/[email protected]/7.3.27_2/pecl/20180731
  checking for PHP installed headers prefix... /opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php
  checking if debug is enabled... no
  checking if zts is enabled... no
  checking for re2c... no
  configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  checking for gawk... no
  checking for nawk... no
  checking for awk... awk
  checking if awk is broken... no
  checking for geoip support... yes, shared
  checking for geoip files in default path... not found
  configure: error: Please reinstall the geoip distribution
  ERROR: `/private/tmp/pear/temp/geoip/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config' failed


install [--with-mariadb] [--with-mysql-8]

dimasch avatar Dec 21 '21 10:12 dimasch

Same for me:

What I did:

brew install pcre2

#add pcre2 to profile
echo 'export LDFLAGS="-L/opt/homebrew/opt/pcre2/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/pcre2/include"' >> ~/.zshrc
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/pcre2/lib/pkgconfig"' >> ~/.zshrc

#create symlink
ln -s /opt/homebrew/include/pcre2.h /opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/ext/pcre/pcre2.h

The error shows that there is a problem with installing pecl install geoip. In https://github.com/weprovide/valet-plus/issues/507#issue-651013121 there would be said that GEO IP is removed from install... Is this not in 2.3?

henkvalk avatar Dec 21 '21 16:12 henkvalk

on PHP 7.4 i did:

pecl install apcu

that installs correctly the apcu extension. After running: valet fix && valet install --with-mysql-8 the next fail is geoip

do I need to add the geoip package also to this folder and add it to php.ini file?

ls -lah /opt/homebrew/Cellar/[email protected]/7.4.16/pecl/20190902
total 232
drwxr-xr-x  3 henkvalk  admin    96B 22 dec 20:33 .
drwxr-xr-x  5 henkvalk  admin   160B 21 dec 17:13 ..
-rw-r--r--  1 henkvalk  admin   115K 22 dec 20:33 apcu.so

locate geoip   
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/libgeoip
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/geoip.rb
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/geoipupdate.rb

Below the error

valet fix && valet install --with-mysql-8
Password:
Check Valet+ PHP version...
Run valet fix with the --reinstall option to trigger a full reinstall of the default PHP version.
ARM Mac detected
Please check your linked php version, you might need to restart your terminal!
Linked PHP should be php 7.4:
PHP 7.4.16 (cli) (built: Dec 22 2021 19:10:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies

[PECL] Checking pear config...
Checking php 5.6...
ARM Mac detected
    Skipping 5.6, Pear config path could not be found at: /opt/homebrew/etc/valet-php/5.6/pear.conf
Checking php 7.0...
    Skipping 7.0, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.0/pear.conf
Checking php 7.1...
    Skipping 7.1, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.1/pear.conf
Checking php 7.2...
    Skipping 7.2, Pear config path could not be found at: /opt/homebrew/etc/valet-php/7.2/pear.conf
Checking php 7.3...
Checking php 7.4...
Checking php 8.0...
    Skipping 8.0, Pear config path could not be found at: /opt/homebrew/etc/valet-php/8.0/pear.conf
[nginx] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[mysql] Stopping
[devtools] Installing tools
	wp-cli already installed, skipping...
	pv already installed, skipping...
	geoip already installed, skipping...
	zlib already installed, skipping...
	jq already installed, skipping...
	libyaml already installed, skipping...
[binaries] Installing binaries
[binaries] magerun not found, installing from: https://files.magerun.net/n98-magerun-1.103.1.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5383k  100 5383k    0     0  8349k      0 --:--:-- --:--:-- --:--:-- 8397k
ARM Mac detected
[binaries] magerun installed to: /opt/homebrew/bin/magerun
[binaries] magerun2 not found, installing from: https://files.magerun.net/n98-magerun2-3.2.0.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5374k  100 5374k    0     0  13.7M      0 --:--:-- --:--:-- --:--:-- 13.8M
[binaries] magerun2 installed to: /opt/homebrew/bin/magerun2
[binaries] drush not found, installing from: https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   647  100   647    0     0   2184      0 --:--:-- --:--:-- --:--:--  2208
100  303k  100  303k    0     0   466k      0 --:--:-- --:--:-- --:--:-- 5839k
[binaries] drush installed to: /opt/homebrew/bin/drush
ARM Mac detected
[BREW TAP] henkrehorst/php already installed
ARM Mac detected
[PECL] Updating PECL channel: pecl.php.net
[PECL] Installing extensions
	apcu is already installed, skipping...
	apcu is already enabled, skipping...

In Pecl.php line 167:
                                                                                                                                                                                                                                                    
  Could not find installation path for: geoip                                                                                                                                                                                                       
                                                                                                                                                                                                                                                    
  downloading geoip-1.1.1.tgz ...                                                                                                                                                                                                                   
  Starting to download geoip-1.1.1.tgz (13,004 bytes)                                                                                                                                                                                               
  .....done: 13,004 bytes                                                                                                                                                                                                                           
  5 source files, building                                                                                                                                                                                                                          
  running: phpize                                                                                                                                                                                                                                   
  Configuring for:                                                                                                                                                                                                                                  
  PHP Api Version:         20190902                                                                                                                                                                                                                 
  Zend Module Api No:      20190902                                                                                                                                                                                                                 
  Zend Extension Api No:   320190902                                                                                                                                                                                                                
  configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead                                                                                                                                                                  
  build/php.m4:2110: PHP_CONFIG_NICE is expanded from...                                                                                                                                                                                            
  configure.ac:18: the top level                                                                                                                                                                                                                    
  configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.                                                                                                                                                                                     
  configure.ac:161: You should run autoupdate.                                                                                                                                                                                                      
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...                                                                                                                                                                                             
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                                                   
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                                               
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.                                                                                                                                                                                     
  configure.ac:161: You should run autoupdate.                                                                                                                                                                                                      
  ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...                                                                                                                                                                                             
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...                                                                                                                                                                                          
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...                                                                                                                                                                                                
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...                                                                                                                                                                                  
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...                                                                                                                                                                                
  build/libtool.m4:561: _LT_AC_LOCK is expanded from...                                                                                                                                                                                             
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                                                   
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                                               
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.                                                                                                                                                                                   
  configure.ac:161: You should run autoupdate.                                                                                                                                                                                                      
  ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...                                                                                                                                                                                   
  lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...                                                                                                                                                                                          
  lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...                                                                                                                                                                                                
  ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...                                                                                                                                                                                  
  ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...                                                                                                                                                                                
  build/libtool.m4:561: _LT_AC_LOCK is expanded from...                                                                                                                                                                                             
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                                                   
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                                               
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                              
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                                                   
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                                               
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                                                   
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2727: _LT_AC_LANG_C_CONFIG is expanded from...                                                                                                                                                                                   
  build/libtool.m4:2726: AC_LIBTOOL_LANG_C_CONFIG is expanded from...                                                                                                                                                                               
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist                                                                                       
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist                                                                                                            
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script                                                                  
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script                                                                                       
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'                                                                              
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'                                                                                                   
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists                                                                                                                             
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.                                                                                                                                                                             
  configure.ac:161: You should run autoupdate.                                                                                                                                                                                                      
  ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...                                                                                                                                                                                    
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                                 
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                             
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                              
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                                 
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                             
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe                                                                                   
  build/libtool.m4:1184: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...                                                                                                                                                                         
  build/libtool.m4:2809: _LT_AC_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                                 
  build/libtool.m4:2808: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...                                                                                                                                                                             
  build/libtool.m4:1917: _LT_AC_TAGCONFIG is expanded from...                                                                                                                                                                                       
  build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...                                                                                                                                                                                         
  build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                         
  build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...                                                                                                                                                                                          
  configure.ac:161: the top level                                                                                                                                                                                                                   
  building in /private/tmp/pear/temp/pear-build-henkvalkuNaBMA/geoip-1.1.1                                                                                                                                                                          
  running: /private/tmp/pear/temp/geoip/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config                                                                                                                                  
  checking for grep that handles long lines and -e... /usr/bin/grep                                                                                                                                                                                 
  checking for egrep... /usr/bin/grep -E                                                                                                                                                                                                            
  checking for a sed that does not truncate output... /usr/bin/sed                                                                                                                                                                                  
  checking for pkg-config... /opt/homebrew/bin/pkg-config                                                                                                                                                                                           
  checking pkg-config is at least version 0.9.0... yes                                                                                                                                                                                              
  checking for cc... cc                                                                                                                                                                                                                             
  checking whether the C compiler works... yes                                                                                                                                                                                                      
  checking for C compiler default output file name... a.out                                                                                                                                                                                         
  checking for suffix of executables...                                                                                                                                                                                                             
  checking whether we are cross compiling... no                                                                                                                                                                                                     
  checking for suffix of object files... o                                                                                                                                                                                                          
  checking whether the compiler supports GNU C... yes                                                                                                                                                                                               
  checking whether cc accepts -g... yes                                                                                                                                                                                                             
  checking for cc option to enable C11 features... none needed                                                                                                                                                                                      
  checking how to run the C preprocessor... cc -E                                                                                                                                                                                                   
  checking for icc... no                                                                                                                                                                                                                            
  checking for suncc... no                                                                                                                                                                                                                          
  checking for system library directory... lib                                                                                                                                                                                                      
  checking if compiler supports -R... no                                                                                                                                                                                                            
  checking if compiler supports -Wl,-rpath,... yes                                                                                                                                                                                                  
  checking build system type... arm-apple-darwin21.2.0                                                                                                                                                                                              
  checking host system type... arm-apple-darwin21.2.0                                                                                                                                                                                               
  checking target system type... arm-apple-darwin21.2.0                                                                                                                                                                                             
  checking for PHP prefix... /opt/homebrew/Cellar/[email protected]/7.4.16                                                                                                                                                                              
  checking for PHP includes... -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/main -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/TSRM -I/opt/homebrew/Cellar/valet-php@  
  7.4/7.4.16/include/php/Zend -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext -I/opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/date/lib                                                                                      
  checking for PHP extension directory... /opt/homebrew/Cellar/[email protected]/7.4.16/pecl/20190902                                                                                                                                                   
  checking for PHP installed headers prefix... /opt/homebrew/Cellar/[email protected]/7.4.16/include/php                                                                                                                                                
  checking if debug is enabled... no                                                                                                                                                                                                                
  checking if zts is enabled... no                                                                                                                                                                                                                  
  checking for gawk... no                                                                                                                                                                                                                           
  checking for nawk... no                                                                                                                                                                                                                           
  checking for awk... awk                                                                                                                                                                                                                           
  checking if awk is broken... no                                                                                                                                                                                                                   
  checking for geoip support... yes, shared                                                                                                                                                                                                         
  checking for geoip files in default path... not found                                                                                                                                                                                             
  configure: error: Please reinstall the geoip distribution                                                                                                                                                                                         
  ERROR: `/private/tmp/pear/temp/geoip/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config' failed                  

henkvalk avatar Dec 22 '21 20:12 henkvalk

ERROR: `/private/tmp/pear/temp/geoip/configure --with-php-config=/opt/homebrew/opt/[email protected]/bin/php-config' failed

The same for me.

dimasch avatar Dec 23 '21 07:12 dimasch

I've disabled Geoip locally by setting these values to 'false' https://github.com/weprovide/valet-plus/blob/2.x/cli/Valet/Pecl.php#L65-L70.

Tjitse-E avatar Dec 23 '21 08:12 Tjitse-E

Summary by use php 7.3:

  1. ln -s /opt/homebrew/include/pcre2.h /opt/homebrew/Cellar/[email protected]/7.3.27_2/include/php/ext/pcre/pcre2.h

  2. nano ~/.composer/vendor/weprovide/valet-plus/cli/Valet/Pecl.php Disable Geoip by setting these values to 'false' https://github.com/weprovide/valet-plus/blob/2.x/cli/Valet/Pecl.php#L65-L70.

[PECL-CUSTOM] Installing extensions
[[email protected]] Restarting
[dnsmasq] Installing
ARM Mac detected
[dnsmasq] Restarting
ARM Mac detected
[mariadb] Installing
[mariadb] Stopping
[mariadb] Configuring
[mariadb] Restarting
[redis] Installing
ARM Mac detected
[redis] Restarting
[mailhog] Installing
[mailhog] Restarting
ARM Mac detected
[nginx] Restarting
Setting mysql password for root user failed.
ARM Mac detected
ARM Mac detected

Valet installed successfully!

dimasch avatar Dec 23 '21 08:12 dimasch

vi ~/.composer/vendor/weprovide/valet-plus/cli/Valet/Pecl.php

set the php versions you use to false

        self::GEOIP_EXTENSION => [
            '8.0' => false, //todo; will probably be 1.1.2
            '7.4' => false, // set to false till geoip is fixed '1.1.1',
            '7.3' => false, // set to false til geoip is fixed '1.1.1',
            '7.2' => '1.1.1',
            '7.1' => '1.1.1',
            '7.0' => '1.1.1',
            'extension_type' => self::NORMAL_EXTENSION_TYPE,
            'brew_dependency' => 'geoip'
        ],

valet fix && valet install --with-mysql-8

it is fixed

henkvalk avatar Dec 23 '21 11:12 henkvalk

Workaround for the php 7.4:

ln -s /opt/homebrew/Cellar/pcre2/10.39/include/pcre2.h /opt/homebrew/Cellar/[email protected]/7.4.16/include/php/ext/pcre/pcre2.h

dimasch avatar Dec 25 '21 20:12 dimasch

Fix for installing GeoIP for php 7.4

It's required to provide include and lib from the package (it's looking in /usr/local /usr /sw /opt/local). In this example I'll use /usr/local

# by default directory doesn't exists in OSX 12.2.1
sudo mkdir /usr/local/include
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/include/GeoIP.h /usr/local/include/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/include/GeoIPCity.h /usr/local/include/.

# by default directory doesn't exists in OSX 12.2.1
sudo mkdir /usr/local/lib
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.1.dylib /usr/local/lib/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.a /usr/local/lib/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.dylib /usr/local/lib/.

Please remember to use your version of the GeoIP.

kajetan-nobel avatar Mar 02 '22 15:03 kajetan-nobel

Fix for installing GeoIP for php 7.4

It's required to provide include and lib from the package (it's looking in /usr/local /usr /sw /opt/local). In this example I'll use /usr/local

# by default directory doesn't exists in OSX 12.2.1
sudo mkdir /usr/local/include
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/include/GeoIP.h /usr/local/include/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/include/GeoIPCity.h /usr/local/include/.

# by default directory doesn't exists in OSX 12.2.1
sudo mkdir /usr/local/lib
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.1.dylib /usr/local/lib/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.a /usr/local/lib/.
sudo ln -s /opt/homebrew/Cellar/geoip/1.6.12/lib/libGeoIP.dylib /usr/local/lib/.

Please remember to use your version of the GeoIP.

Thanks this fixed it for me.

dafen avatar Apr 20 '22 19:04 dafen

Still not working

nkb-bd avatar Sep 23 '22 09:09 nkb-bd

PECL dependencies are deprecated in Valet+ 2.4-beta releases and will be removed in Valet+ 3.

mischabraam avatar Jul 18 '23 08:07 mischabraam