macaulay2

Ceci est une ancienne révision du document !


installation des binaires

  • sur calypso et t2000
  • Utilisation: /usr/local/Macaulay2-0.9.2/bin/M2

compilation version stable

  • compilé sur nemo, version 0.9.95
  • en 32 bits pour commencer
  • options de compilation, voir scripts do_work.sh dans chaque répertoire
  • blas et lapack font partie de la Sun Perf Lib (–with-lapacklibs=“-lsunperf”)

Les librairies nécessaires

nom archive installée dans logs
Singular-Factory factory-3-0-2.tar.gz /local/henry/logiciels/{lib,include} /local/henry/factory/{WORK,MAKE_GFTABLES,INSTALL}.LOG
Singular-Libfac libfac-3-0-2.tar.gz /local/henry/logiciels/{lib,include} /local/henry/libfac/WORK.LOG
gmp 4.2.1 /opt/csw/(lib,include)
gc gc-7.0.tar.gz /local/henry/logiciels/{lib,include} /local/henry/gc-7.0/{WORK,CHECK}.LOG
gdbm 1.8.3 /opt/csw/(lib,include)
ntl or Singular-ntl ntl-5.4.1.tar.gz /local/henry/logiciels/{lib,include} /local/henry/ntl-5.4.1/src/{MAKE,INSTALL}.LOG

version svn

nemo-dgrayson% svn co svn://macaulay2.math.uiuc.edu/Macaulay2/trunk/M2
...
Checked out revision 5981.
nemo-dgrayson% cd M2
/home/dgrayson/M2
nemo-dgrayson% make
+ autoconf
+ rm -f include/config.h.in.stamp
autoheader
touch "include/config.h.in.stamp"
--: The configure script in this directory has been prepared.
--: To configure and build Macaulay 2:
--:
     mkdir BUILD/normal
     cd BUILD/normal
     ../../configure --prefix=/usr/local
     make install
--:
--: To reconfigure and try again:
--:
     cd BUILD/normal
     make reconfigure install
--:
--: To see all the options to "configure":
--:
     ./configure --help
--:

Problèmes

bien entendu, le configure ne prend pas tout en compte, du coup:

./configure PREFIX=$HOME/logiciels/64 \
GMP_PREFIX=$HOME/logiciels/64 \
NTL_GMP_LIP=on NTL_STD_CXX=on NTL_NO_INIT_TRANS=on NTL_CXX_ONLY=on \
CC=c++ \
CFLAGS="-m64" \
LDFLAGS="-m64 -R/usr/sfw/lib/64 -R$HOME/logiciels/64/lib" \
LDFLAGS='-R$HOME/logiciels/64/lib -L$HOME/logiciels/64/lib' \
CFLAGS="-O0 -g -m64" \
CXXFLAGS="-g -O0 --no-rtti --no-exceptions -m64" \
LDFLAGS="-m64 -R/usr/sfw/lib/64 -R$HOME/logiciels/64/lib" \
./configure --prefix=$HOME/logiciels/64 \
--enable-NTL \
--with-gmp=$HOME/logiciels/64/include,$HOME/logiciels/64/lib

cette erreur:

 ** compiling ../../../Macaulay2/e/ntl_interface.cpp
../../../Macaulay2/e/ntl_interface.cpp:56: error: expected unqualified-id before numeric constant
../../../Macaulay2/e/ntl_interface.cpp:56: error: expected `,' or `;' before numeric constant
make[2]: *** [ntl_interface.o] Error 1

se résoud de la façon suivante:

nemo-henry% cp -rp ../Macaulay2/e/ntl_interface.cpp ../Macaulay2/e/ntl_interface.cpp.ori
nemo-henry% diff ../Macaulay2/e/ntl_interface.cpp.ori ../Macaulay2/e/ntl_interface.cpp
55a56
> #undef GS
  • macaulay2.1193388090.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)