I had a similar problem as described above using Debian linux. I tried a ton of hacks but here's how I ultimately fixed the error:
- Upgraded
flex
to version 2.5.4 (using apt-get
)
ln -s /usr/include/tcl8.4/*.h /usr/local/include/
cd /usr/local/src/Search-OpenFTS-tcl-0.3.2
./configure --with-aolserver-src=/usr/local/src/aolserver40r8/aolserver --with-tcl=/usr/lib/tcl8.4
cd aolserver/
make
Hope that's helpful for someone.