fatal error: …h: No such file or directory
- Arduino
- ESP32
- ESP8266
You may see
Why it happens
- The library isn't installed on this computer.
- The name is spelt differently. Capitals matter on Linux and Mac.
How to fix it
- Read the
.hname in the message. - Open Tools > Manage Libraries (Arduino IDE 2: the books icon), search for the name and press Install.
- If it offers to install other libraries too, choose Install all.
- If the lesson gives a .zip file, use Sketch > Include Library > Add .ZIP Library.
- Press Verify again.
It worked if: The red line about that .h file is gone.
Related errors
Tutorials where it can happen
- 16x2 LCD with Arduino: With and Without I2C
- 4-Digit 7-Segment Display with Arduino
- 7 Segment Display with mBlock
- Air Quality and HVAC Control with Arduino, DHT11 and MQ-135
- Air Quality Monitor with Arduino, MQ-135 and LCD
- Alcohol Sensor MQ-3 with Arduino and LCD
69 more
- Arduino Breathalyzer with MQ-3 Alcohol Sensor and LCD
- Arduino Greenhouse: Temperature and Humidity Control with LCD
- Building a Motion Detection System Using ESP32 and ESP-NOW
- Building a Rainfall Measurement and LCD Display with Arduino
- Building a Sound-Activated Music Player with LCD Display
- Building a Vibration Sensor with LCD Feedback
- Building an Intruder Detection System with LCD and Alarm using Arduino
- Building Electronics Dice with LCD Display
- Capacitive Touch Sensor-Based Home Automation System with LCD Display
- CO Sensor-Based Ventilation Control System with LCD Output
- Color Detection and Sorting System with TCS34725
- Colour Picker RGB LED with Arduino
- DHT11 Temperature and Humidity Sensor with Arduino
- Distance Measurement and Stepper Motor Control with LCD Output
- DIY Heart Rate Monitor with Pulse Sensor and LCD Display
- ESP32 / ESP8266 - Realtime Database with Firebase
- ESP32 Async Web Server Code
- ESP32 DHT11 Web Server: Show Temperature and Humidity
- ESP32 Web Server: Control LED Brightness with a Slider
- ESP32/ESP8266 Data Logging to Firebase with Login
- Gas Leakage Detection and Solenoid Valve Control with Arduino
- Gas Sensor-Based Air Freshener System with LCD Display
- Gas Sensor-Based Garage Ventilation Control with LCD Display
- Gas Sensor-Based Smart Gas Meter with LCD Display
- Guide to Using SSD1306 Display with Arduino
- Hall Effect Sensor with Arduino: Measure Magnetic Field
- HC-SR04 Ultrasonic Sensor with Arduino Uno
- Heart Rate-Based Fitness Tracker with LCD Feedback
- How to Make a Smart Energy Meter with Arduino and LCD
- How to use the BLE on the ESP32?
- Interfacing ESP32 with 16x2 LCD Displays
- LDR Light Meter with Arduino and LCD
- Light-Sensitive Motorized Blinds with Arduino and LCD
- Liquid Level Detection and Pump Control
- Log DHT11 Data to Firebase Realtime Database: the Code
- Mini Weather Station with Arduino, DHT11 and 16x2 LCD
- Motion-Activated Security Camera with LCD Feedback
- Motor Speed Control Based on Temperature with LCD Output
- MQ-2 Gas Sensor Arduino Code with I2C LCD
- Object Tracking and Following System with LCD Feedback
- Obstacle Avoiding Robot Car with Arduino and LCD
- Obstacle-Avoiding Robot Arm with Arduino and LCD
- pH Level Monitoring and LCD Output with Arduino
- Plant Monitoring System with Arduino: Soil Moisture and DHT22
- Put Your Web Page on a Real ESP32
- Rainwater Harvesting and Recharge: a Project for Kids
- Reading RFID Tags with RC522 and Arduino
- RFID Access Control with Arduino and LCD
- Send Emails with ESP8266 NodeMCU
- Smart Blinds Control Based on Weather Conditions with LCD Feedback
- Smart Mailbox with Arduino, Ultrasonic Sensor and Servo
- Smart Pet Door with Arduino, Ultrasonic Sensor and Servo
- Smart Plant Pot with ESP32 (IoT)
- Smart Trash Can with Arduino: Lid Opens by Itself
- Smoke Detection and Exhaust Fan Control with LCD Display
- Smoke Detection and Fire Sprinkler Control with LCD Display
- Soil pH Level Monitoring and LCD Output
- Sound Level Meter with Arduino and LCD
- SSD1306 0.96 inch OLED Display with Arduino (I2C)
- Temperature-Controlled Fan with Arduino and LM35
- Ultrasonic Parking Sensor with LCD Display using Arduino
- Ultrasonic Sensor and Servo Motor with Arduino Uno
- Vehicle Parking Space Occupancy Detection with LCD Feedback
- Vehicle Speed Measurement and LCD Output Using Arduino
- Water Flow Measurement and Control with LCD using an Arduino
- Water Level Monitoring and Fish Tank Pump Control with Arduino
- Water Level Monitoring and Pump Control System with Arduino
- Water Level Monitoring and Solar Water Heater Control
- What is a Web Socket Server?
Seen in a real run (some lines are close variants of it). Produced with Arduino CLI 1.5.1 and Arduino AVR core 1.8.8 (the same compiler the Arduino IDE uses). Most of these came from compiling our own lessons on a computer without the library.
Didn't help? Search another error or ask us.

