[xcrysden] xcrysden script for MacOS

David Strubbe dstrubbe at civet.berkeley.edu
Thu Oct 18 18:53:03 CEST 2012


I am not sure what you mean. Isn't this checking whether external/lib
exists, as below:

if test -d $XCRYSDEN_TOPDIR/external/lib ; then
    if test -z "${LD_LIBRARY_PATH}"; then
LD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib"
    else
LD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib:$LD_LIBRARY_PATH"
    fi
    export LD_LIBRARY_PATH

    if test -z "${DYLD_LIBRARY_PATH}"; then
DYLD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib"
    else
DYLD_LIBRARY_PATH="$XCRYSDEN_TOPDIR/external/lib:$DYLD_LIBRARY_PATH"
    fi
    export DYLD_LIBRARY_PATH
fi

Since external/lib will always exist after building xcrysden,
DYLD_LIBRARY_PATH will always be set. No, I am not using anything from
external/lib, as you can see:

$ otool -L bin/xcrys
bin/xcrys:
        /opt/local/lib/libfftw3.3.dylib (compatibility version 7.0.0,
current version 7.2.0)
        /opt/local/lib/libmeschach.1.dylib (compatibility version 1.2.0,
current version 1.2.0)
        /opt/local/lib/libtk8.5.dylib (compatibility version 8.5.0, current
version 8.5.12)
        /opt/local/lib/libtcl8.5.dylib (compatibility version 8.5.0,
current version 8.5.12)
        /usr/X11/lib/libGLU.1.dylib (compatibility version 1.3.0, current
version 1.3.0)
        /usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current
version 1.2.0)
        /opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
        /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
        /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 169.3.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1669.0.0)
        /opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.


On Thu, Oct 18, 2012 at 7:43 AM, Tone Kokalj <tone.kokalj at ijs.si> wrote:

> On Tue, 2012-10-16 at 13:05 -0400, David Strubbe wrote:
> > Dear Dr. Kokalj,
> >
> >
> > I would like to suggest removal of these lines from the "xcrysden"
> > script in the package. If you are trying to use libraries other than
> > in external/lib, then these lines cause the system to look in the
> > wrong places and the executable cannot run, and I could only make it
> > work by commenting them out. These lines are within a check whether
> > "external/lib" exists, which I presume is an attempt to see whether
> > the external libraries are being used.
>
> No, it is just the opposite. These lines add the
> $XCRYSDEN_TOPDIR/external/lib to the DYLD_LIBRARY_PATH (it is implicitly
> assumed that external/lib is always there).
>
> I assume that what is going on is that you have compiled also some
> external libraries during xcrysden compilation, which now reside in
> external/lib, and probably they are not functioning well. To see which
> libraries are loaded run (with original xcrysden script without the
> pertinent lines removed) xcrysden as :
>
> xcrysden -d
>
> (you will probably need to edit xcrysden script and replace the "ldd"
> with "otool -L")
>
> Let me know what happens.
>
> Regards,
>
> --
> Anton Kokalj
> J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia
> (tel: +386-1-477-3523 // fax:+386-1-477-3822)
>
> Please, if possible, avoid sending me Word or PowerPoint attachments.
> See:  http://www.gnu.org/philosophy/no-word-attachments.html
>
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20121018/95b464e7/attachment.htm 


More information about the XCrySDen mailing list