[CWB] Illegal division by zero
Stefan Evert
stefanML at collocations.de
Thu Nov 1 15:30:53 CET 2012
> The Perl scripts that do BNCweb installation gather data from the BNC file headers to build this database (among other things). So, alas, there is only one solution: You go back to setup and repeat whatever steps got missed or went wrong, so that the headerinfo table gets filled in!
I've experienced similar errors -- e.g. distribution analysis shows all zeroes -- trying to get BNCweb installed on a university Web server I didn't have any access to.
A likely cause is that the file exchange between the MySQL server and BNCweb doesn't work properly. Keep in mind that
- BNCweb and the MySQL server must be running on the same machine
- the exchange directory must be readable and writable both by the Web server running BNCweb and by the MySQL server
- the bncweb account in MySQL needs the necessary permissions to access disk files (that's one of the highest permission in the system and the MySQL manual might have advised you not to grant it to users ...)
Some versions of MySQL, depending on their configuration settings, may have additional limitations, such as disabling file access entirely or requiring that the exchange directory is world-readable and world-writable (i.e. _all_ users have full access there).
Hope this helpsm
Stefan
More information about the CWB
mailing list