Closed vigji closed 4 years ago
I added this to my .bashrc
, not sure if it's needed:
export NIFTYREG_INSTALL=/Users/fernando/git/niftyreg/install
PATH=${NIFTYREG_INSTALL}/bin:$PATH
LD_LIBRARY_PATH={NIFTYREG_INSTALL}/lib:${LD_LIBRARY_PATH}
export PATH
export LD_LIBRARY_PATH
Thank for the reply! Unfortunately, either I am doing something wrong or it does not seem to be working...
Ok, I got the problem.
Configuring the .bash_profile with those line solves the problem when running from a shell, but when I try to run commands through python subprocess.check_call
it does not recognise the configured LD_LIBRARY_PATH
, I needed to prepend it again in the string with the other commands.
Thanks for the help!
I have been trying to follow instructions in https://github.com/KCL-BMEIS/niftyreg/wiki/install to compile NiftyReg on a macOS catalina.
I have done everything as required: I have the folders /Users/username/niftyreg_install and build; i enter /Users/username/niftyreg_install in the configuration window; everything runs; and when trying
reg_f3d -h
I get the following error:Do you have any idea about what could I be doing wrong?