xChar
·6 months ago

Recently I encountered an XDS installation error when processing a set of diffraction data, so I tried to reinstall the whole XDS-related software.

When you try to install it according to the official guide, you can install the XDS package successfully, but it comes with an error when you try to install other programs such as XDS-viewer, XDSSTAT, XDSCC12, XDSGUI, XSCALE_ISOCLUSTER, generate_XDS.INP.

The official commands are:

sudo su
mkdir -p /usr/local/bin/mac_bin
cd /usr/local/bin/mac_bin
curl -O -R https://wiki.uni-konstanz.de/pub/mac_bin/get_folder_silicon.sh
chmod +x get_folder_silicon.sh
./get_folder_silicon.sh

But when you run the ./get_folder_silicon.sh, it will show that grep: ./get_folder.sh: No such file or directory.

Truth is: the command in ./get_folder_silicon.sh is copied from ./get_folder.sh, which is prepared for Intel Mac.

#!/bin/bash
# script for copying files from mac_bin directory on wiki.uni-konstanz.de server to client Mac
# this should work for Silicon Macs

# run a "runme" helper script so that the current get_folder.sh can be overwritten by the new one:
grep -v runme ./get_folder.sh > ./get_folder.sh.runme
chmod +x ./get_folder.sh.runme
exec ./get_folder.sh.runme && exit

The correct file name should be get_folder_silicon.sh rather than get_folder.sh.

So the easiest way to fix it is to rename the file to get_folder.sh:

mv get_folder_silicon.sh get_folder.sh

Or change the file name when you get it:

curl -o get_folder.sh -R https://wiki.uni-konstanz.de/pub/mac_bin/get_folder_silicon.sh

==The correct complete commands are:==

sudo su
mkdir -p /usr/local/bin/mac_bin
cd /usr/local/bin/mac_bin
curl -o get_folder.sh -R https://wiki.uni-konstanz.de/pub/mac_bin/get_folder_silicon.sh
chmod +x get_folder.sh
./get_folder_silicon.sh

But unfortunately, I still failed to solve the problem raised at the beginning of the article

此文由 Mix Space 同步更新至 xLog
原始链接为 https://xxu.do/posts/structure/XDS-Installation-Issue-on-arm64-Mac


Loading comments...