Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to use PHPIZE after update to MacOS Mojave

What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools.

grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version:         Zend Module Api No:      Zend Extension Api No: 
like image 771
delphirules Avatar asked Oct 01 '18 13:10

delphirules


People also ask

Why can't I install updates in the Mac App Store after Mojave?

My issue was: unable to see, or install updates in the Mac app store after Mojave upgrade. Solution: Use an uninstaller app such as AppDelete, iTrash, or AppCleaner. Drag the App Store icon from applications to said app (a good option put an alias to the uninstall app on the desktop.)

How to fix macOS Mojave won’t open issue?

Start your Mac in Recovery Mode. To enter Recovery Mode on Mojave, Click Apple logo > Restart. Right after that, hold down Command + R buttons while your Mac is restarting. While in Recovery Mode, you’ll be able to run Disk Utility to check your disk for consistency. Disable your antivirus software if you have any installed.

Why can’t I run 64-bit apps on macOS Mojave?

The main problem here is the 32-bit/62-bit distinction. Apple stated that macOS High Sierra is the last operating system to support 32-bit optimized applications. From then on, if an app isn’t updated for 64-bit architecture, you won’t be able to use it on Mojave.

How to install macOS Mojave on Mac easily?

Click Smart Scan. Remove hidden junk from all the suggested folders. Now your Mac is ready to install macOS Mojave on top of your current OS. What’s left is to prepare the data backup in case something goes wrong. Step 2. Back up your Mac Connect the external drive and launch Time Machine. Switch Time Machine to “On” position.


Video Answer


1 Answers

Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide.

Running the following command will reinstall the developer tools header files and should fix the issue.

$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / 
like image 173
donatJ Avatar answered Oct 12 '22 12:10

donatJ