I have a gnu Colbol 3.2 environments on Linux & Windows 10. I try can compile a program on the Linux side error free. But If I try to compile that same progran in the windows 10 environment using
C:\gnucobol-3.2_win\cobc\cobc -m screen.cbl -Wlinkage
I get this error
configuration error:
\gnucobol-3.2_win\cobc\config/default.conf: No such file or directory
In the script I set
set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc.
I also trired
set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc\config\
that file does exist default.conf is in set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc\config\
When I tried to put C:\ in the path. I get a different error
obc: environment variable 'COB_CONFIG_DIR' is 'c:\gnucobol-3.2_win\cobc\config'; should not contain ':'
If I remove the colon
set COB_CONFIG_DIR=c\gnucobol-3.2_win\cobc\config. I get this error
c\gnucobol-3.2_win\cobc\/default.conf: No such file or directory
I tried
set COB_CONFIG_DIR=c/gnucobol-3.2_win/cobc
c/gnucobol-3.2_win/cobc/default.conf: No such file or directory
How can I fix this?
Last edit: John Grillot 2023-11-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
in your c:\gnucobol-3.2 directory there should be a file "set_env.cmd"
so change to the c:\gnucobol-3.2 directory and then execute the "set_env" command from there.
Chuck Haatvedt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-11-04
I just noticed this message also appears when I run
C:\gnucobol-3.2_win>set_env cobc: environment variable 'COB_CONFIG_DIR' is 'C:\gnucobol-3.2_win\config'; should not contain ':'
cobc (GnuCOBOL) 3.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
Built Nov 01 2023 23:42:34
Packaged Jul 28 2023 17:02:56 UTC
C version "11.4.0"
cobc: error: please check environment variables as noted above
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a gnu Colbol 3.2 environments on Linux & Windows 10. I try can compile a program on the Linux side error free. But If I try to compile that same progran in the windows 10 environment using
C:\gnucobol-3.2_win\cobc\cobc -m screen.cbl -Wlinkage
I get this error
configuration error:
\gnucobol-3.2_win\cobc\config/default.conf: No such file or directory
In the script I set
set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc.
I also trired
set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc\config\
that file does exist default.conf is in set COB_CONFIG_DIR=\gnucobol-3.2_win\cobc\config\
When I tried to put C:\ in the path. I get a different error
obc: environment variable 'COB_CONFIG_DIR' is 'c:\gnucobol-3.2_win\cobc\config'; should not contain ':'
If I remove the colon
set COB_CONFIG_DIR=c\gnucobol-3.2_win\cobc\config. I get this error
c\gnucobol-3.2_win\cobc\/default.conf: No such file or directory
I tried
set COB_CONFIG_DIR=c/gnucobol-3.2_win/cobc
c/gnucobol-3.2_win/cobc/default.conf: No such file or directory
How can I fix this?
Last edit: John Grillot 2023-11-03
in your c:\gnucobol-3.2 directory there should be a file "set_env.cmd"
so change to the c:\gnucobol-3.2 directory and then execute the "set_env" command from there.
I just noticed this message also appears when I run
C:\gnucobol-3.2_win>set_env
cobc: environment variable 'COB_CONFIG_DIR' is 'C:\gnucobol-3.2_win\config'; should not contain ':'
cobc (GnuCOBOL) 3.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
Built Nov 01 2023 23:42:34
Packaged Jul 28 2023 17:02:56 UTC
C version "11.4.0"
cobc: error: please check environment variables as noted above
You have a mixed environment (presumingly cygwin and mingw mixed). Just start with a fresh GnuCOBOL folder using Arnold's binary packages.
Yes , I was. Now, I'm not thanks for the tip Simon