2,684
edits
(→XDS package: make clear which commands require to be root) Tags: Mobile edit Mobile web edit Advanced mobile edit |
(→macOS: continue fixing explanations of where root is needed) Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 80: | Line 80: | ||
== macOS == | == macOS == | ||
Become familiar with the concept and ways to run commands as "root" (administrator) - google "mac osx become root". All the installation tasks that are run in a Terminal window require root privileges, since some of the programs and their links are written to /usr/local/bin. (As an alternative that does not require root for installation, one may create a directory $HOME/bin and use that for the programs and links. That would also require modification of the $PATH, by a one-time <code>echo 'export PATH=$PATH:$HOME/bin' >> ~/.profile; echo 'export PATH=$PATH:$HOME/bin' >> ~/.zprofile</code>) | |||
So, prepare the following steps by opening the Terminal window, and then | |||
sudo su # this will make you root, and ask for your password | |||
mkdir /usr/local/bin # only if /usr/local/bin was not created before | |||
=== [[XDS]] package === | === [[XDS]] package === | ||
If you are an academic user, | If you are an academic user, | ||
# obtain | # obtain root permissions (it will ask for your password): | ||
sudo su | |||
cd /usr/local/bin | cd /usr/local/bin | ||
curl -L -o - https://xds.mr.mpg.de/XDS-OSX_64.tar.gz | tar xzvf - | curl -L -o - https://xds.mr.mpg.de/XDS-OSX_64.tar.gz | tar xzvf - | ||
ln -sf XDS-OSX_64/* . | ln -sf XDS-OSX_64/* . | ||
# release | # release root permissions: | ||
exit | exit | ||
Line 106: | Line 113: | ||
Change the above <code>curl</code> and <code>ln</code> commands to | Change the above <code>curl</code> and <code>ln</code> commands to | ||
# become root: | # become root (it will ask for your password): | ||
sudo su | sudo su | ||
curl -L -o - https://xds.mr.mpg.de/XDS-Apple_M1.tar.gz | tar xzvf - | curl -L -o - https://xds.mr.mpg.de/XDS-Apple_M1.tar.gz | tar xzvf - | ||
Line 138: | Line 145: | ||
Only Terminal windows that are opened afterwards will have access to the CCP4 programs! | Only Terminal windows that are opened afterwards will have access to the CCP4 programs! | ||
=== other programs: [[XDS-viewer]], [[XDSSTAT]], [[XDSCC12]], [[XDSGUI]], [[XSCALE_ISOCLUSTER]], [[generate_XDS.INP]] === | === other programs: [[XDS-viewer]], [[XDSSTAT]], [[XDSCC12]], [[XDSGUI]], [[XSCALE_ISOCLUSTER]], [[generate_XDS.INP]] === | ||
Line 155: | Line 156: | ||
chmod +x get_folder.sh | chmod +x get_folder.sh | ||
./get_folder.sh | ./get_folder.sh | ||
Give up root rights: | |||
exit | |||
If you want to update the programs some time later, just run these commands again. | If you want to update the programs some time later, just run these commands again. | ||