[Vm-dev] Linux vm default plugins directory

Eliot Miranda eliot.miranda at gmail.com
Wed Sep 1 19:12:24 UTC 2010


Hi Wilhelm,

On Wed, Sep 1, 2010 at 12:01 PM, Schwab,Wilhelm K <bschwab at anest.ufl.edu>wrote:

>
> A recurring theme is that I encounter a problem for which there is no
> explanation from the system, hack the vm sources to add some tracing, and
> correct the problem.  As a result, I end up building the vm from source and
> so tend to use a shell script that runs it.
>

Set LD_LIBRARY_PATH to include the relevant directory.  Here's the script I
use at Teleplace, where the script is root/bin/squeak and the so's are in
root/lib/squeak/3.9-7.  You can tailor to suit.

#!/bin/sh
BIN=`/usr/bin/dirname "$0"`/../lib/squeak/3.9-7
# At least on linux LD_LIBRARY_PATH's components must be absolute path names
case "$BIN" in
/*) PLUGINS="$BIN";;
*) PLUGINS="`pwd`/$BIN"
esac
# prepending is less flexible but safer because it ensures we find the
plugins
# in the same directory as the VM.
LD_LIBRARY_PATH=$PLUGINS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec
"$BIN/squeak" "$@"

HTH
Eliot


> FWIW, without a -plugins option, this is what happens with the current
> sources:
>
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.vm-sound-OSS
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.vm-sound-MacOSX
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.vm-sound-Sun
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.vm-sound-pulse
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.vm-sound-ALSA
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.MiscPrimitivePlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.FilePlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.SecurityPlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.LargeIntegers
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.BitBltPlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.B2DPlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.LocalePlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.SocketPlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.FloatArrayPlugin
> Load failed for: /usr/local/lib/squeak/4.0.3-2202//so.Matrix2x3Plugin
>
> Note the extra / in the paths.  Some of the plugins should fail to load;
> the point is that *all* of them fail to load.
>
> Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100901/618245ef/attachment.htm


More information about the Vm-dev mailing list