-
As per the title: I updated brew and got the following after restarting Emacs:
Enchant version: @(#) International Ispell Version 3.1.20 (but really Enchant 2.6.2) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I forgot to add: |
Beta Was this translation helpful? Give feedback.
-
I am not a Mac/Brew user, but I think you are missing pkgconf or pkg-config, such that Enchant is not detected properly. |
Beta Was this translation helpful? Give feedback.
-
I finally had time to go back and check it out. Here's the problem printed from when I tried it in terminal instead of when Emacs tries to do it:
Now, you'll notice it's trying to find I'm hoping this all makes sense. I'm not certain what else I should do. Please let me know if there is anything else I can give to you for information. Also, I reinstalled png-config and it did not help. Just letting you know. I'm thinking the path is incorrect in the Emacs package somehow for where to search, but I'm unsure. |
Beta Was this translation helpful? Give feedback.
-
I got it to work. Here was the issue and here is the solution:
You will also want your PATHS correctly done in your .zshrc or your .bashrc. Here are mine:
After you have added that to your .zshrc/.bashrc/whateverfishuses/anyotherkindofshell, you will want to:
This will reload the paths. Do that before running the As you can see, the version number is included in the directory structure. So, for anyone who is searching why Jinx isn't working after updating brew, the solution is to find the equivalent of those directories (the number 2.6.2 will be different), and run that line. It will work. The full structure is there to facilitate those looking for a solution whom, like me, are not adept at code. I hope this helps others in the future. |
Beta Was this translation helpful? Give feedback.
I got it to work. Here was the issue and here is the solution:
Jinx relies on Enchant, and Enchant was updated. Brew installs directories with a hierarchy which includes the latest version number, which throws off the installer. Here was the solution to the problem:
gcc -I. -I/opt/homebrew/Cellar/enchant/2.6.2/include/enchant-2 -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.dylib jinx-mod.c /opt/homebrew/Cellar/enchant/2.6.2/lib/libenchant-2.dylib
You will also want your PATHS correctly done in your .zshrc or your .bashrc. Here are mine: