-
Notifications
You must be signed in to change notification settings - Fork 197
Fix unportable scripts on macOS #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ba0d41c to
d00051c
Compare
6a27543 to
5d5dd4b
Compare
75d9a3d to
e0ab34e
Compare
|
This PR is ready for review as it has sucessfully build demo cluster on both clean-installed Intel Mac and Apple M1 Mac. |
Baowen648
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We reset the system in intel and M1, and it has been verified that cbdb compilation, installation, cluster startup and icw test can be completed
e0ab34e to
1c0d6e2
Compare
|
I think I met the same |
tuhaihe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to successfully build CloudberryDB on macOS/m1 using this branch. Thank you for your hard work! @Ray-Eldath 🫶🏻
1. Regarding greenplum_path.sh: In some platforms (notably macOS), various Python installations may co-exist. When demo_cluster.sh creates segments using ssh, it may not run by the same Python installation as the coordinator because env are not passed through, causing the super weird "Module 'pgdb' not found" error. This PR fix this by probing the path of the Python installation and write it down in greenplum_path.sh 2. README.macOS.bash and gp_bash_functions.sh are changed as well to properly create cluster on macOS.
1c0d6e2 to
2e8b741
Compare
|
Hi @my-ship-it, could you please help review this pull request? Once it's approved, we can announce the new feature. Thank you! |
my-ship-it
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1. Regarding greenplum_path.sh: In some platforms (notably macOS), various Python installations may co-exist. When demo_cluster.sh creates segments using ssh, it may not run by the same Python installation as the coordinator because env are not passed through, causing the super weird "Module 'pgdb' not found" error. This PR fix this by probing the path of the Python installation and write it down in greenplum_path.sh 2. README.macOS.bash and gp_bash_functions.sh are changed as well to properly create cluster on macOS.
Current greenplum_path.sh is a result of apache#201 to make greenplum_path.sh always using the Python during ./configure. But it inadvertently changes user's $PATH. This portion of apache#201 is reverted, and it should be fine if user use pip install --user to install dependencies.
Current greenplum_path.sh is a result of apache#201 to make greenplum_path.sh always using the Python during ./configure. But it inadvertently changes user's $PATH. This portion of apache#201 is reverted, and it should be fine if user use pip install --user to install dependencies.
Change logs
Fix unportable scripts on macOS
greenplum_path.sh: In some platforms (notably macOS), various Python installations may co-exist. Whendemo_cluster.shcreates segments using ssh, it may not run by the same Python installation as the coordinator because env are not passed through, causing the super weird"Module 'pgdb' not found"error. This PR fix this by probing the path of the Python installation and write it down ingreenplum_path.sh.README.macOS.bashandgp_bash_functions.share changed as well to properly create cluster on macOS.Why are the changes needed?
Important
This PR is a by-product of #198. These two PR are necessary to support CBDB building and running on macOS platform.
Does this PR introduce any user-facing change?
Before this PR, user cannot run
make create-demo-clusteron macOS. Now they can.