Dear James, Tim.

the command below (setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/path/of/directory/which/contains/thelib)
worked for me.

Thanks a lot.

Maia

James Holton wrote:
for tcsh, the command is:

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/path/of/directory/which/contains/thelib


-James Holton
TCSH Scientist


On 4/30/2010 12:13 PM, Tim Gruene wrote:
one-time solution:
In the terminal from which you want to start the program, type
   export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/of/directory/which/contains/thelib
then start the program.

This is valid for a POSIX-compliant shell (bash, ksh, zsh, sh,...).
If you use (t)csh, the syntax is different, probably something like
set LD_LIBRARY_PATH $LD_LIBRARY_PATH:/path/of/directory/which/contains/thelib

but [flame] you shouldn't use tcsh, it's outdated - the welcome page of tcsh.org was last edited nearly six years ago[/flame] (don't take this comment seriously unless you like nerdish flame wars - I hope someone on the list does ;-) )

long-term solution:
a) put the above command into your shell's start-up script
b) ask the author of the program or whoever compiled it to use the switch '-static-intel'. This doesn't alter the functionality of the program and makes it independent of the intel libraries which most people (notably non-developers)
probably don't have on their system.

Cheers, Tim

On Fri, Apr 30, 2010 at 12:53:49PM -0600, Maia Cherney wrote:
Hi bb,

when I try to run al3 (align) I get the error message
error while loading shared libraries: libcxa.so.5: cannot open shared
object file: No such file or directory

In fact, this file exists. How can I tell al3 where to look for this file?

Maia

Ed Pozharski wrote:
On Fri, 2010-04-30 at 13:35 +0100, Nicholas Keep wrote:

If anyone has a piece of software that would do this it would be
great.


How about this (this is a single line)

---
grep 'ATOM\|HETATM' file1.pdb file2.pdb |grep -v REMARK | cut -d: -f 2 | cut -c 13-54 | sort | awk 'BEGIN {FIELDWIDTHS = "14 28"; pt=""} {if(pt== $1) print pr,$2; pt=$1; pr=$0;}' | awk 'BEGIN {FIELDWIDTHS = "14 4 8 8 8 5 8 8 8"} {printf "%s %8.4f\n",$1,sqrt(($3-$7)^2+($4-$8)^2+($5-$9)^2);}' | awk 'BEGIN {FIELDWIDTHS = "4 1 3 1 1 5 9"} {printf "%s %s %s %s %s\n",
$3,$5,$6,$1,$7;}'
---

The output is not sorted (sort isn't friendly to the idea of sorting
alphabetically and numerically at the same time).  And "awk" means
"gawk" - "mawk" (Ubuntu default) doesn't allow fixed field selection
which is key to dealing with files that have alternate conformers).

HTH,

Ed.




Reply via email to