On 06/ 6/10 11:27 AM, Willem Jan Palenstijn wrote:
On Sun, Jun 06, 2010 at 09:14:09AM +0100, Dr. David Kirkby wrote:
I've tried twice to build Sage on a machine in which 'flex' was not in
the path. It has both times failed with:
make install in Singular
make[4]: Entering directory
`/export/home/drkirkby/32/sage-4.4.3/spkg/build/singular-3-1-0-4-20100214/src/Singular'
sh flexer.sh -I -Pyylp -t libparse.l>libparse.cc.lmp
flexer.sh: flex: not found
flexer.sh: test: argument expected
make[4]: *** [libparse.cc] Error 1
So is flex a requirement to build Sage? If it is, then I'll add to the
'prereq' script a test for flex. If, which I doubt, it is only needed on
Solaris, then I'll make the test specific to Solaris.
The way this usually works is that packages are shipped with the output of
flex, so that flex doesn't have to be run again if the user doesn't have it.
In this case that also seems to be the case, since the singular package
includes src/Singular/libparse.cc. However, it's one second older than
libparse.l. A 'touch src/Singular/libparse.cc' in the spkg-install should work
around this, I think.
-Willem Jan
Thanks, I'll give that a try.
I can't understand in that case how Singular can possibly install on any
operating system which does not have 'flex' installed. But Mike is saying
Singular builds OK on Cygwin, despite the fact flex is not installed. How can
that be?
I'm using an old version of GNU make (3.80, dated 2002). Perhaps more recent
versions ignore very small time differences. I could see this could be
dangerous, but I'm also aware that if systems are not properly synced in time,
and use shared file systems, files can appear to have a date in the future. It
may be that certain versions of make take this into account, and ignore small
differences. This does not seem a very plausible explanation, but I can't think
of a better one!
Dave
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org