Are you sure they were libraries and not the ESP32 board package. I think this one describes the same problem but might be for a different board: Compiler error : xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory.
Which board are you using?