Skip to content

Commit

Permalink
roles/compute: create link to libbz2.so.1.0
Browse files Browse the repository at this point in the history
The stt Python package looks for bzip2 libs as libbz2.so.1, which
fails on CentOS Stream 8 (and probably all Red Hat-based distros).
We fix this for now using a symlink to the location of the library.

See: coqui-ai/STT#2341
  • Loading branch information
alanorth committed Feb 6, 2023
1 parent 690e0a0 commit d0e0bb1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/compute/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
when: ansible_distribution_major_version is version('8', '==')
tags: packages

# Create a symlink to libbz2.so.1.0 to please stt.
# See: https://github.com/coqui-ai/STT/issues/2341
- name: Create symlink for libbz2.so.1.0
ansible.builtin.file:
src: /usr/lib64/libbz2.so.1.0.6
dest: /usr/lib64/libbz2.so.1.0
state: link
tags: packages

- name: Clone environment modules
ansible.builtin.git:
repo: https://github.com/ilri/hpc-environment-modules.git
Expand Down

0 comments on commit d0e0bb1

Please sign in to comment.