static public int install() { try { PrologCLR.IsPLWin = Type.GetType("Mono.Runtime") == null; PrologCLR.RedirectStreams = false; PrologCLR.SetupProlog(); PrologCLR.ConsoleWriteLine(typeof(Embedded).FullName + ".install suceeded"); PrologCLR.ClientReady = true; return(libpl.PL_succeed); } catch (Exception e) { PrologCLR.WriteException(e); PrologCLR.ConsoleWriteLine(typeof(Embedded).FullName + ".install failed"); return(libpl.PL_fail); } }