buildMetarDB command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
buildMetarDB: command not found
or when using sudo you get the following error message
sudo: buildMetarDB: command not found
Solutions to buildMetarDB: command not found
How To Fix buildMetarDB: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu buildMetarDB is provided by php-services-weather package.
php-services-weather is:
Services_Weather searches for given locations and retrieves current weather data and, dependent on the used service, also forecasts. Up to now, GlobalWeather from CapeScience, Weather XML from EJSE (US only), a XOAP service from Weather.com and METAR/TAF from NOAA are supported. Further services will get included, if they become available, have a usable API and are properly documented.
To fix this problem, we can install more using the command below.
sudo apt-get -y install php-services-weather
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install php-services-weather.
sudo apt -y install php-services-weather
Or if you have aptitude installed you can use the following command.
sudo aptitude install php-services-weather
Summary
In this tutorial we learn how to fix buildMetarDB command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.