Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Install Hunspell Language Dictionary (Read 2724 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] Install Hunspell Language Dictionary

I'm trying to install:
hunspell-en or hunspell-us(if not -en?)
hunspell-ar

But I get
Code: [Select]
lenovo:[limo]:~$ sudo pacman -S  hunspell-ar
error: could not register 'system' database (database already registered)
error: target not found: hunspell-ar
lenovo:[limo]:~$ sudo pacman -S  hunspell-en
error: could not register 'system' database (database already registered)
error: target not found: hunspell-en
lenovo:[limo]:~$ sudo pacman -S  hunspell-us
error: could not register 'system' database (database already registered)
error: target not found: hunspell-us

By the way what is
Code: [Select]
error: could not register 'system' database (database already registered)
and how to sort it out.

My previous experience, hunspell-ar was much better than aspell-ar.
I already installed hunspell  and gtkspell.
Code: [Select]
sudo pacman -S  hunspell
and
Code: [Select]
 sudo pacman -S  gtkspell

Thanks for your support.
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

 

Re: Install Hunspell Language Dictionary

Reply #1
Quote
By the way what is
Code: [Select]
error: could not register 'system' database (database already registered)and how to sort it out.
Can you provide your /etc/pacman.conf ?
I guess you might have multiple entries for system there, but it is just guess.

Quote
lenovo:[limo]:~$ sudo pacman -S  hunspell-en
English has more dictionaries to select from. So run the search.
Code: [Select]
pacman -Ss hunspell-en

hunspell-ar, I managed to find it only in the AUR
Code: [Select]
aur/hunspell-ar 3.5-2 [12+] [0.00%] [5 Jan 2020]
    Arabic dictionary for hunspell

Re: Install Hunspell Language Dictionary

Reply #2
Can you provide your /etc/pacman.conf ?
I guess you might have multiple entries for system there, but it is just guess.
English has more dictionaries to select from. So run the search.
Code: [Select]
pacman -Ss hunspell-en

hunspell-ar, I managed to find it only in the AUR
Code: [Select]
aur/hunspell-ar 3.5-2 [12+] [0.00%] [5 Jan 2020]
    Arabic dictionary for hunspell
Thanks a lot SGOrava
I checked /etc/pacman.conf and actually found a duplicate and fixed now.
I already installed hunspell-en_us.

But how to install hunspell-ar from AUR? Same for "gtkspellcheck"
P.S. I just to feel safe I installed pamac and enabled AUR, but when I tried to install hunspell-ar I get
Code: [Select]
Building hunspell-ar...
==> ERROR: Cannot find the fakeroot binary.

What to do to "find fakeroot" or  better install hunspell-ar from command line?
P.S. what are these numbers in
Code: [Select]
aur/hunspell-ar 3.5-2 [12+] [0.00%] [5 Jan 2020]
    Arabic dictionary for hunspell
Just curious and want to learn more Artix.
P.P.S. Why hunspell-ar is in AUR not in main repos like others?
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS


Re: Install Hunspell Language Dictionary

Reply #4
Thank you
Code: [Select]
sudo pacman -S base-devel
went fine and installed, then rebooted (just in case).

But
Code: [Select]
lenovo:[limo]:~$ sudo pacman -Ss hunspell-ar
lenovo:[limo]:~$ sudo pacman -S hunspell-ar
error: target not found: hunspell-ar
lenovo:[limo]:~$
Nothing happens!

I think I would install "yay". Right?
UPDATE: installing yay as shown https://www.tecmint.com/install-yay-aur-helper-in-arch-linux-and-manjaro/

I believe "yay" installed. I don't know why it is giving me hard time this time! I did all this before!
Code: [Select]
lenovo:[limo]:~$ sudo yay -S gtkspellcheck
 -> Avoid running yay as root/sudo.
 -> Could not find all required packages:
        gtkspellcheck (Target)
lenovo:[limo]:~$ sudo yay -S hunspell-ar
 -> Avoid running yay as root/sudo.
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  hunspell-ar-3.5-2

:: (0/1) Downloaded PKGBUILD: hunspell-ar
 -> error fetching hunspell-ar: fatal: could not create work tree dir 'hunspell-ar': Permission denied
         context: exit status 128

lenovo:[limo]:~$

OOPS. My bad! I did "sudo yay"!

Still can't find gtkspellcheck
Code: [Select]
lenovo:[limo]:~$ yay -S gtkspellcheck
 -> Could not find all required packages:
        gtkspellcheck (Target)
lenovo:[limo]:~$ sudo pacman -S gtkspellcheck
error: target not found: gtkspellcheck
lenovo:[limo]:~$
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

Re: Install Hunspell Language Dictionary

