IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    XDS Installation Issue on arm64 Mac

    Jayden\'s site发表于 2024-05-25 12:31:41
    love 0
    该渲染由 marked 生成,可能存在排版问题,最佳体验请前往:https://xxu.do/posts/structure/XDS-Installation-Issue-on-arm64-Mac

    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.sh

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

    看完了?说点什么呢



沪ICP备19023445号-2号
友情链接