AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Mac Build Still Fails
 
 

Have not got any replies as to Mac Builds not working. Seems to Mac version is a bit of a mess.

I have managed to get the build to compile and link using the MacCompil.sh.
The Xcode version seems to be an incomplete project, with CPP files missing, there are compile errors from missing functions.

When built using MAcCompile.sh it does nothing when your run it, either in single terminal or client/server. I have installed on Windows in a VM too and all works there, no issues, just MAC. Yes I checked I am running the output of the link !

when I run:

$ ./BINARIES/ChatScript
ChatScript Release Version 6.86 64 bit MACH compiled Oct 27 2016 15:13:46 host=0.0.0.0
WordNet: dict=201372 fact=85707 stext=12704204 Oct23’16-10:49:29
  Dictionary building disabled.

======== Began server 6.86 compiled Oct 27 2016 15:13:46 on host 0.0.0.0 port 1024 at Thu Oct 27 15:27:40 2016 serverlog:1 userlog: 1
Server ready - logfile:LOGS/serverlog1024.txt serverLog:1 userLog:1


thats it; it never returns the prompt. Seems not writing/reading STDOUT/STDIN ?

Log Extract

======== Began server 6.86 compiled Oct 27 2016 15:13:46 on host 0.0.0.0 port 1024 at Thu Oct 27 15:22:11 2016 serverlog:1 userlog: 1
Server ready - logfile:LOGS/serverlog1024.txt serverLog:1 userLog:1

Server ChatScript Release Version 6.86 64 bit MACH compiled Oct 27 2016 15:13:46 host=0.0.0.0
Params:  dict:720895 fact:800000 text:70000kb hash:50000
    buffer:22x80kb cache:1x5000kb userfacts:100
Build0:  dict=67753 fact=130444 stext=1146028 Oct23’16-10:49:34 0
Build1:  dict=167 fact=15 stext=211788 Oct23’16-10:48:15 harry
Used 51MB: dict 269,293 (21543kb) hashdepth 18/1 fact 216,166 (8646kb) text 14185kb
      buffer (1760kb) cache (5000kb) POS: 918 (29kb)
Free 79MB: dict 451,602 hash 922 fact 583,834 text 55,814KB

  *** Server WIDE OPEN to :command use.

Seems it is ready ? thought that maybe its in server mode by default, but no, starting another instance with client parameters does not work either, it also has no STDIN ?

 

 
  [ # 1 ]

I can’t tell you much about Mac as I dont have one.
But once the server successfully started (yes, linux based ones default to server), it will not do anything visible on the console, only process requests from clients and write data into the serverlog. So it would be expected to say nothing.
You could prove it was a normal cs by running it with the command line parameter “local”, so it would not be a server and would interactively chat with you as harry.

 

 
  [ # 2 ]

And you probably want to undefine the Mongodb define under Mach in common.h

 

 
  [ # 3 ]

The defines are not the problem as it complies, issue is then running the client does nothing other:

so Starte the server (as you say the PORT= is not required):
BINARIES\ $ ./ChatScript port=1024
ChatScript Release Version 6.86 64 bit MACH compiled Oct 31 2016 09:54:56 host=0.0.0.0
WordNet: dict=201372 fact=85707 stext=12704204 Oct23’16-10:49:29
  Dictionary building disabled.

======== Began server 6.86 compiled Oct 31 2016 09:54:56 on host 0.0.0.0 port 1024 at Mon Oct 31 09:56:47 2016 serverlog:1 userlog: 1
Server ready - logfile:LOGS/serverlog1024.txt serverLog:1 userLog:1


Then start the client:

BINARIES\ $ ./ChatScript client=localhost:1024
BINARIES\ $

Nothing !

 

 
  [ # 4 ]

It works for me as client and server on Linux.
Tell me whether or not running ./ChatScript local works

 

 
  [ # 5 ]

yes Running local works, its the client that seems to be waiting.


BINARIES\ $ ./ChatScript local
ChatScript Release Version 6.86 64 bit MACH compiled Oct 31 2016 09:54:56 host=local
Params:  dict:720895 fact:800000 text:70000kb hash:50000
      buffer:22x80kb cache:1x5000kb userfacts:100
WordNet: dict=201372 fact=85707 stext=12704204 Oct23’16-10:49:29
Build0:  dict=67753 fact=130444 stext=1146028 Oct23’16-10:49:34 0
Build1:  dict=167 fact=15 stext=211788 Oct23’16-10:48:15 harry
Used 51MB: dict 269,293 (21543kb) hashdepth 18/1 fact 216,166 (8646kb) text 14185kb
        buffer (1760kb) cache (5000kb) POS: 918 (29kb)
Free 79MB: dict 451,602 hash 922 fact 583,834 text 55,814KB

  Dictionary building disabled.


Enter user name:

 

 
  [ # 6 ]

literally my test was

./ChatScript port=1025   on one window
./ChatScript client=localhost:1025 on the other

 

 
  [ # 7 ]

It also works for me on Windows as Client and Server, just not on a MAC !

 

 
  [ # 8 ]

I can telnet to server and it connects fine. but unsure what to send to test something. So pretending to be the client.
Can I get a windows example to log the client-server commands and then try them on the MAC ?

 

 
  login or register to react