Matlab is known to do some strange things to dynamic linking at least on
linux for things run with system() or similar. It might be appropriate to
write a workaround passthrough script for binaries/shell scripts to
set/clear LD_LIBRARY_PATH and related, specifically to deal with matlab's
strangeness, something like:
#!/bin/bash
unset LD_LIBRARY_PATH LD_PRELOAD
exec "$@"
Which would then be called from matlab like "system('matlab_run.sh
wb_command -whatever');" . However, I'm not really sure what the cleanest
way to deal with this situation is.
Tim
On Mon, Apr 4, 2016 at 2:39 PM, arulspam <[email protected]> wrote:
> Dear HCPers,
>
> Maybe a couple bugs in PostFix.
>
> I had to add paths to wb_command lib dependencies to the front of the
> LD_LIBRARY_PATH in Compiled_prepareICAs/distrib/run_prepareICAs.sh,
> otherwise I got errors such as:
> /usr/bin/wb_command:
> /usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/os/glnxa64/libstdc++.so.6:
> version `GLIBCXX_3.4.15' not found (required by /usr/bin/wb_command)
> /usr/bin/wb_command:
> /usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/os/glnxa64/libstdc++.so.6:
> version `GLIBCXX_3.4.20' not found (required by /usr/bin/wb_command)
>
> Also, PostFix.sh accepts highpass as an arg but there some instances in
> the script where hp2000 is explicitly set, so it would likely not work
> correctly if hp is not 2000.
>
> Cheers,
> A.
>
> _______________________________________________
> HCP-Users mailing list
> [email protected]
> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>
_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users