I need to have a script that will install a package from source in a Linux system and need to know how to take care of the errors that usually come up as a result of the first step ./configure maybe a package is missing his will just kill the process and will not completely configure the package from the given source.
I have a script that is a normal bash organized in that it will
- unpack the sources tar
- cd into the directory
- Run ./configure
I need help to make sure that for example If the package was GNUCASH and running ./configure returns
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc' to the
PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found
configure: error: Library requirements (libxml-2.0 >= 2.5.10) not met;consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.
My script will take care of the missing libxml package or at least help the end user to troubleshoot the process automatically in order to make sure all the steps of the BUILD process are taken and each error that may occur will be taken care of.