crossbow icon indicating copy to clipboard operation
crossbow copied to clipboard

cb_script shall use $RealBin instead of $Bin to resolve libraries

Open vlad-belogrudov opened this issue 11 years ago • 0 comments

One of the ways to use cb_* scripts can be putting symbolic links to them in /usr/local/bin or similar paths (instead of polluting ever growing PATH). Unfortunately the Perl scripts find their libraries by checking executable file path and its directory without following any symbolic links. I suggest using $RealBin instead of $Bin to resolve this situation the easiest way.

one can patch the cb_hadoop script, for example, with

sudo sed -i 's/$Bin/$RealBin/g' /biotools/crossbow/cb_hadoop

Best regards, Vlad

vlad-belogrudov avatar Oct 29 '13 14:10 vlad-belogrudov