Network-wide installation

1 view
Skip to first unread message

Ansgar Esztermann

unread,
Jan 26, 2009, 6:15:23 AM1/26/09
to sage-s...@googlegroups.com
Hello everyone,

I have just installed sage 3.2.3 to a directory that is being shared
among various AMD- and Intel-based Linux workstations. In case anyone
else wants to do the same, I will briefly summarize what I did.

i) Following advice from the friendly folks at #sage-support, I
selected two build machines, one for each architecture. I made sure to
use older machines to avoid generating e.g. SSE3 instructions.

ii) After re-exporting the software directory (we use /usr/local) read-
write to these two machines, follow the documentation at http://www.sagemath.org/doc/inst/node8.html
. Actually, I wanted to avoid the NFS overhead, so I did not build in
place, but in a local directory instead. Afterwards, I copied that
directory to its place on /usr/local via tar and scp. Note that step 3
from the docs (make test) should be performed after copying.

iii) In step 4, copy to sage-intel and sage-amd rather than sage.

iv) Create a wrapper script to detect the architecture. Mine is a bit
simplistic, but should work (unless you use it on a non-AMD, non-Intel
machine, where it exits silently). It looks like this:

---------------------------------------------------------------------------
#!/bin/sh

grep GenuineIntel /proc/cpuinfo >/dev/null && /usr/local/bin/sage-
intel "$@"
grep AuthenticAMD /proc/cpuinfo >/dev/null && /usr/local/bin/sage-amd
"$@"
---------------------------------------------------------------------------


A.

Reply all
Reply to author
Forward
0 new messages