Maybe this could be fixed by not linking to termcap on archlinux.
This would just require changing the spkg-install.
> * Issue building R -- this is a problem in many platforms with up-to-date
> GCC packages, and is worked around by either copying the system's libgcc, or
> by building Sage with the environment vars SAGE_FORTRAN and SAGE_FORTRAN_LIB
> set to the system's gfortran and libgfortran.so.
We will switch to requiring gfortran by default soon. For now do
export SAGE_FORTRAN=/usr/bin/gfortran
export SAGE_FORTRAN_LIB="/usr/lib/libgfortran.so"
before building sage.
> * Build hangs while building libfplll, which is worked around by copying the
> system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the
> build system think that libfplll is installed.
I didn't see this at all.
> * Finally, after the build is done, starting Sage or running the doctests
> fails with a message about a function in the Singular interface not being
> implemented. I do not know any workarounds to this.
I didn't see this at all either.
>
> Thus, it would probably be best to use the binary distribution for now.
>
I've only built a 64-bit binary distribution, since I haven't setup a
32-bit archlinux box yet. I will, but not now, since it takes a
while (even given the 32-bit install Dan Drake gave me -- there's
still a lot of config work I have to do).
SUMMARY: I built the 64-bit binary. For me Sage starts fine and
*all* doctests pass (both normal and long), so I don't at all see the
Singular issues you mention. I also definitely didn't have any
trouble with libfplll. Is there really a system libfplll on your
system? That seems unlikely, given that it is such an incredibly
specialized library for a specific part of math.
Anyway, I want to emphasize that the officially supported Linux
distros for building Sage are:
Debian, Ubuntu, CentOS (=Redhat), Fedora Core, OpenSuse, Mandriva
It would be nice to add arch linux to the list, but we're not quite
there yet. I'm confident we will be soon.
William
-- William
With 4.2, I only have two problems: the sqlite issue and the R issue.
Thanks to previous threads on this sort of thing, I work around them
by copying the system libreadline.so and libgcc.so to the appropriate
places in the sage build directory.
It's a bit annoying because as far as I can tell I have to wait for
sqlite to fail before copying libreadline, and then for R to fail
before copying libgcc. So the whole thing needs a bit too much of my
attention.
On the other hand, after that I have sage-4.2-goodness with longtests
passing. There are no problems with Singular on my system.
Best,
Alex
On Sat, Nov 07, 2009 at 09:06:36PM -0800, William Stein wrote:
>
> > * Build hangs while building libfplll, which is worked around by copying the
> > system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the
> > build system think that libfplll is installed.
>
> I didn't see this at all.
>
> > * Finally, after the build is done, starting Sage or running the doctests
> > fails with a message about a function in the Singular interface not being
> > implemented. I do not know any workarounds to this.
>
> I didn't see this at all either.
>
[...]
--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/
You should set SAGE_FORTRAN to completely avoid the R issue.
> On the other hand, after that I have sage-4.2-goodness with longtests
> passing. There are no problems with Singular on my system.
Cool -- I'm glad the problem isn't 32-bit only (say).
-- William
Quoting from Tim's email: "* Incompatible libreadline.so.6 -- the
Yep. On my system, when I get the sqlite error, I type
cp /usr/lib/libreadline.so /opt/sage-4.2/local/lib/
and then make again.
Best,
Alex
There's a way to check this, if you want to be sure.
Go into the directory of your freshly-installed Sage, and type
make test
This runs most of the Sage test suite (it could take a while,
depending on your machine) and reports on failures. There is also a
longer version, unsurprisingly called
make testlong
which runs the whole test suite.
> We will switch to requiring gfortran by default soon. For now do
>
> export SAGE_FORTRAN=/usr/bin/gfortran
> export SAGE_FORTRAN_LIB="/usr/lib/libgfortran.so"
What happens if someone wants to use another compiler, other than GCC? I'm
thinking of Sun Studio of course.
dave
Here is where you have two options:
1. As William wrote in a previous message, do
export SAGE_FORTRAN=/usr/bin/gfortran
export SAGE_FORTRAN_LIB="/usr/lib/libgfortran.so"
This assumes you have gfortran installed on your system. If not, do
pacman -S gcc-fortran
Now if you run "make" there should be no problems with R any more.
(Note that I haven't tried this option yet, but it should be the right
way to go. It also has the advantage that you can do it at the very
beginning, instead of having to wait until R fails.)
2. The other option (more of a hackish workaround) is to do
cp /usr/lib/libgcc_s.so /opt/sage-4.2/local/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/
and try "make" again.
Give the Fortran that works with that compiler instead of gfortran.
There's nothing GCC specific about the environment variables
SAGE_FORTRAN and SAGE_FORTRAN_LIB.
William
OK,
I mis-understood your use of "requiring gfortran".
Dave