Menu

ACAS on windows

2017-06-26
2021-02-02
  • John Grillot

    John Grillot - 2017-06-26

    Will ACAS complile / run on Windows 10? I installed it on Ubuntu. What
    steps are needed to install this on windows. I have opencobol and MF cobol
    compliers.

    Thanks,

    John

     
    • Vincent (Bryan) Coen

      Sorry for delay in responding but been away for a short break to
      celebrate my 70th.

      There is no reason for ACAS not to work under Windows BUT I have never
      installed the compiler on it as my SSD is 250Gb and I have not had a
      reason to install VC on it as it is a celleron based laptop so quite slow.

      You say you have OpenCobol so I would recommend you remove it and
      install the v2.0 rc version or get it from the code repository.

      As for MF compiler that will depend on what one you have, again I have
      not compiled it on it and somewhere I do have Visual Cobol v2.2.

      I would suggest you continue with Linux at least for the moment.

      Now you say you have problems with the set up screens so I need to
      understand some things:

      When you installed v3.01.07, did you install the sources to a new fresh
      directory?
      If not then delete the current one and unarchive the source in to a new
      fresh directory.

      Next you must follow the manual (stock) to the letter for compiling the
      compiler AND running both sets of tests.
      This means running make checkall

      This will compile the Cobol compiler, run the primary tests (some 600+)
      then run the NIST tests.
      Only if both test complete should you compile ACAS or anything else in
      Cobol.

      Now if the compiler tests complete run
      sudo make install
      create a file in directory /etc/ld.so.conf.d called gnu-cobol.conf with
      the following content
      [The file name spelling is not important ]

      /usr/local/lib/gnu-cobol
      /usr/local/lib

      {
      IF you might upgrade the acas system to v3.02 or later and want to
      install MySQL or mariadb then add this line to it after doing so:

      /usr/local/mysql/lib

      ASSUMING that is where you install the mysql libs note the contents of
      this directory on my system is :

      -rw-r--r-- 1 root root 16791854 May 30 13:25 libmysqlclient.a
      lrwxrwxrwx 1 root root 20 May 30 13:17 libmysqlclient.so ->
      libmysqlclient.so.18
      lrwxrwxrwx 1 root root 23 May 30 13:17 libmysqlclient.so.18 ->
      libmysqlclient.so.18.4.

      -rwxr-xr-x 1 root root 9136910 May 30 16:27 libmysqlclient.so.18.4.*

      depend on the way you install MySQL as to what libraries and versions etc,
      }

      As a check look at the content of the file /etc/ld.so.conf that it
      contains :

      include /etc/ld.so.conf.d/*.conf

      If not you will have to adjust the above instructions to match.

      Now run sudo ldconfig

      if you want to see exactly what it does do sudo ldconfig -v
      it will create a lot of output on the screen

      Right now the current version of the compiler is installed you can build
      the ACAS system from a freshly created direectory to hold all of the
      sources.

      At the top level directory as in the one above run comp-all.sh

      If it produces ANY warning or error messages fix them but let me know
      that it is happening as it means that some of the required libraries for
      the compiler or gcc is not present - well more or less.

      If the errors occur on only the one system I would suggest that you cd
      to the directory, e.g., sales, stock, purchase,
      incomplete_records_system, general etc and run the script in that
      directory so that only that one system is compiled.

      after that continue to follow the build and install instructions within
      the Stock manual.

      Having compiled and installed the system look at the data directory ACAS
      off your user directory and it should be empty of all data files so if
      not delete them although if you want to move them to another directory
      even in the ACAS directory.

      Now you can continue t follow the manual for the initial set parameters
      followed by the ACAS system params.

      Vince

      On 26/06/17 01:29, John Grillot wrote:

      Will ACAS complile / run on Windows 10? I installed it on Ubuntu. What
      steps are needed to install this on windows. I have opencobol and MF cobol
      compliers.

      Thanks,

       
  • Vincent (Bryan) Coen

    In theory, the current version of Visual Cobol should work but will require some changes such as functions that might not be in the VC compiler.

    I cannot test anything on VC as my copy is a Persona;l Edition with is limited to 2,200 lines of procedure division and that includes comment lines.

    Many years in the past as in the 70's, the sources compiled with Micro Focus workbench starting with the lowest common operating system at the time of MS/PC-DOS and Windows 3.1 etc so that programs were broken down to smaller programs, so they fitted in to small memory systems.

    As the source was moved away from MF and IBM M/F these programs were compacted into main processing steps, therefore removing a fair bit of duplicate code that was a pain to keep all in sync.

    If someone has a full copy of VC you can try and run some of the code through it to see what kind of errors you get, BUT be warned, the ACAS sources use the FREE format model and for some versions of VC that might well be an issue. I do have a tool for converting between Fixed and Free as well as the reverse but, it can make reading the sources a little complex.

    If someone gives me a full version that is up to date, I will try and put the sources through it to see what the common problems are and how to fix them.

    Should point out that if you are running Windows 10 you should upgrade it to v 20H2 or latter for the WSL 2 feature that lets you run Linux under Windows and share applications etc and no I have not looked in to it closely yet.

     

    Last edit: Vincent (Bryan) Coen 2022-02-23

Log in to post a comment.