I'm trying to merge 12 .tif raster layers (raster -> misc -> build virtual raster), but keep getting this error:

Loading resulting layers The following layers were not correctly generated.

  • /var/folders/4f/3vtn5c5s7zd3qnrn03_5bc1r0000gn/T/processing_201ee1195d8f460f8c74a248f1bab91c/878b8a3be722499da52c93b6f72c083c/OUTPUT.vrt
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm."

"2018-10-19T13:21:01 INFO gdalbuildvrt -resolution average -separate -r nearest -input_file_list /var/folders/4f/3vtn5c5s7zd3qnrn03_5bc1r0000gn/T/processing_201ee1195d8f460f8c74a248f1bab91c/buildvrtInputFiles.txt /var/folders/4f/3vtn5c5s7zd3qnrn03_5bc1r0000gn/T/processing_201ee1195d8f460f8c74a248f1bab91c/523821c6a9a64cd2a7789f266b312785/OUTPUT.vrt 2018-10-19T13:21:01 INFO GDAL execution console output /bin/sh: gdalbuildvrt: command not found

  • There is something wrong with your installation because "gdalbuildvrt: command not found"
    – user30184
    Commented Oct 19, 2018 at 19:10

1 Answer 1


Are you running windows or...?

My experience in windows is that uninstalling QGIS and reinstalling QGIS (along with GDAL) as part of the OSGEO4W installer is the easiest way to get an installation that works.

Alternatively you could try to reinstall GDAL.

I have just tested (raster -> misc -> build virtual raster) and it works well with this approach to installation.

  • I have a macbook pro :/
    – Ken
    Commented Oct 20, 2018 at 21:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.