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
- Adding to MAMP database in SQL/PHP
- PHP won't appear in my local host
- How to set allow_url_include On in MAMP mac OSX?
- PECL installed gnupg calls return null
- how to set php-rewrite on mamp?
- php extension not loading in MAMP
- PHP gnupg 'import failed'
- MAMP PRO localhost waiting and waiting
- Installing Pear's PHP CodeSniffer in MAMP
- How can I recover MediaWiki pages from an old MAMP install?
- MAMP on Yosemite - connection error : SQLSTATE[HY000] [2002] No such file or directory
- MAMP Not Updating localhost and saying 'It works'
- Mysql - unknown variable 'table_cache=64'
- Configure socket.io on MAMP localhost
- How to check that the audio files in a directory match the file names stored in a database
Related Questions in ASPELL
- pspell returns question marks(�)
- Using Pyenchant on AWS Lambda, can load package but not provider dictionaries, have compiled from source on EC2 and extracted .so files
- Emacs what is the file structure of aspell personal dictionary
- Use aspell in emacs for editing HTML pages
- Spell checking - Ignore set of words
- Installing Aspell on Windows using emacs
- What's a Good package for Phonetic Representation for Various Human Languages?
- Clever way to use aspell to auto correct passage?
- Using Aspell Library in java
- List of words containing a string in a given language
- Aspel dictionaries for Jazzy libraires in Java
- Aspell not returning misspelled words when using sgml mode with an extra dictionary
- Check spelling of words containing a period (dot) character on the command line
- Emacs - Kieran Healy's Emacs Starter Kit aspell English dictionery
- Homebrew aspell directory not writable
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!