Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion gpMgmt/bin/generate-greenplum-path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ else
fi
EOF

# only override PATH when Python used during ./configure isn't included in.
if [[ $(python3 -c "import sys; print(sys.executable)") == "${WHICHPYTHON}" ]]; then
PATHSTR='${GPHOME}/bin:${PATH}'
else
PATHSTR='${GPHOME}/bin:${PYTHONBINDIR}:${PATH}'
fi

cat <<EOF
PYTHONBINDIR="$(dirname "${WHICHPYTHON}")"
PATH="${PATHSTR}"
EOF

cat <<"EOF"
PYTHONPATH="${GPHOME}/lib/python"
PATH="${GPHOME}/bin:${PYTHONBINDIR}:${PATH}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can put $PATH in front ? like PATH="${PATH}:${GPHOME}/bin:${PYTHONBINDIR}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably no. The system psql like commands(comes from the standard postgres) will have higher precedence over the commands in cbdb.

LD_LIBRARY_PATH="${GPHOME}/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

if [ -e "${GPHOME}/etc/openssl.cnf" ]; then
Expand Down