Include ydbinstall in installed YottaDB directory; check for dependencies
Final Release Note
Unless the --verbose
option is given, the script is not overly chatty when installing plugins. Previously, while it was not chatty when installing YottaDB, installing plugins emitted many lines of output. The new behavior:
$ sudo ./ydbinstall --utf8 --allplugins
YottaDB version r1.39 installed successfully at /usr/local/lib/yottadb/r139
YottaDB pkg-config file installed successfully at /usr/share/pkgconfig/yottadb.pc
Now installing YDBAIM
Now installing YDBEncrypt
Now installing YDBPosix
Now installing YDBSodium
Now installing YDBGUI
Now installing YDBOcto
Now installing YDBZlib
$
ydbinstall
is included in the YottaDB installation directory. Since the --plugins-only
option of ydbinstall
provides for installation of new or updated plugins into an existing YDB installation directory, including ydbinstall
in the YDB installation directory avoids the need to download ydbinstall.sh
afresh to install plugins, which was required previously.
Included with this update are the following:
- The
--sodium
command line option, or a value of "Y" for $ydb_sodium in the environemnt instructydbinstall
/ydbinstall.sh
to install the YDBSodium plugin. - The
--allplugins
command line option, or a value of "Y" for $ydb_all in the environment instructydbinstall
/ydbinstall.sh
to install all plugins that it knows about. - Checks for header files required to install plugins.
- The script terminates immediately if any dependencies for processing the command line are not met, and after processing the command line if any dependencies for processing the rest of the script are not met. Then it checks for dependencies to run YottaDB as well for all the required installations and terminates after reporting all those missing dependencies.
- The files intended to be sourced,
ydb_env_set
andydb_env_unset
do not have execute permissions. They did previously, which could result in their being inadvertently executed. - The
--help
option reports options on alphabetic order. - If
openssl
is not installed on the system, it uses the standard GNU utilitysha256sum
to compute SHA256 sums of installation files. - The script has been significantly restructured, with efficiency and maintainability improvements.
[#997 (closed)] [#1011 (closed)]
Description
Draft Release Note
The ydbinstall
script used to install YottaDB is available post-installation in the $ydb_dist
directory, facilitating the subsequent installation of new or updated plugins. Previously, it was not thus available. Also:
- If GUI installation is requested,
ydbinstall
checks for themkpasswd
utility. - If encryption plugin is requested, it checks for
libconfig.so
andlibssl.so
- If Octo installation is requested, it checks for
libreadline.so
.
Note that the checks should really be for the header files and libraries, but while ldconfig
is a standard way to check for libraries, there is no standard way to check for header files except the heavyweight find
. Consequently, the check is restricted to just the libraries.