I am in the process of making a minimal (64MB)FreeBSD image for a diskless PXEboot folding farm. I have almost got it going, but I have probably missed some critical library and -bench fails with the following error:

farm1.root # ./foldtrajlite -bench
One moment, opening rotamer library...
Predicting secondary structure and generating trajectory distribution...


Error Number -70, 90621
Reading File
file4readError

/var/tmp/tmp_eJDpJ5_2095_523.fpt
0 8
file4readAllLow


Error Number -60, 91102
Opening File
dfile4...()



The /var/tmp dir exists and is world writable. I did a ldd on foldtrajlite which gave the following dependencies that I made sure were copied across:

foldtrajlite:
libm.so.2 => /usr/lib/libm.so.2 (0x2842d000)
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x28448000)
libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28489000)

Can anyone suggest a library that I might have forgotten to copy across?

Here is my listing of the minimalist /usr/lib:

drwxr-xr-x 2 root wheel 512 Sep 26 19:44 .
drwxr-xr-x 7 root wheel 512 Sep 27 09:16 ..
-r--r--r-- 1 root wheel 1224622 Sep 26 07:45 libc.a
-r--r--r-- 1 root wheel 578964 Sep 26 12:03 libc.so.4
-r--r--r-- 1 root wheel 677416 Sep 26 11:17 libc_r.so.4
-r--r--r-- 1 root wheel 28432 Sep 26 12:01 libcrypt.so.2
-r--r--r-- 1 root wheel 1021460 Sep 26 12:00 libcrypto.so.3
-r--r--r-- 1 root wheel 140100 Sep 26 07:45 libgcc.a
-r--r--r-- 1 root wheel 117024 Sep 26 07:53 libm.so.2
-r--r--r-- 1 root wheel 39396 Sep 26 12:00 libmp.so.3
-r--r--r-- 1 root wheel 405390 Sep 26 19:44 libncurses.a
lrwxr-xr-x 1 root wheel 15 Sep 26 19:42 libncurses.so -> libncurses.so.5
-r--r--r-- 1 root wheel 258200 Sep 26 08:16 libncurses.so.5
-r--r--r-- 1 root wheel 38432 Sep 26 12:02 libpam.so.1
lrwxr-xr-x 1 root wheel 12 Sep 26 19:44 libtermcap.a -> libncurses.a
lrwxr-xr-x 1 root wheel 13 Sep 26 19:43 libtermcap.so -> libncurses.so
lrwxr-xr-x 1 root wheel 12 Sep 26 19:44 libtermlib.a -> libncurses.a
lrwxr-xr-x 1 root wheel 13 Sep 26 19:43 libtermlib.so -> libncurses.so
-r--r--r-- 1 root wheel 32728 Sep 26 12:00 libutil.so.3


I also get a similar error trying to fold after the completion of gen 0 I guess it's in the writing/upload stage.