[GSAS-II] FW: Re: [Ext]Re: [EXTERNAL] GSAS-II on Linux

Toby, Brian H. toby at anl.gov
Fri Aug 1 19:43:05 CDT 2025


Forwarding, as this was bounced from list

From: Carlo Segre <segre at illinoistech.edu>
Date: Friday, August 1, 2025 at 3:04 PM
To: Miguel A. Camblor <macamblor at icmm.csic.es>, gsas-ii at aps.anl.gov <gsas-ii at aps.anl.gov>, Zhang, Yuanpeng <zhangy3 at ornl.gov>
Subject: Re: [Ext]Re: [GSAS-II] [EXTERNAL] GSAS-II on Linux
Hi Miguel,

I am successfully using GSAS-II on Debian 13 (testing/trixie).  My installation is for global use by all users on the system using the native Python 3.13.5 on the system rather than a virtual environment or conda and I am currently at #5817, v5.4.10 of GSAS-II which is a bit out of date.  I also have a virtual Debian 12.0 (bookworm/stable) running 5802 and Python 3.11.2 which I have not updated in a while.

Both of these work fine apart from some warnings that are visible in the terminal window where I start the program.  I have tried to install on my virtual Debian 11.0 (bullseye/oldstable) but it was not successful with the procedure below because of the Python version being 3.9.2.  Apparently there is no compiled binary for this version on the github site.

My installation procedure is as follows:

Installing gsas2 as a system admin.

 1. sudo apt-get install python3-git
 2. cd /opt/
 3. sudo mkdir gsas2
 4. cd gsas2
 5. sudo curl -L -O https://urldefense.us/v3/__https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/raw/main/install/gitstrap.py__;!!G_uCfscf7eWS!eHDZKjrPzyqj5fKEN6PgsWwqaouiZH4MS8zo6fszdKfyRSZCCivsI0EjHn-xdwt_udzK6g-ReNlZtP4$ <https://urldefense.us/v3/__https://gcc02.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.us*2Fv3*2F__https*3A*2Fgithub.com*2FAdvancedPhotonSource*2FGSAS-II-buildtools*2Fraw*2Fmain*2Finstall*2Fgitstrap.py__*3B!!G_uCfscf7eWS!f8Sbjaolc8x2aPjGIF3aR9iemMKSceQTO0Oj_UqphIWEnPhDe584Oyht06t664oKgWOBih3jI9zb3iAmxCFdIPU*24&data=05*7C02*7Cgsas-ii*40aps.anl.gov*7Caa6092c825e942daf68708ddd15d8b2b*7C0cfca18525f749e38ae7704d5326e285*7C0*7C0*7C638896921876869799*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=L9w2J7A4fWkq6FMUG36gR5qEYtwBb4LCONR8i1r5*2Fm8*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!G_uCfscf7eWS!eHDZKjrPzyqj5fKEN6PgsWwqaouiZH4MS8zo6fszdKfyRSZCCivsI0EjHn-xdwt_udzK6g-Rq5cqf84$ >
 6. sudo python3 gitstrap.py
 7. cd GSAS-II/GSASII
 8. sudo chmod 0555 G2.py

make a 'gsas2' file in /usr/local/bin

#!/bin/bash
python3 /opt/gsas2/GSAS-II/GSASII/G2.py $*

make it executable

sudo chmod 0755 gsas2

run gsas-ii with 'gsas2'

Carlo

--
Carlo Segre, Duchossois Professor of Physics
Illinois Institute of Technology

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20250802/dc5abf98/attachment.html>


More information about the GSAS-II mailing list