X86_64-pc-linux-gnu-ccache-gcc': No such file or directory

I’ve installed the latest Home Assistant directly onto my Synology Diskstation using this guide:

https://home-assistant.io/docs/installation/synology/

I’m attempting to add my AppleTV however when starting the daemon I see that it is unable to install the dependency pyatv. When I attempt to install this myself I’m getting:

root@DiskStation:/volume1/homeassistant# /volume1/@appstore/py3k/usr/local/bin/python3 -m pip install pyatv
Collecting pyatv
  Using cached pyatv-0.2.2-py3-none-any.whl
Requirement already satisfied: aiohttp>=1.3.0 in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from pyatv)
Collecting zeroconf>=0.17.7 (from pyatv)
  Using cached zeroconf-0.19.0-py2.py3-none-any.whl
Requirement already satisfied: multidict>=2.1.4 in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from aiohttp>=1.3.0->pyatv)
Requirement already satisfied: chardet in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from aiohttp>=1.3.0->pyatv)
Requirement already satisfied: async-timeout>=1.2.0 in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from aiohttp>=1.3.0->pyatv)
Requirement already satisfied: yarl<0.11,>=0.10.0 in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from aiohttp>=1.3.0->pyatv)
Requirement already satisfied: enum-compat in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from zeroconf>=0.17.7->pyatv)
Requirement already satisfied: six in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from zeroconf>=0.17.7->pyatv)
Collecting netifaces<=0.10.4 (from zeroconf>=0.17.7->pyatv)
  Using cached netifaces-0.10.4.tar.gz
Installing collected packages: netifaces, zeroconf, pyatv
  Running setup.py install for netifaces ... error
    Complete output from command /volume1/@appstore/py3k/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xp99zqfi/netifaces/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-ufo4o1ma-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    checking for getifaddrs...not found.
    checking for getnameinfo...not found.
    checking for socket IOCTLs...not found.
    checking for optional header files...none found.
    checking whether struct sockaddr has a length field...no.
    checking which sockaddr_xxx structs are defined...none!
    checking for routing socket support...no.
    checking for sysctl(CTL_NET...) support...no.
    checking for netlink support...no.
    building 'netifaces' extension
    /usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -DSYNOPLAT_F_X86_64 -O2 -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=64 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DNETIFACES_VERSION=0.10.4 -I/volume1/@appstore/py3k/usr/local/include/python3.5m -c netifaces.c -o build/temp.linux-x86_64-3.5/netifaces.o
    unable to execute '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc': No such file or directory
    error: command '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc' failed with exit status 1

    ----------------------------------------
Command "/volume1/@appstore/py3k/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xp99zqfi/netifaces/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-ufo4o1ma-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-xp99zqfi/netifaces/

Has anyone else ran into this issue?

Try “sudo apt-get install build-essentials” and try again, should work.

I have the same problem and am not able to run apt-get. I have used ipkg and pip to install some components. How do I install build-essentials? I used Docker to install homeassistant.

Hi - is there any how-to for installing apt-get on Synology-NAS/DSM6.2? I also cannot execute “sudo apt-get install build-essentials”…