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 -- 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