So, how did you install it?
If you did it locally either from source or from binary distribution: ensure that the installation's bin directory is in PATH (most systems install into /usr/local/bin by default which is NOT in the default PATH, so you have to manually add it).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-01-29
I am having the exact same issue. I located the cobcrun application in "C:\cygwin64\tmp\gnucobol-3.1.2_win\bin". I need to know the exact path or location in which it shoud be housed so I can move it manually. Thanks. Tim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First: Cygwin is kind-of-deprecated, you should really only use it if you use cygwin in general / for different projects. Otherwise you may want to directly use the MinGW (or MSYS2 mingw64) packages provided by Arnold Trembley or build/use them from there on your own.
If you want to use Cygwin (or any MinGW) you should download the normal tarball, not the zip file.
After following this: please see the questions in the respond to the original post, once those are answered we can go on with fixing whatever needs to be fixed on your system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-01-29
OK thank you. I appreciate the quick response. Most of this is over my head. I was just following the instructions from the Banas YouTube video to get it installed. (https://www.youtube.com/watch?v=TBs7HXI76yU) I know nothing about cygwin, so I don't really need it for anything else. I'll probably just uninstall everything and try what you suggested above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, in this case drop cygwin, then just use on for the ready-to-use binaries (download, unzip, done).... and if you use that video site I'd suggest to drop a note there that cygwin is only to be used for very special circumstances - otherwise just... download+unzip+use.
Hint1: for "use": you'll start with a double-click to the contained set_env.bat or possibly send it to the desktop as shortcut renaming it to "GnuCOBOL developer prompt".
Hint2: you can also use this within vscode if you like to...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cob is not the name of our binary (only if you use a specific program-name conversion option during configure), try with cobc.
If this doesn't work then it isn't in PATH, if you need help with that share some specifics how you've installed that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i just installed gnucobol and when trying to execute a sample program i get error '-bash: cobc: command not found'
any pointers would be appreciated
So, how did you install it?
If you did it locally either from source or from binary distribution: ensure that the installation's bin directory is in PATH (most systems install into
/usr/local/binby default which is NOT in the default PATH, so you have to manually add it).I am having the exact same issue. I located the cobcrun application in "C:\cygwin64\tmp\gnucobol-3.1.2_win\bin". I need to know the exact path or location in which it shoud be housed so I can move it manually. Thanks. Tim
First: Cygwin is kind-of-deprecated, you should really only use it if you use cygwin in general / for different projects. Otherwise you may want to directly use the MinGW (or MSYS2 mingw64) packages provided by Arnold Trembley or build/use them from there on your own.
If you want to use Cygwin (or any MinGW) you should download the normal tarball, not the zip file.
After following this: please see the questions in the respond to the original post, once those are answered we can go on with fixing whatever needs to be fixed on your system.
OK thank you. I appreciate the quick response. Most of this is over my head. I was just following the instructions from the Banas YouTube video to get it installed. (https://www.youtube.com/watch?v=TBs7HXI76yU) I know nothing about cygwin, so I don't really need it for anything else. I'll probably just uninstall everything and try what you suggested above.
Yes, in this case drop cygwin, then just use on for the ready-to-use binaries (download, unzip, done).... and if you use that video site I'd suggest to drop a note there that cygwin is only to be used for very special circumstances - otherwise just... download+unzip+use.
Hint1: for "use": you'll start with a double-click to the contained set_env.bat or possibly send it to the desktop as shortcut renaming it to "GnuCOBOL developer prompt".
Hint2: you can also use this within vscode if you like to...
I did cob -x jctprwwp.cbl
and message said it did not recognize
cob your thoughts please
cobis not the name of our binary (only if you use a specific program-name conversion option during configure), try withcobc.If this doesn't work then it isn't in
PATH, if you need help with that share some specifics how you've installed that.