mimiumのManjaro Linuxへのインストール(homebrewを使って失敗の時)

mimiumをインストールします。この記事の執筆時のバージョンは0.3.0です。

mimium.org

インストールについてはこちらで説明されています。

homebrewでインストールができると書いてあるので、homebrewをまずインストールします。

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

/home/linuxbrew以下にhomebrewがインストールされます。

==> Next steps:
- Add Homebrew to your PATH in /home/aki/.bash_profile:
    echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/aki/.bash_profile
    eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
- Install the Homebrew dependencies if you have sudo access:
    sudo pacman -S base-devel
    See https://docs.brew.sh/linux for more information
- We recommend that you install GCC:
    brew install gcc

[aki@x230 ~]$

Next Stepsとして次のコマンドを実行するように書いてあるので実行します。(PATHを通します)

[aki@x230 ~]$ echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/aki/.bash_profile
[aki@x230 ~]$ eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)

base-develもインストールしろと書いてあるので、一応インストールしておきます。

[aki@x230 ~]$ sudo pacman -S base-devel

mimium

[aki@x230 ~]$ brew tap mimium-org/mimium && brew install mimium

/home/linuxbrew/.linuxbrew/Cellar/mimium/0.3.0.reinstall/bin/mimiumがインストールされます。

[aki@x230 ~]$ /home/linuxbrew/.linuxbrew/Cellar/mimium/0.3.0.reinstall/bin/mimium --version 
0.3.0

PATHを設定するかaliasを設定します。

[aki@x230 ~]$ /home/linuxbrew/.linuxbrew/Cellar/mimium/0.3.0.reinstall/bin/mimium hello.mmm 
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_ctl_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib dlmisc.c:341:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.4/lib/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)

RtApiAlsa::probeDeviceOpen: pcm device (default) won't open for output.

alsa-lib関連のファイルが存在しないようなので、次のコマンドを実行します。

[aki@x230 ~]$ brew reinstall alsa-lib

依存関係でいろいろなファイルが/home/linuxbrew/以下にインストールされます。 最初に失敗しているのかな?

でも、もう一度mimiumを実行してみても、同じ結果です。