Reply #5
Quote
I think I would install "yay". Right?

Look at the links for AUR and AUR_helpers I sent you last time.
If you want to use AUR yu need to either do it manually or use some AUR helper.
yay is fine and can do the job.

Re: Install Hunspell Language Dictionary

Reply #6
As @SGOrava‍ said yay is fine and will do what you need,  however, yay is in the universe repo. therefore you will need to add that repo to your /etc/pacman.conf.
Look here to see how to do that: https://wiki.artixlinux.org/Main/Repositories#Unofficial_User_Repositories
Once you have yay installed just run 
Code: [Select]
yay hunspell-ar
We should try to be kind to everyone.....we are all fighting some sort of battle.

Re: Install Hunspell Language Dictionary

Reply #7
Thanks again for your patience and support.

Well... I have dictionaries, gtkspell. aspel, and yay installed.
Still "gtkspellcheck" can't be found/installed.

Well, all this is because I am using ZIM wiki notes, and there is a spell check plugin I still can't enabel.
Here is what it says when I select it.
Quote
This plugin cannot be enabled due to missing dependencies.
Please see the dependencies section below for details.

Name
Spell Checker

Description
Adds spell checking support using gtkspell.

This is a core plugin shipping with zim.

Dependencies
• gtkspellcheck - Failed
• gtkspell - Failed

Author
Jaap Karssenberg

Code: [Select]
lenovo:[limo]:~$ yay -S gtkspellcheck
 -> Could not find all required packages:
        gtkspellcheck (Target)
lenovo:[limo]:~$ yay -S gtkspell
[sudo] password for limo:
warning: gtkspell-2.0.16-8 is up to date -- reinstalling

So, I think it still needs "gtkspellchek" which I don't know how to find it. (I have /home/limo/gtkspellcheck/gtkspellcheck.tar.gz) and tried
Code: [Select]
lenovo:[limo]:~$ sudo tar -xvf /home/limo/gtkspellcheck/gtkspellcheck.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
lenovo:[limo]:~$

I feel lost! Sorry.

System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

Re: Install Hunspell Language Dictionary

Reply #8
Learn basic commands of pacman.

How to find it out?

Search for zim with pacman.
Code: [Select]
> pacman -Ss zim
world/zimg 3.0.3-1 [installed: 3.0.1-2]
    Scaling, colorspace conversion, and dithering library
extra/zimg 3.0.3-1 [installed: 3.0.1-2]
    Scaling, colorspace conversion, and dithering library
community/libzim 7.0.0-2
    Reference implementation of the ZIM specification by the openZIM project
community/libzim6 6.3.2-3
    Reference implementation of the ZIM specification by the openZIM project, v6
community/zim 0.74.2-2
    A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop.
community/zim-tools 3.0.0-1
    Various ZIM command line tools

Found the name of the package in question "zim".
Display detailed information for the zim package:

Code: [Select]
> pacman -Si zim
Repository      : community
Name            : zim
Version         : 0.74.2-2
Description     : A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop.
Architecture    : any
URL             : https://zim-wiki.org/
Licenses        : GPL  PerlArtistic
Groups          : None
Provides        : None
Depends On      : python  python-gobject  ttf-font  gtk3  python-xdg
Optional Deps   : bzr: Version Control plugin
                  git: Version Control plugin
                  mercurial: Version Control plugin
                  gnuplot: Insert Gnuplot plugin
                  ditaa: Insert Ditaa plugin
                  graphviz: Insert Diagram plugin
                  xdot: Link Map plugin
                  gtkspell3: Spell Checker plugin
                  r: Insert GNU R Plot plugin
                  scrot: Insert Screenshot plugin
                  lilypond: Insert Score plugin
                  gtksourceview3: Source View plugin
                  texlive-bin: Insert Equation plugin
Conflicts With  : None
Replaces        : None
Download Size   : 1817,46 KiB
Installed Size  : 7903,86 KiB
Packager        : Felix Yan <[email protected]>
Build Date      : Pi  3. december 2021, 02:23:14
Validated By    : MD5 Sum  SHA-256 Sum  Signature

Search for gtkspell in the output (Optional Deps), found it.
Code: [Select]
gtkspell3: Spell Checker plugin

now install it and it should work.

PS: To check what optional dependencies are already installed you can use command:
Code: [Select]
pacman -Qi <package>

PS2: You can also use your AUR helper to do the search, this will also include the results from AUR and create you much bigger list.

Re: Install Hunspell Language Dictionary

Reply #9

Thank a lot SGOrava

Code: [Select]
yay -S gtkspell3
did it!
It is working now.

Thanks to you I learnt something new. To find a dependency/requirement just
Code: [Select]
pacman -Si "package name"
Right?

