Thanks for pointing out the hard-coded bug.

Thanks,

Matt.

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Timothy Coalson <[email protected]<mailto:[email protected]>>
Date: Monday, April 4, 2016 at 4:16 PM
To: arulspam <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [HCP-Users] PostFix bugs

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]<mailto:[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]<mailto:[email protected]>
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


_______________________________________________
HCP-Users mailing list
[email protected]<mailto:[email protected]>
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

________________________________
The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited. If you have received this email in error, please 
immediately notify the sender via telephone or return mail.

_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to