ydbinstall correctly reports failure to install UTF-8 mode
Final Release Note
ydbinstall
reports failure when a requested UTF-8 mode installation fails. Previously it reported success, even when it failed. This was only encountered in the development environment, and was never reported by a user. [#765 (closed)]
Description
sudo ./ydbinstall.sh --utf8 default
reports a successful installation; however, that is not really true if the ICU libraries have not been installed.
root@10cb4c73474e:/tmp/tmp# sudo ./ydbinstall.sh --utf8 default
YottaDB version r1.32 installed successfully at /usr/local/lib/yottadb/r132
YottaDB pkg-config file installed successfully at /usr/share/pkgconfig/yottadb.pc
root@10cb4c73474e:/tmp/tmp# ls -d /usr/local/lib/yottadb/r132/utf8
ls: cannot access '/usr/local/lib/yottadb/r132/utf8': No such file or directory
We need to:
- If UTF-8 is requested, check that the libicu libraries have been installed (libicuio.so is a good candidate).
- Fail if we cannot install UTF-8 mode.
To check if a library is installed, I found this on ServerFault: https://serverfault.com/questions/54736/how-to-check-if-a-library-is-installed.
To uninstall the libraries, you need to look online as packages differ by Linux distribution.
Draft Release Note
ydbinstall.sh
previously reported success for installing YottaDB in UTF-8 mode, even though it actually failed. Now, the installer will correctly report its success.