On 06/12/10 12:53 AM, Robert Bradshaw wrote:
On Jun 11, 2010, at 4:48 PM, Dr. David Kirkby wrote:
On 06/11/10 10:51 PM, orca wrote:
Hi there,
I am a newbie to Sage, though I have some experience with Linux and
Python in general.
I have tried to build the latest 4.4.3 version of Sage from source,
but, after having checked that I apparently have all necessary program
dependencies satisfied, and issuing the command make under my Sage
root directory, the following error was reported:
configure: gcc (4.3.2) and g++ (4.2.4) are not the same version
configure: which they must be. Check your setting of CC and CXX
configure: error: Exiting since the C and C++ compilers have different
versions
ERROR: You do not have all of the prerequisites needed
to build Sage from source. See the errors above.
make[1]: *** [installed/prereq-0.7] Error 1
So what do you recommend? As far as I could check, there are deb files
for both the lower version of gcc and the higher version of g++, under
Debian lenny repositories and, indeed, my machine has both 4.3.2 and
4.2.4 gcc versions installed (SIC). The point is, if I install these
other versions, how do I force the use of a given version of gcc (or g+
+, for that matter) when building Sage?? If that is possible, is it
advisable?
Thanks in advance!!!
What do the following commands give you?
$ command -v gcc
$ command -v g++
$ command -v gfortran
$ gcc -v
$ g++ -v
$ gfortran -v
$ echo $PATH
give you?
You would certainly be advised to use the same version of gcc, g++ and
gfortran.
I don't know what command may or may not exist in any given linux
distribution, but one can often get the commands one wants by suitably
setting the path.
It's not possible to build g++ without building gcc, the g++ 4.2.4
must have had a gcc 4.2.4 version at some point. Whether you only have
g++ installed is another matter, but it must have been built with C
support.
I'd personally be inclined to suggest you
To be clear, you're suggesting building your own gcc and g++ from
source, and then trying to configure it to use that one instead of the
system default, right? To me, that sounds more complicated and error
prone than just trying to use the package manager to get the latest
binaries (but, of course, it's nice that you can do so).
That's the approach I would personally take. It's also one I could describe how
to do reasonably well. I don't know the package managers of each linux
distribution.
It would give me a relatively recent and stable version of gcc, whereas these
versions are quite old.
But as with many things, different people would approach the problem a different
way.
Dave
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org