I use MAMP for local php development and recently needed to use php's pspell functions for a project. I found little help with this specific scenario (short of recompiling php, yuck) so this post explains how I got it done.
How to Install pspell with MAMP
821 Views Asked by Marty Mulligan At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in MAMP
- Cannot edit functions.php and any of the website pages anymore on localhost
- MAMP not showing my Duplicator Pro downloaded WordPress website locally
- Trouble Integrating MySQL 8.0 with MAMP for Joomla 5 on an Older iMac
- Php 8.2 curl extension not working windows + mamp
- I want to install php 7.2.34 in MAMP but the version available in MAMP is php8. I tried copying the files from the brew install
- Support AVIF in MAMP
- How can I install Python Packages to MAMP Python installation or get MAMP to use a local installation or virtual environment?
- Problems with MAMP and MacOS Sonoma
- How to upload csv file onto MySQL database using PHP and MySQL
- localhost can't find file even though it exists (HTTP ERROR 500), MAMP server
- Cannot access public folder via Url - Laravel 10 / Apache
- Install extensions mongodb in php 7.4 failed with error symbol not found in flat namespace (_ZSTD_compress)
- How do I connect Selenium to localhost?
- 500 Server Error when starting local server with MAMP
- MAMP and PHP new versions
Related Questions in ASPELL
- aspell (mac homebrew) runs, but cannot spellcheck because of missing(?) cset file
- How to use aspell with neovim?
- Enchant doesn't seem to be reading `enchant.ordering`
- Check spelling of words containing a period (dot) character on the command line
- commandline with tex modifier not striping tabular config
- Aspell - special characters in a custom dictionary
- How to use Perl's Text::Aspell to spellcheck a text?
- Makefile for checking spelling
- Call to undefined function pspell_new() on widows & php 8
- Perl interface with Aspell
- Where can I get ispell dictionaries for PostgreSQL?
- Homebrew aspell directory not writable
- Emacs - Kieran Healy's Emacs Starter Kit aspell English dictionery
- How to spell check all files of a given type using emacs
- adding many dictionaries to aspell
Related Questions in PSPELL
- How can I install the Pspell functions in XAMPP (Windwos/PHP 8)?
- PSPELL couldn't open the dictionary
- Error on circleci deployment on pspell debian
- How to change a string's case based on another string?
- Pspell don't work
- Convert American words to British equivalent
- pspell source install with source installed php5.6
- PHP pspell_check returns always FALSE
- Where are the aspell libraries located on the server? How can I check for them?
- How can I test pspell?
- Extract valid words from a text file PHP
- How to Install pspell with MAMP
- Using pspell to determine if a word is a noun or not
- pspell returns question marks(�)
- php pspell for pt_BR does not work
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not positive but you may need xcode and xcode command line tools installed for this to work. This article might be helpful.
Install MacPorts if you don't have it already
Install aspell and the dictionary of your choice (I used "en"):
sudo port install aspell aspell-dict-en
note: for the next commands, you need to know the version of php you're running on MAMP. You can find this in the MAMP preferences under the PHP tab. For me it's 5.5.18
Download the php source for the version of php you are running, unarchive it, and move into the pspell source directory:
cd ~/Downloads/php-5.5.18/ext/pspell
Now (being sure to use the proper phpize binary for your php version) do:
/Applications/MAMP/bin/php/php5.5.18/bin/phpize
You should see something like:
Next:
./configure --with-php-config=/Applications/MAMP/bin/php/php5.5.18/bin/php-config --with-pspell=/opt/local/
And finally, build the module file:
You should now have two files inside the ./modules/ directory: aspell.so and aspell.la - copy them into your php's extensions directory:
cp ./modules/* /Applications/MAMP/bin/php/php5.5.18/lib/php/extensions/no-debug-non-zts-20121212
Now add the extension to your configuration file in /Applications/MAMP/bin/php/php5.5.18/conf/php.ini
extension=pspell.so
Finally, restart your MAMP servers and (hopefully) you are good to go!