(Apologies if this message gets sent twice - slight problems with the mail server last time)
Can anyone help with using the MySQL database interface? I've written and compiled my own program (and also tried running one of the examples) and both return the following error:
ERROR: library library(persdb_mysql/delete_compiler/pl2sqldelete) not found, exiting...
This same error is returned on all three linux systems I've tried the programs on. I've found the pl2sqldelete.pl file in <ciao_installation_directory>/library/persdb_mysql/delete_compiler/ which apparently hasn't been compiled in, but the NOCOMPILE file says not to change this.
Does anyone have any idea what I've missed/should change in order to get this to work?
Thanks in advance...
-- Alan Sneath
and compiled my own program (and also tried running one of the examples) and both return the following error:
ERROR: library library(persdb_mysql/delete_compiler/pl2sqldelete) not found, exiting...
It seems there is an error in the current distribution; thanks for telling us about it. We hope to correct it in the upcoming 1.8 version.
Best regards,
MCL
____________________________________________________________ Don't create a problem for which you do not have the answer.
and compiled my own program (and also tried running one of the examples) and both return the following error:
ERROR: library library(persdb_mysql/delete_compiler/pl2sqldelete) not found, exiting...
It seems there is an error in the current distribution; thanks fortelling us about it. We hope to correct it in the upcoming 1.8 version.
Is it just an error in the distribution or is there something wrong with the actual code? As Alan noted in his mail the ciao sources contains a NOCOMPILE file in the directory /library/persdb_mysql/delete_compiler/ which as it explains itself is there to prevent the compilation system from compiling the files in that directory. Is it just an error that this file is there in the distrubution or is there still a good reason for not compiling the delete_compiler code?
Or in other words: is it safe to remove the NOCOMPILE file and go ahead using the mysql persistent predicates module? :)
- --Boundary_(ID_7mYqhq99RQPLWwLAQmi3gw) Content-type: text/enriched; charset=US-ASCII Content-transfer-encoding: 7bit
<excerpt><excerpt><excerpt>and compiled my own program (and also tried running one of the
examples) and both return the following error:
ERROR: library library(persdb_mysql/delete_compiler/pl2sqldelete) not
found, exiting...
</excerpt></excerpt>
It seems there is an error in the current distribution; thanks for
telling us about it. We hope to correct it in the upcoming 1.8
version.
</excerpt>
Is it just an error in the distribution or is there something wrong with the actual code? As Alan noted in his mail the ciao sources contains a NOCOMPILE file in the directory /library/persdb_mysql/delete_compiler/ which as it explains itself is there to prevent the compilation system from compiling the files in that directory. Is it just an error that this file is there in the distrubution or is there still a good reason for not compiling the delete_compiler code?
Or in other words: is it safe to remove the NOCOMPILE file and go ahead using the mysql persistent predicates module? :)
Is it just an error in the distribution or is there something wrong with the actual code? As Alan noted in his mail the ciao sources contains a NOCOMPILE file in the directory /library/persdb_mysql/delete_compiler/ which as it explains itself is there to prevent the compilation system from compiling the files in that directory. Is it just an error that this file is there in the distrubution or is there still a good reason for not compiling the delete_compiler code?
There is a good reason not to compile it in general: that particular file has code to delete a tuples from a relation. It turned out that the way to do that is different in different relational databases, due to the support they give to views.
Or in other words: is it safe to remove the NOCOMPILE file and go ahead using the mysql persistent predicates module? :)
:-) Yes, it is; as far as Ciao Prolog is concerned, the worst thing which can happen is that the relation you want to delete does not get deleted (but beware of the failure this may cause in your program!). You will have to either recompile and reinstall Ciao after removing the NOCOMPILE (a "make install" in the sources will be enough), or, if you want to make a quick check, go to the installation directories, locate the file, and issue a "ciaoc -c pl2sqldelete" command; please let us know of the results.
MCL
___________________________________________ ¡Hay, qué miedo saber tanto! (Lola Flores).