|
From: William H. <ha...@ya...> - 2008-07-29 03:48:07
|
Hi all,
as most of you know, when I installed gcc-4.3.1 on
host-57-44 I did "make install" into the default
location which ended up mixing two gcc's with
disasterour consequences. -1 for the gcc developers.
Unfortunately gcc "doesn't support make uninstall". -1
for the gcc developers.
So I tried to uninstall it myself. This is impossible,
so the machine died.
I had to reinstall SUSE linux. However, SUSE linux in
its infinite wisdom saw fit to *completely format* the
home directories of everyone as default whilst making
it completely opaque that this is what it was doing.
-1 for SUSE developers.
It's all back up and running now, minus anything you
had in your home directories. Very sorry about that.
We all lost everything. This is just not supposed to
happen, as the home directories are purposely
installed in a different partition to / But SUSE has
other ideas if it finds unformated unallocated space
on the drive.
Anyhow, I have now:
1) Fixed the CDROM drive on the machine (it was not
connected - physically).
2) Reinstalled Open SUSE 10.2. I put pdflatex on this
time too. /home and /usr/local are separate partitions
from / now.
3) Installed a new fast version of GMP that I and some
colleagues have been working on, called MPIR. You'll
find it in /usr/local/mpir-0.9.0 It is currently
functionally equivalent to GMP. Most GNU software that
requires GMP allows you to specify where GMP is with
./configure --with-gmp=/usr/local/mpir-0.9.0/
To link FLINT against MPIR you must do:
export FLINT_GMP_LIB_DIR=/usr/local/mpir-0.9.0/lib
export
FLINT_GMP_INCLUDE_DIR=/usr/local/mpir-0.9.0/include
source flint_env
make library
to link your program against MPIR and FLINT you can do
-L/usr/local/mpir-0.9.0/lib -L/path_to_flint -lgmp
-lflint
where obviously path_to_flint is wherever you
installed FLINT.
If you use gcc-4.3.1 you *must* use MPIR, since the
standard system GMP 4.2.1 doesn't support gcc-4.3.1.
4) Installed mpfr in /usr/local/mpfr-2.3.1
5) Installed gcc-4.3.1 in /usr/local/gcc-4.3.1 To use
it instead of the system gcc (4.1.2) you can either
export CC=/usr/local/gcc-4.3.1/bin (in the case of
FLINT that should be FLINT_CC) or even easier still,
just do export PATH=/usr/local/gcc-4.3.1/bin:$PATH
gcc-4.3.1 now works fine (it builds FLINT - what more
could you want!!)
6) Installed pari/gp in /usr/local. If you just type
gp at the prompt it will run from anywhere. I built it
against MPIR and so it will be faster than if it were
built against GMP.
I have not installed Magma yet, for lack of a pass
file. But it is coming.
John and Samir I have not put home directories back on
for you, but the root password remains unchanged. Or I
can do it for you if you ask.
Bill.
|