".bash_profile: Operation not permitted" during macOS installation of SCT v6.5

install_sct_log.txt (651 Bytes)

Dear @zengqiang_ouyang,

Thank you for reporting this error and sharing the log.

This is a common error that we have previously encountered in Installation failed ? macbook as well as Issue installing SCT 6.5 on Mac.

The solution is to “take ownership” of the file .bash_profile and ensure you have read/write privileges:

sudo chown ouyangzengqiang /Users/ouyangzengqiang/.bash_profile
sudo chmod +rw /Users/ouyangzengqiang/.bash_profile

Then you should be able to run the install_sct command again without error.

Kind regards,
Joshua