I am using GNU Emacs 26.1
on macOS Catalina.
When I try to enable ispell
or flycheck-mode
I am getting following error:
No word lists can be found for the language "en_US".
=> How could I fix this error?
asked Nov 20, 2019 at 13:40
Package aspell comes with Debian 11, but evidently lacks dictionaries.
sudo apt-get install aspell-en
Installs the English spelling dictionary for aspell.
answered Sep 4, 2021 at 21:08
PaulPaul
1738 bronze badges
Installing aspell
fixed my problem.
brew install aspell
answered Nov 20, 2019 at 13:47
alperalper
1,1129 silver badges28 bronze badges
I faced the same problem on Fedora 34.
sudo dnf install aspell-en
fixed my problem.
answered Jan 31, 2022 at 23:52
AnilJAnilJ
234 bronze badges
Manjaro 21 also lacks dictionaries.
sudo pacman -S aspell-en
fix the problem.
answered May 16, 2022 at 12:23
linux
Midnight Commander or mc is perhaps the filemanager I use since my first contact with computer science from late 80’s.
So in Centos you may face above message, although pressing enter you can continue normally, but it’s a bit annoying. The problem comes from a missing package, that is aspell.
So, installing aspell package the message will stop appearing.
yum install aspell-en
I am trying to use aspell
to spell check a PDF file; I run the command:
aspell -c file.pdf
but I get the error:
Errore: No word lists can be found for the language «it_IT».
My file is written in english: how can I tell this to aspell
?
Ravexina♦
53.5k24 gold badges154 silver badges176 bronze badges
asked Aug 2, 2019 at 7:20
Use --lang
flag:
aspell --lang=en_US -c file.pdf
or:
LANG=en_US aspell -c file.pdf
From man aspell
:
--lang=<string>, -l <string>
Language to use. It follows the same format of the LANG environmental variable on most systems. It consists of the two letter ISO 639 language code
and an optional two letter ISO 3166 country code after a dash or underscore. The default value is based on the value of the LC_MESSAGES locale.
Kulfy
17.2k26 gold badges63 silver badges102 bronze badges
answered Aug 2, 2019 at 7:31
Ravexina♦Ravexina
53.5k24 gold badges154 silver badges176 bronze badges
Перейти к содержимому
При запуске Git Gui на Ubuntu 16.04, пользователь может получить следующую ошибку:
Проверка правописания не доступна: No word lists can be found for the language «ru_Ru»
Есть два способа ее устранения.
- Установить пакет Aspell.
sudo apt install aspell-ru
- Настроить проверку правописания через меню «Редактировать -> Настройки…».
Автор
Bug reports:
Summary:
I used the command brew install aspell --with-lang-en
to install aspell
with english dictionary. This command executed successfully, but there is no english dictionary installed.
install logs:
brew install aspell --with-lang-en
==> Downloading https://ftpmirror.gnu.org/aspell/aspell-0.60.6.1.tar.gz
Already downloaded: /Users/xuanxiang/Library/Caches/Homebrew/aspell-0.60.6.1.tar.gz
==> Patching
patching file interfaces/cc/aspell.h
==> ./configure --prefix=/usr/local/Cellar/aspell/0.60.6.1
==> make install
==> Downloading https://ftpmirror.gnu.org/aspell/dict/en/aspell6-en-2015.02.15-0.tar.bz2
Already downloaded: /Users/xuanxiang/Library/Caches/Homebrew/aspell--en-0.tar.bz2
==> ./configure --vars ASPELL=/usr/local/Cellar/aspell/0.60.6.1/bin/aspell PREZIP=/usr/local/Cellar/aspell/0.60.6.1/bin/prezip
==> make install
🍺 /usr/local/Cellar/aspell/0.60.6.1: 183 files, 6M, built in 35 seconds
dump dicts
There is no output when I run aspell dump dicts
check spell
aspell --lang=english -c 1.txt
Error: No word lists can be found for the language "english".
I have it built with --with-lang-en
too, and for aspell dump dicts
I get:
en
en-variant_0
en-variant_1
en-variant_2
en-w_accents
en-wo_accents
en_CA
en_CA-variant_0
en_CA-variant_1
en_CA-w_accents
en_CA-wo_accents
en_GB
en_GB-ise
en_GB-ise-w_accents
en_GB-ise-wo_accents
en_GB-ize
en_GB-ize-w_accents
en_GB-ize-wo_accents
en_GB-variant_0
en_GB-variant_1
en_GB-w_accents
en_GB-wo_accents
en_US
en_US-variant_0
en_US-variant_1
en_US-w_accents
en_US-wo_accents
I get the same output as you for aspell --lang=english -c 1.txt
, but aspell --lang=en -c 1.txt
works.
What do brew config
and brew doctor
say?
brew config
$ brew config
HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: fc85a6fab67df7b4412d6910ef7a1f6ff1299531
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a9df643ca5f5f2365f3d20ea6e0046bfa1152485
Core tap last commit: 22 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Clang: 6.0 build 600
Git: 2.2.0 => /opt/local/bin/git
Perl: /opt/local/bin/perl => /opt/local/bin/perl5.16
Python: /usr/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_45, 1.6.0_65-b14-462
System Ruby: 2.0.0-p481
OS X: 10.9.5-x86_64
Xcode: 6.1.1
CLT: 6.2.0.0.1.1424975374
X11: 2.7.7 => /opt/X11
MacPorts/Fink: /opt/local/bin/port
I only paste the warnings of brew doctor
brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
Warning: Your XQuartz (2.7.7) is outdated
Please install XQuartz 2.7.9:
https://xquartz.macosforge.org
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libcdt.5.dylib
/usr/local/lib/libcgraph.6.dylib
/usr/local/lib/libgvc.6.dylib
/usr/local/lib/libgvpr.2.dylib
/usr/local/lib/libpathplan.4.dylib
/usr/local/lib/libxdot.4.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/libcdt.pc
/usr/local/lib/pkgconfig/libcgraph.pc
/usr/local/lib/pkgconfig/libgvc.pc
/usr/local/lib/pkgconfig/libgvpr.pc
/usr/local/lib/pkgconfig/libpathplan.pc
/usr/local/lib/pkgconfig/libxdot.pc
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/usr/local/go/bin/
/usr/local/go/bin/
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
2to3
2to3-2.7
easy_install
easy_install-2.7
emacs
emacsclient
etags
idle
idle2.7
pydoc
pydoc2.7
python
python-config
python2.7
python2.7-config
pythonw
pythonw2.7
smtpd.py
smtpd2.7.py
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
/opt/local/bin/pkg-config
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
Warning: Your Xcode (6.1.1) is outdated
Please update to Xcode 6.2.
Xcode can be updated from the App Store.
Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.
Is it possible you also have MacPorts’ aspell? I’d take care of this first:
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Try to fix some of the other warnings too, like Xcode and brew update
, then try reinstalling aspell.
Yeah, port installed
output aspell is installed. I uninstalled MacPorts. and reinstalled aspell via Homebrew, then it worked. Thank you!
Homebrew
locked and limited conversation to collaborators
May 4, 2018