# Archlinux cannot find Arduino.h

**URL:** <https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335>\
**Category:** Programming\
**Tags:** question\
**Created:** [December 22, 2018, 7:45pm UTC](https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335 "2018-12-22T19:45:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sukkubix](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sukkubix](https://community.keyboard.io/u/Sukkubix)\
**Post date:** [December 22, 2018, 7:45pm UTC](https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335/1 "2018-12-22T19:45:43Z")

</div>

I am using the latest version of arduino from the official repositories 1.8.8, and installed it through the distro’s base package manager. I have added to my rc file export ARDUINO\_PATH=/usr/share/arduino the location arduino installed to, but the arduino system is unable to find arduino.h.

Upon booting it warns: The current selected board needs the core ‘arduino:arduino’ that is not installed.

Upon trying to verify the firmware example per [https://github.com/keyboardio/Kaleidoscope/wiki/Install-Arduino-support-on-Linux](https://github.com/keyboardio/Kaleidoscope/wiki/Install-Arduino-support-on-Linux) I get the following error message. I’ve been searching around for a while but have not had any luck uncovering what is needed to fix it.

he current selected board needs the core ‘arduino:arduino’ that is not installed.  
WARNING: Category ‘Debug’ in library Kaleidoscope-Hardware-Virtual is not valid. Setting to ‘Uncategorized’  
sketch/Model01-Firmware.ino.cpp:1:21: fatal error: Arduino.h: No such file or directory  
#include \<Arduino.h\>  
^  
compilation terminated.  
exit status 1  
Error compiling for board Keyboardio Model 01.

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [December 23, 2018, 12:09am UTC](https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335/2 "2018-12-23T00:09:34Z")

</div>

Arch is a little weird in its Arduino packaging, you’ll have to tweak a thing or two to be able to use it. It’s probably easier to download the Arduino tarball, extract it somewhere, and use that.

Nevertheless, there’s an older thread where people shared how they got the firmware build and flashing work with Arch’s Arduino package:

> [@Problems getting started reflashing model 01 on Arch Linux](https://community.keyboard.io/t/problems-getting-started-reflashing-model-01-on-arch-linux/488/23):
>
> I managed to flash my keyboardio model 1 on Archlinux only with the Archlinux Arduino packages. I also use the [upstream avr-gcc packaged by Archlinux](https://wiki.archlinux.org/index.php/arduino#AVR_Boards) without any symlink in /usr/share/arduino/hardware. Here is my conf: max@host % pwd /home/max/Documents/personnel/keyboardio/flash max@host % tree --noreport -L 3 . ├── hardware │ └── keyboardio │ └── avr └── Model01-Firmware └── … max@host % cd hardware/keyboardio/avr max@host % git diff diff --git a/boards.txt b/boards.txt index …

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Sukkubix](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sukkubix](https://community.keyboard.io/u/Sukkubix)\
**Post date:** [December 23, 2018, 3:31am UTC](https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335/3 "2018-12-23T03:31:05Z")

</div>

Awesome, thank you for the info. For the time being I will just install everything manually as there are a few keymapping changes I want to make. I generally don’t like free floating packages though so will likely try and get the arch package working. Thanks again for the help.

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [December 23, 2018, 6:42am UTC](https://community.keyboard.io/t/archlinux-cannot-find-arduino-h/2335/4 "2018-12-23T06:42:01Z")

</div>

I’m not a fan of them either, but Arduino can conveniently lib in a subdirectory of your sketch, which makes it acceptably well contained for me.
