Update README and Install Script for Non-Root User Support #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request enhances the
README.rstandtools/install_gaussdb_driver.shto support non-root user installations of the GaussDB driver. The changes ensure that non-root users can install and configure the driver by leveraging user-level permissions, updating dynamic link library paths, and improving idempotency. The updates also improve documentation clarity and streamline the installation process for various supported systems (HCE, CentOS, Euler, Kylin).Changes Made
README.rst:
gaussdbUser) with sudo privileges.tools/install_gaussdb_driver.sh:
ldconfigto support non-root users.sudowhere possible, enabling user-level operations.$HOME_DIR/GaussDB_driver_lib) and append to~/.bashrc./etc/ld.so.confmodifications with user-specific/etc/ld.so.conf.d/$(whoami).conf.libpqin the user’s library directory instead of system-wideldconfig -p.~/.bashrcwhen the script is sourced, with guidance for manual sourcing if not.Testing
install_gaussdb_driver.shscript on EulerOS, CentOS, and Kylin systems as a non-root user with sudo privileges.$HOME_DIR/GaussDB_driver_liband thatLD_LIBRARY_PATHis updated in~/.bashrc.libpqis detected in the user’s library directory post-installation.Additional Notes
wheelgroup membership and sudo privileges for certain operations (e.g.,ldconfig).README.rstprovides clear instructions for setting up a non-root user, which should help new contributors.