I wonder why it is mentioned "gtkspellchek" not "gtkspell3"

One wonderful thing is that learning in Linux especially Artix never ends.
Another wonderful thing that made me insisting to get my laptop to "accept" installing Artix 
 (https://forum.artixlinux.org/index.php/topic,3309.msg22057.html#msg22057) apart from a wonderful distro is the community here and the amazing support and feelings I get here.

Please keep up the good work you are doing for Artix and the forum.
Thanks again.
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

Re: Install Hunspell Language Dictionary

Reply #10
Quote
I wonder why it is mentioned "gtkspellchek" not "gtkspell3"
I dont know from where you have gotten the package name "gtkspellchek".
The package names are different across distributions, maybe you would be able to find such package in Debian/Ubuntu based distributions.


Quote
Thanks to you I learnt something new. To find a dependency/requirement just
Code: [Select]
pacman -Si "package name
Right?
Yes, and to search use "pacman -Ss <something>" (or use your aur helper, most of them mirror pacman commands.)

Re: Install Hunspell Language Dictionary

Reply #11
I dont know from where you have gotten the package name "gtkspellchek".

It is/was in the app itself as I posted above.
Quote
This plugin cannot be enabled due to missing dependencies.
Please see the dependencies section below for details.

Name
Spell Checker

Description
Adds spell checking support using gtkspell.

This is a core plugin shipping with zim.

Dependencies
• gtkspellcheck - Failed
• gtkspell - Failed

last 2 lines.
So remains the same question, why mentioned "gtkspellcheck" while installing "gtkspell3" was the one that sorted it out!
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

Re: Install Hunspell Language Dictionary

Reply #12
As @SGOravasaid yay is fine and will do what you need,  however, yay is in the universe repo. therefore you will need to add that repo to your /etc/pacman.conf.
Look here to see how to do that: https://wiki.artixlinux.org/Main/Repositories#Unofficial_User_Repositories
Once you have yay installed just run
Code: [Select]
yay hunspell-ar
Thanks conky60
I checked /etc/pacman.conf
and I have :
Code: [Select]
[gremlins]
[system]
[world]
[galaxy]
[galaxy-gremlins]
[community]
[multilib]
[omniverse]
Are these OK? I didn't see anything AUR.
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS

Re: Install Hunspell Language Dictionary

Reply #13
Thanks conky60
I checked /etc/pacman.conf
and I have :
Code: [Select]
[gremlins]
[system]
[world]
[galaxy]
[galaxy-gremlins]
[community]
[multilib]
[omniverse]

Are these OK? I didn't see anything AUR.
Well, they are not ok....you probably don't need/want the two "gremlins" repos enabled as they are testing repos, not recommended for a new user and not necessary at all. You should also have the arch linux repo "extra" enabled to go along with the arch "community" repo.
You also do not have the "Universe" repo enabled so you can install yay, as I mentioned in my previous reply. Also, I provided a link
to help you in that regard.....if you read fully the repository information page and follow the instructions on that wiki page it will help you to understand better the Artix repository structure and what is necessary.

Best regards.
We should try to be kind to everyone.....we are all fighting some sort of battle.

Re: Install Hunspell Language Dictionary

Reply #14
Well, they are not ok....

Best regards.
OK. I hashed and unhashed in /etc/pacman.conf as you mentioned.
I updated "pacman" and "yay" so it is almost OK now (almost because I noticed some installed apps are more recent than the repos I have. I think it is because I previously had testing repos. - but in a while hopefully they will be moved to my current repos).

Here is my pacman.conf now:
Code: [Select]
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

#IgnorePkg   =
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Artix Linux
# packagers with `pacman-key --populate artix`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The gremlins repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

#[lib32]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
# Artix
# [system]
# Include = /etc/pacman.d/mirrorlist

Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch

[community]
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
Include = /etc/pacman.d/mirrorlist-arch

[universe]
Server = https://universe.artixlinux.org/$arch
Server = https://mirror1.artixlinux.org/universe/$arch
Server = https://mirror.pascalpuffke.de/artix-universe/$arch
Server = https://artixlinux.qontinuum.space:4443/universe/os/$arch
Server = https://mirror.alphvino.com/artix-universe/$arch

[omniverse]
Server = http://omniverse.artixlinux.org/$arch
I hope this is OK now.
Any other repos you recommend to add or remove? I think now it goes on with the link https://wiki.artixlinux.org/Main/Repositories#Unofficial_User_Repositories that you posted.
System:  Kernel: 6.4.10-artix1-1 , KDE Plasma 5.27.7, HP Spectre x360 Convertible 13-ae0xx
Dual Core  i7-8550U bits: 64
8 GB Ram - SSD:  (250 GiB), BTRFS