On 06/12/10 10:30 PM, orca wrote:
Dear Sirs,

I have a palin vanilla Debian lenny amd64 machine, which I use for
quite some time now; I am reasonably conversant (but not much) with
some installation commands for programs in general.

I have just tried to compile Sage 4.4.3 from source under that
machine. I had to circumvent some "small" issues:

1) I had to change the make command to

make CC=gcc-4.2 FC=gfortran-4.2

since the default vanilla C compiler, gcc, is version 4.3.2 and the
default vanilla Fortran compiler, gfortran,  is version 4.3.2 as well,
whereas the default vanilla C++ compiler, g++, is version 4.2.4. So I
had to install these "downgraded" versions, which were available from
the official Debian lenny repos, without any ado...

That might cause you problems. The variables CC and FC are not fully supported by Sage, so setting CC to gcc-4.2 will mean sometimes you compile with that compiler, and other times you compile with whatever is the first version of gcc in your path. You might get away with it, but I would not want to be using different versions of compilers to build some bits of Sage. I'd try to keep it consistent. I can assure you CC will not be respected fully.

sage: An error occurred while installing flint-1.5.0.p4

At one time the flint package in Sage did not respect CC and/or CXX, but that may no longer be true. Either way, you setting CC will most likely cause you problems.

Could you provide any help??

I'd personaly try to get a consistent set of compilers in one directory. Failing that, create a directory and put links in there to the real compilers.


$ mkdir compilers
$ cd compiler
$ ln -s /path/to/the/right/gcc .
$ ln -s /path/to/the/correct/g++ .
$ ln -s /path/to/the/same/version/of/gfortran .

Then just make sure 'compilers' is the first directory in your path.

But really, if you have a mix of compilers, and I believe Robert has pointed out that you do, then I'd sort out what is wrong with my system and download a consistent set.

Thanks in advance!


--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to