[MINC-users] dyld errors

Dale Einarson dale at bic.mni.mcgill.ca
Fri Mar 6 13:01:52 EST 2009


Hello all,
    Hi Alex,  I got this working but (see the quick fix)

When I 'setenv DYLD_LIBRARY_PATH ""' I get "dyld: Library not loaded: / 
libnetpbm.10.dylib".  However if I "setenv  DYLD_LIBRARY_PATH  
$LD_LIBRARY_PATH"   I get errors about  jpeg,tiff and png missing  
symbols...

        This is rather odd,  the "osx-10.5-x86_64-alex" tar was  
working last time I installed it... but I just reinstalled it to "see  
what's up" and found it works if you replace the aforementioned libs  
with fink ( 32 bit libs )?...


A quick fix to get people going?
################################################
# For bash users, this should work
#(replace /usr/local the location of the untared copy  "osx-10.5- 
x86_64-alex"   )

MINC_ROOT=/usr/local/

#  move the libs out of the way ( this means you will need the 3 libs  
installed via fink)
cd $MINC_ROOT
mv lib/libJPEG.dylib  lib/libJPEG.dylibo
mv lib/libTIFF.dylib  lib/libTIFF.dylibo
mv lib/libPng.dylib  lib/libPng.dylibo

#  set the env to reflect the install
export PATH=$MINC_ROOT/bin:$MINC_ROOT/mni/bin:$MINC_ROOT/bic/bin:$PATH
export LD_LIBRARY_PATH=/sw/lib:$MINC_ROOT/lib:$MINC_ROOT/mni/lib: 
$MINC_ROOT/bic/lib
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH

# test to see if it works
Display



Cheers!
dale


On 6-Mar-09, at 9:39 AM, Rick Hoge wrote:

>
> Maybe this is more for the developer's list, but to follow up...
>
>> The only thing that's missing is an answer to the question "how can I
>> tell if my processor is 64-bit".  I can't find any command-line
>> utility (uname, arch, machine, etc.) that will generate an x86_64
>> output on my MacBook Pro (on which I'm developing and running all
>> kinds of 64-bit stuff).
>
> You *can* get the manufacturer's processor name on the command-line on
> a Mac using
>
> Rick-MBP:~ -> system_profiler | grep 'Processor Name'
>       Processor Name: Intel Core 2 Duo
>
> But this does not explicitly indicate the pointer width.
>
> More painfully, you could build a tiny program that prints the value
> of sizeof(void*):
>
> echo "#include <stdio.h>" > test.c
> echo "int main(int argc, char *argv[]) { fprintf(stdout,\"%d\n
> \",sizeof(void*)); return 0; }" >> test.c
> gcc -o test-64 -arch x86_64 test.c
> gcc -o test-32 -arch i386 test.c
> lipo -create test-64 test-32 -output test-fat
>
> running the 'test-fat' executable will print 4 on a 32-bit system, and
> 8 on a 64-bit system (prints 8 on my Core 2 Duo MacBook Pro).
>
> The new version of NeuroLens (to be released 'soon') indicates the
> architecture in the About panel using something like this.
>
> Rick
>
>
>
>
>
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www2.bic.mni.mcgill.ca/mailman/listinfo/minc-users



More information about the MINC-users mailing list