# Error when installing on Elementary OS 6.1

**URL:** https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847
**Category:** This category is being retired - Support
**Created:** [January 30, 2022, 8:56am UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847 "2022-01-30T08:56:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wineechun](https://community.openconversational.ai/user_avatar/community.openconversational.ai/wineechun/32/3536_2.png) [@wineechun](https://community.openconversational.ai/u/wineechun)
#### Post date: [January 30, 2022, 8:56am UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847/1 "2022-01-30T08:56:13Z")

</div>

Hello, I am new to mycroft and I have issues installing on Elementary OS 6.1 on my 2011 macbook air (also new to linux in general). Elementary OS 6.1 is built on Ubuntu LTS 20.04.3

I’ve searched for a thread that expressed similar issues [here](https://community.openconversational.ai/t/fatal-error-when-installing/9355) but it appeared to be a distro-specific issue (Manjaro) for that user and I did not find a solution that worked for me there. I would appreciate any help here. I went with the recommended git installation.

I ran bash dev\_setup.sh and my error logs are below; I did not have issues up until this point:

> Building wheels for collected packages: PyAudio, psutil, pocketsphinx, fann2  
> Building wheel for PyAudio (setup.py) … error  
> ERROR: Command errored out with exit status 1:  
> command: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ bdist\_wheel -d /tmp/pip-wheel-3w26cd0z  
> cwd: /tmp/pip-install-mln\_ledf/PyAudio/  
> Complete output (11 lines):  
> running bdist\_wheel  
> running build  
> running build\_py  
> creating build  
> creating build/lib.linux-x86\_64-3.9  
> copying src/pyaudio.py → build/lib.linux-x86\_64-3.9  
> running build\_ext  
> creating build/temp.linux-x86\_64-3.9  
> creating build/temp.linux-x86\_64-3.9/src  
> gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/wineechun/mycroft-core/.venv/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c src/\_portaudiomodule.c -o build/temp.linux-x86\_64-3.9/src/\_portaudiomodule.o  
> error: command ‘gcc-5’ failed: No such file or directory

* * *

> ERROR: Failed building wheel for PyAudio  
> Running setup.py clean for PyAudio  
> Building wheel for psutil (setup.py) … error  
> ERROR: Command errored out with exit status 1:  
> command: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-mln\_ledf/psutil/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/psutil/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ bdist\_wheel -d /tmp/pip-wheel-dxyn70n7  
> cwd: /tmp/pip-install-mln\_ledf/psutil/  
> Complete output (39 lines):  
> running bdist\_wheel  
> running build  
> running build\_py  
> creating build  
> creating build/lib.linux-x86\_64-3.9  
> creating build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/ **init**.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_psosx.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_common.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_pssunos.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_psaix.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_pslinux.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_pswindows.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_compat.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_psbsd.py → build/lib.linux-x86\_64-3.9/psutil  
> copying psutil/\_psposix.py → build/lib.linux-x86\_64-3.9/psutil  
> creating build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_sunos.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/runner.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_connections.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/ **init**.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_aix.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_process.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_osx.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_system.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_bsd.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_linux.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_misc.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_contracts.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_posix.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_unicode.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/ **main**.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_memory\_leaks.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> copying psutil/tests/test\_windows.py → build/lib.linux-x86\_64-3.9/psutil/tests  
> running build\_ext  
> creating build/temp.linux-x86\_64-3.9  
> creating build/temp.linux-x86\_64-3.9/psutil  
> gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DPSUTIL\_POSIX=1 -DPSUTIL\_VERSION=566 -DPSUTIL\_LINUX=1 -I/home/wineechun/mycroft-core/.venv/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c psutil/\_psutil\_common.c -o build/temp.linux-x86\_64-3.9/psutil/\_psutil\_common.o  
> error: command ‘gcc-5’ failed: No such file or directory

* * *

> ERROR: Failed building wheel for psutil  
> Running setup.py clean for psutil  
> Building wheel for pocketsphinx (setup.py) … error  
> ERROR: Command errored out with exit status 1:  
> command: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-mln\_ledf/pocketsphinx/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/pocketsphinx/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ bdist\_wheel -d /tmp/pip-wheel-cjhl19sw  
> cwd: /tmp/pip-install-mln\_ledf/pocketsphinx/  
> Complete output (26 lines):  
> running bdist\_wheel  
> running build  
> running build\_py  
> creating build  
> creating build/lib.linux-x86\_64-3.9  
> creating build/lib.linux-x86\_64-3.9/sphinxbase  
> copying sphinxbase/ **init**.py → build/lib.linux-x86\_64-3.9/sphinxbase  
> copying sphinxbase/sphinxbase.py → build/lib.linux-x86\_64-3.9/sphinxbase  
> creating build/lib.linux-x86\_64-3.9/pocketsphinx  
> copying pocketsphinx/ **init**.py → build/lib.linux-x86\_64-3.9/pocketsphinx  
> copying pocketsphinx/pocketsphinx.py → build/lib.linux-x86\_64-3.9/pocketsphinx  
> running build\_ext  
> swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase\_wrap.c deps/sphinxbase/swig/sphinxbase.i  
> Deprecated command line option: -modern. This option is now always on.  
> creating build/temp.linux-x86\_64-3.9  
> creating build/temp.linux-x86\_64-3.9/deps  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase/fe  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase/feat  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase/lm  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase/util  
> creating build/temp.linux-x86\_64-3.9/deps/sphinxbase/swig  
> gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DSPHINXBASE\_EXPORTS -DPOCKETSPHINX\_EXPORTS -DSPHINX\_DLL -DHAVE\_CONFIG\_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/wineechun/mycroft-core/.venv/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c deps/sphinxbase/src/libsphinxbase/fe/fe\_interface.c -o build/temp.linux-x86\_64-3.9/deps/sphinxbase/src/libsphinxbase/fe/fe\_interface.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare  
> error: command ‘gcc-5’ failed: No such file or directory

* * *

> ERROR: Failed building wheel for pocketsphinx  
> Running setup.py clean for pocketsphinx  
> Building wheel for fann2 (setup.py) … error  
> ERROR: Command errored out with exit status 1:  
> command: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-mln\_ledf/fann2/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/fann2/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ bdist\_wheel -d /tmp/pip-wheel-8oiflkh9  
> cwd: /tmp/pip-install-mln\_ledf/fann2/  
> Complete output (19 lines):  
> running swig  
> running bdist\_wheel  
> running build  
> running build\_py  
> creating build  
> creating build/lib.linux-x86\_64-3.9  
> creating build/lib.linux-x86\_64-3.9/fann2  
> copying fann2/ **init**.py → build/lib.linux-x86\_64-3.9/fann2  
> copying fann2/libfann.py → build/lib.linux-x86\_64-3.9/fann2  
> running egg\_info  
> writing manifest file ‘fann2.egg-info/SOURCES.txt’  
> copying fann2/fann2.i → build/lib.linux-x86\_64-3.9/fann2  
> copying fann2/fann2\_wrap.cxx → build/lib.linux-x86\_64-3.9/fann2  
> copying fann2/fann\_cpp\_subclass.h → build/lib.linux-x86\_64-3.9/fann2  
> running build\_ext  
> creating build/temp.linux-x86\_64-3.9  
> creating build/temp.linux-x86\_64-3.9/fann2  
> gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DSWIG\_COMPILE -I./include -I…/include -Iinclude -I/home/wineechun/mycroft-core/.venv/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c fann2/fann2\_wrap.cxx -o build/temp.linux-x86\_64-3.9/fann2/fann2\_wrap.o  
> error: command ‘gcc-5’ failed: No such file or directory

* * *

> ERROR: Failed building wheel for fann2  
> Running setup.py clean for fann2  
> Failed to build PyAudio psutil pocketsphinx fann2  
> Installing collected packages: PyAudio, pyee, SpeechRecognition, tornado, websocket-client, requests-futures, pyserial, psutil, pocketsphinx, inflection, pillow, python-dateutil, monotonic, fasteners, PyYAML, lingua-franca, lazy, appdirs, pako, smmap, gitdb, GitPython, msm, pycparser, cffi, pynacl, wrapt, deprecated, pyjwt, pygithub, colorama, msk, mycroft-messagebus-client, adapt-parser, padaos, xxhash, fann2, padatious, precise-runner, petact, pyxdg  
> Running setup.py install for PyAudio … error  
> ERROR: Command errored out with exit status 1:  
> command: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’“‘))’ install --record /tmp/pip-record-dkiqvdzl/install-record.txt --single-version-externally-managed --compile --install-headers /home/wineechun/mycroft-core/.venv/include/site/python3.9/PyAudio  
> cwd: /tmp/pip-install-mln\_ledf/PyAudio/  
> Complete output (13 lines):  
> running install  
> /home/wineechun/mycroft-core/.venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.  
> warnings.warn(  
> running build  
> running build\_py  
> creating build  
> creating build/lib.linux-x86\_64-3.9  
> copying src/pyaudio.py → build/lib.linux-x86\_64-3.9  
> running build\_ext  
> creating build/temp.linux-x86\_64-3.9  
> creating build/temp.linux-x86\_64-3.9/src  
> gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/wineechun/mycroft-core/.venv/include -I/home/linuxbrew/.linuxbrew/opt/python@3.9/include/python3.9 -c src/\_portaudiomodule.c -o build/temp.linux-x86\_64-3.9/src/\_portaudiomodule.o  
> error: command ‘gcc-5’ failed: No such file or directory  
> ----------------------------------------  
> ERROR: Command errored out with exit status 1: /home/wineechun/mycroft-core/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”‘"’/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘; **file** =’“'”‘/tmp/pip-install-mln\_ledf/PyAudio/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)( **file** );code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, **file** , ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-dkiqvdzl/install-record.txt --single-version-externally-managed --compile --install-headers /home/wineechun/mycroft-core/.venv/include/site/python3.9/PyAudio Check the logs for full command output.  
> WARNING: You are using pip version 20.0.2; however, version 21.3.1 is available.  
> You should consider upgrading via the ‘/home/wineechun/mycroft-core/.venv/bin/python3 -m pip install --upgrade pip’ command.  
> Warning: Failed to install required dependencies. Continue? y/N

---

<div class="post-metadata">

### Author: ![AIIX](https://community.openconversational.ai/user_avatar/community.openconversational.ai/aiix/32/641_2.png) [@AIIX](https://community.openconversational.ai/u/AIIX)
#### Post date: [January 30, 2022, 12:13pm UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847/2 "2022-01-30T12:13:08Z")

</div>

Run the following and re-run ./dev-setup.sh

```auto
ln -s /bin/gcc /bin/gcc-5

```

---

<div class="post-metadata">

### Author: ![wineechun](https://community.openconversational.ai/user_avatar/community.openconversational.ai/wineechun/32/3536_2.png) [@wineechun](https://community.openconversational.ai/u/wineechun)
#### Post date: [January 30, 2022, 1:03pm UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847/3 "2022-01-30T13:03:56Z")

</div>

Thank you! There was a similar issue with g++ as but these were fixed after running your suggested code to establish the right linkages (to gcc-5 and g+±5).

---

<div class="post-metadata">

### Author: ![wineechun](https://community.openconversational.ai/user_avatar/community.openconversational.ai/wineechun/32/3536_2.png) [@wineechun](https://community.openconversational.ai/u/wineechun)
#### Post date: [January 30, 2022, 1:12pm UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847/4 "2022-01-30T13:12:34Z")

</div>

Not sure if it’s right to continue this thread since it is a separate issue from the above, but I’m now facing another set of issues after resolving the issues with dependencies. This is the error log when trying to compile mimic:

> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_close' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_open’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_state' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_drain’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_hw_params' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_wait’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_hw_params_set_format' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_prepare’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_resume' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_config\_update\_free\_global’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_hw_params_any' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_strerror’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_delay' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_hw\_params\_set\_rate’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_writei' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_hw\_params\_set\_access’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd_pcm_hw_params_set_channels' /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_drop’  
> /home/linuxbrew/.linuxbrew/bin/ld: ./.libs/libttsmimic.so: undefined reference to `snd\_pcm\_hw\_params\_sizeof’  
> collect2: error: ld returned 1 exit status  
> make[1]: \*\*\* [Makefile:2705: compile\_regexes] Error 1  
> make[1]: \*\*\* Waiting for unfinished jobs…  
> make[1]: Leaving directory ‘/home/wineechun/mycroft-core/mimic’  
> make: \*\*\* [Makefile:4320: all-recursive] Error 1

Edit: Upon researching the issue further, it appears someone found a similar issue with compiling mimic [here](https://github.com/MycroftAI/mycroft-core/issues/2511). The suggested solution was to skip the mimic build, or to [try an unofficial repo with mimic](https://forslund.github.io/mycroft-desktop-repo/).

---

<div class="post-metadata">

### Author: ![wineechun](https://community.openconversational.ai/user_avatar/community.openconversational.ai/wineechun/32/3536_2.png) [@wineechun](https://community.openconversational.ai/u/wineechun)
#### Post date: [January 31, 2022, 2:58am UTC](https://community.openconversational.ai/t/error-when-installing-on-elementary-os-6-1/11847/5 "2022-01-31T02:58:20Z")

</div>

Update:

I have fixed all above issues. I installed Mycroft via the Synaptic Package Manager using the [unofficial Mycroft Desktop](https://forslund.github.io/mycroft-desktop-repo/) install, and this solved all my problems.

For those that experienced multiple issues with their install, this might be an amenable solution to you. I tried the snap store snap, it didn’t work well. The package manager instead was helpful. I’m not sure why this alternative was not included in the documentation - in any case I hope others find this useful.

Again, thanks @AIIC for the prompt and generous help.
