Slic3r hiccough
by business_kid from LinuxQuestions.org on (#5CPC6)
I have Slic3r installed in /opt, but it's tripping over it's shoelaces in the startup script, /opt/Slic3r/Slic3r Code: cat /opt/Slic3r/Slic3r
#!/bin/bash
BIN=$(readlink "$0")
DIR=$(dirname "$BIN")
export LD_LIBRARY_PATH="$DIR/bin"
exec "$DIR/perl-local" -I"$DIR/local-lib/lib/perl5" "$DIR/slic3r.pl" $@It then pukes with the error Code:/opt/slic3r: line 6: /home/dec/Slic3r/perl-local: No such file or directoryRead that as 'line 5', because LQ omitted a blank line 2.
I often see lines very like the ones in bold in startup scripts, and it seems to be going wrong there. What exactly are they supposed to do?


#!/bin/bash
BIN=$(readlink "$0")
DIR=$(dirname "$BIN")
export LD_LIBRARY_PATH="$DIR/bin"
exec "$DIR/perl-local" -I"$DIR/local-lib/lib/perl5" "$DIR/slic3r.pl" $@It then pukes with the error Code:/opt/slic3r: line 6: /home/dec/Slic3r/perl-local: No such file or directoryRead that as 'line 5', because LQ omitted a blank line 2.
I often see lines very like the ones in bold in startup scripts, and it seems to be going wrong there. What exactly are they supposed to do?