Author Topic: RASPA Simulations Directory not Found  (Read 114 times)

amogh

  • Newbie
  • *
  • Posts: 4
    • View Profile
RASPA Simulations Directory not Found
« on: September 03, 2021, 07:05:04 PM »
Hey everyone,

I am new here and trying to conduct bulk density adsorption simulations with RASPA2. I am currently running through all of the setup and am trying to run one of the example simulations: examples/BookChapter/6-GrandCanonicalAdsorption/Methane/.

When examining the "run" file I see that it calls for a directory RASPA/simulations and then within simulations/lib and bin/simulate, however, I am unable to find any of these directories when downloading the RASPA2 repo from Github. I have also tried running ./run as a test to see if I missed these folders but it also states "No such file or directory". Any help would be greatly appreciated!

AHF

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #1 on: September 03, 2021, 07:55:01 PM »
You first need to compile and install RASPA according to the procedure explained in the User Guide (section 1.3 Compiling and installing RASPA).
As part of this procedure, you will need to set the RASPA_DIR environment variable: export RASPA DIR=${HOME}/RASPA/simulations/
This is how you will create this directory which also contains the executable file.

Hope this helps.

amogh

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #2 on: September 07, 2021, 06:23:51 PM »
Thank you for the direction! I realize I missed a step as mentioned in 1.3. However, when I try to "make install" or "sudo make install" on Mac OSX 10.15.7, it gives the error "gmkdir: cannot create directory ‘/lib’: Read-only file system". I was wondering if there is something else I might have missed that causes this or if there are additional setup steps I need to take to set up RASPA on Mac OS. Thank you!

amogh

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #3 on: September 15, 2021, 06:24:03 PM »
I was able to solve this issue and just thought I'd leave an update to this for anyone in the future that runs into this issue. On Mac OSX 10.15 and newer, the system must be put into Recovery mode by holding "command+R" while restarting. Once in Recovery mode, the Terminal must be accessed and the following commands should help resolve the issue:

csrutil status
csrutil disable

~boot up computer as normal again and reopen terminal~

sudo mount -uw /

~restart once more if the "sudo make install" command hits the same error while compiling~

Hope this helps!



David Dubbeldam

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #4 on: September 22, 2021, 02:52:10 PM »
You should not install it on /lib, which is indeed a read-only systems directory.
Better just install it in your home account.

In the raspa-directory do:
rm -rf autom4te.cache 
mkdir m4 
aclocal 
autoreconf -i 
automake --add-missing 
autoconf 
./scripts/CompileScript/make-gcc-local
make
make install
« Last Edit: September 22, 2021, 02:55:43 PM by David Dubbeldam »

amogh

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #5 on: September 24, 2021, 08:48:44 PM »
For setting the RASPA_DIR variable, what is the ideal path to do so? After cloning from Github and running the install commands in the RASPA2 main directory, I just want to make sure I set RASPA_DIR correctly as it often looks for files that don't exist when I have done it before.

David Dubbeldam

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: RASPA Simulations Directory not Found
« Reply #6 on: September 27, 2021, 07:27:24 PM »
That is done in the run-file. See manual "1.3.5 Running RASPA".