jsntn / emacs.d

A Personal Emacs Configuration
https://jsntn.com
GNU General Public License v3.0
4 stars 1 forks source link

crow-translate installation #21

Closed jsntn closed 10 months ago

jsntn commented 10 months ago

crow-translate is used by dictionary-overlay in my Emacs setup.

For the crow-translate installation on Arch, the Chaotic-AUR repository should be set up before installing crow-translate, see, https://aur.chaotic.cx

After that, crow-translate can be installed by, sudo pacman -S --noconfirm crow-translate

-> Read more, the crow-translate installation can be see from, https://crow-translate.github.io

jsntn commented 10 months ago

on Arch Linux, I got error below,

➜ crow-translate git:(master) ✗ crow crow: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory ➜ crow-translate git:(master) ✗

jsntn commented 10 months ago

on Arch Linux, I got error below,

➜ crow-translate git:(master) ✗ crow crow: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory ➜ crow-translate git:(master) ✗

this was fixed by this answer (from Poe AI bot) below,

TL; DR

sudo pacman -S icu
sudo pacman -S icu
find /usr/lib -name libicui18n.so.74
sudo ldconfig

Answer from AI bot:

It seems that you are encountering an error related to the missing library "libicui18n.so.74" on your Arch Linux system. This error is preventing the execution of the "crow" command.

To resolve this issue, you can try the following steps:

  1. Update your system: It's always a good idea to ensure that your system is up to date. Run the following command to update your system:

    sudo pacman -Syu
  2. Install the required library: The missing library "libicui18n.so.74" is part of the ICU (International Components for Unicode) library. You can install it using the package manager:

    sudo pacman -S icu

    This command will install the latest version of the ICU library, which should include the required "libicui18n.so.74" library.

  3. Verify the installation: After installing the ICU library, check if the "libicui18n.so.74" library is now available. You can use the following command to search for the library:

    find /usr/lib -name libicui18n.so.74

    If the library is found, proceed to the next step. Otherwise, there might be an issue with the installation process.

  4. Update the library cache: Sometimes, the system's library cache needs to be updated to recognize the newly installed library. Run the following command to update the library cache:

    sudo ldconfig

    This command will refresh the library cache and make the newly installed library available to the system.

  5. Retry the command: After completing the above steps, try running the "crow" command again. It should now be able to find the "libicui18n.so.74" library and execute without any errors.


Learn more:

  1. [Solved] Qt error: libicui18n.so.73 / Newbie Corner / Arch Linux Forums
  2. Arch Linux - icu 74.2-1 (x86_64)
  3. node.js - error while loading shared libraries: libicui18n.so.68 - Stack Overflow