On Thu, Oct 15, 2009 at 1:38 PM, Dr. David Kirkby <[email protected]> wrote: > > William's prereq-0.3 made use of a 'check()' which checked the existence > of certain commands. It also appears in my updated version (0.4, which > is currently in Sage). Unfortunately, the method is not portable, as it > fails to work on Solaris, instead indicating every command is present, > even when it is not. > > Below I set a very limited path, so gcc and g++ could not be found. > > drkir...@swan:[~/sage-4.1.2.rc2] $ which gcc > no gcc in /usr/bin /usr/ccs/bin > drkir...@swan:[~/sage-4.1.2.rc2] $ which g++ > no g++ in /usr/bin /usr/ccs/bin > > now typing 'make' > > drkir...@swan:[~/sage-4.1.2.rc2] $ make > cd spkg && ./install all 2>&1 | tee -a ../install.log > base/prereq-0.5-install > Starting prerequisite check. > Machine: SunOS swan 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-1000 > found ar > found make > found perl > found m4 > found ranlib > found tar > found gcc > found g++ > > both gcc and g++ are apparently found!! > > Later on, my configure script detects gcc is not in the path. (*See below). > > Under the circumstances, I think those checks in the > 'prereq-0.5-install' script are best removed. In any case, they are
Yes, that sounds good to me. > redundant, as the configure script will pick them up. It also does a > better job, as it checks version numbers of the compilers too. > > > checking for gcc... no > checking for cc... no > checking for cl.exe... no > configure: error: in > `/export/home/drkirkby/sage-4.1.2.rc2/spkg/build/prereq-0.5': > configure: error: no acceptable C compiler found in $PATH > See `config.log' for more details. > ERROR: You do not have all of the prerequisites needed > to build Sage from source. See the errors above. > *** Error code 1 > make: Fatal error: Command failed for target `installed/prereq-0.5' > Current working directory /export/home/drkirkby/sage-4.1.2.rc2/spkg > > real 0m3.595s > user 0m0.727s > sys 0m1.380s > Error building Sage. > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
