[Solved] Library not installed error

I'm trying to use the example code from

and when I verify it, I get the following error:

arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/.../.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/...../.arduino15/packages -libraries /home/..../Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_934772 -warnings=none -build-cache /tmp/arduino_cache_716664 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/...../.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/..../.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/..../.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/..../.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/...../.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/......./.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /home/..../..........//Temperatura/Temperatura.ino
arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/..../.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/.../.arduino15/packages -libraries /home/...../Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_934772 -warnings=none -build-cache /tmp/arduino_cache_716664 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/..../.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/..../.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/home/..../.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/..../.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/....../.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/..../.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /home/..../Á.........../Temperatura/Temperatura.ino
Using board 'uno' from platform in folder: /home/....../.arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /home/......../.arduino15/packages/arduino/hardware/avr/1.8.6
Warning: platform.txt for core '[0}' contains something deprecated (compiler.path={runtime.tools.avr-gcc.path}/bin/), automatically converted to compiler.path=/usr/bin/. Consider updating this core.
Detecting libraries used...
"/usr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/...../.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino" "-I/home/......./.arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard" "/tmp/arduino_build_934772/sketch/Temperatura.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/usr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/......./.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino" "-I/home/....../.arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard" "/tmp/arduino_build_934772/sketch/Temperatura.ino.cpp" -o "/tmp/arduino_build_934772/preproc/ctags_target_for_gcc_minus_e.cpp"
/home/.../............./Temperatura/Temperatura.ino:1:21: fatal error: OneWire.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for Arduino Uno

I have both libraries installed, and when I verify, it returns the error above.

Does your user name perchance include any non ASCII characters? If so, you've run into this bug:

Here's a workaround from @ptillisch:

1 Like

I see non-standard characters in the path...

1 Like

Initially, the characters of my users are okay.

arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/ibridge/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/ibridge/.arduino15/packages -libraries /home/ibridge/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_529911 -warnings=none -build-cache /tmp/arduino_cache_365399 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/ibridge/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/ibridge/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/ibridge/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/ibridge/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/ibridge/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/ibridge/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -verbose /home/ibridge/Documentos/Projects/Ardruine/Temperature/Temperature.ino
arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/ibridge/.arduino15/packages -tools /usr/share/arduino/hardware/tools/avr -tools /home/ibridge/.arduino15/packages -libraries /home/ibridge/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=1A86_7523 -ide-version=10819 -build-path /tmp/arduino_build_529911 -warnings=none -build-cache /tmp/arduino_cache_365399 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/ibridge/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/ibridge/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/home/ibridge/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/ibridge/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avr-gcc.path=/home/ibridge/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/home/ibridge/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -verbose /home/ibridge/Documentos/Projects/Ardruine/Temperature/Temperature.ino
Using board 'uno' from platform in folder: /home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6
Warning: platform.txt of core '[0]' contains something deprecated (compiler.path={runtime.tools.avr-gcc.path}/bin/), automatically converted to compiler.path=/usr/bin/. Consider updating this core.
Detecting libraries used...
"/usr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino" "-I/home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard" "/tmp/arduino_build_529911/sketch/Temperature.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/usr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino" "-I/home/ibridge/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard" "/tmp/arduino_build_529911/sketch/Temperature.ino.cpp" -o "/tmp/arduino_build_529911/preproc/ctags_target_for_gcc_minus_e.cpp"
/home/ibridge/Documentos/Projects/Ardruine/Temperature/Temperature.ino:1:21: fatal error: OneWire.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board Arduino Uno

Hi @brunozwietisch

What is the name of the two libraries you have installed?

Did you install them using the Arduino IDE Library Manager. or by some other method?

Hi,
What version IDE are you using?

Tom.. :smiley: :+1: :coffee: :australia:

1.8.19
image

@brunozwietisch don't forget to also answer my questions:

Sorry for the delayed response. I managed to solve the problem by updating the IDE. When @TomGeorge mentioned the version, I decided to check which was the most recent IDE, and mine was an older version.

I'm just starting with Arduino, so I got a bit lost here.

Congratulations on finding the solution! I'm glad it is working now. Thank you for taking the time to share your findings.

Regards, Per