I have download GnuCobol into my Downloaded folder. When I double clik it, the Z9 screen appears. I had expected the install to be a little more automatic. What do I do next?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is no self extracting executable. We need to build GnuCOBOL on Windows. If your on Linux there are old packages for the 1.1 release. There have been a ton of improvements since then. GnuCOBOL builds easily on Linux and you could take advantage of the improvements in the 2.0 branch.
There has been some talk of how to install GnuCOBOL using the new linux subsystem.
I can't help you yet but in the next month or so I plan on trying to install on Windows 10, currently I use Linux.
People have built GnuCOBOL on Windows using Mingw and I think even the Microsoft tools.
If you can tell me a little more about what your goals are, I might be able to help a little more.
Do you have access to Linux ?
-Pat
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just have seen that the current default download was the official 1.1 MinGW package (7z format). Did you download this one? If yes: unpack whereever you like, open cmd.exe (or powershell), execute set_env.cmd and you can use the compiler via cobc (see minimal README.txt).
Keep in mind that this was the last release and is currently outdated but it should give you a first expression. If something doesn't work then the chances for 2.0-rc-1 (no official binaries available yet, only sources) working better are quite high.
Note: I've just changed the default download for Windows to go to 2.0rc-1_win.zip (complete sources [possible to compile with MSYS/Mingw or Cygwin] + files needed for compilation with Visual C/Studio).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just for clearness: The installer linked installs the recommended IDE OCIDE and (on Windows only) the latest official MinGW package (currently GnuCOBOL 1.1). If you don't change the compiler settings in the IDE to use another compiler/version, it automatically sets the appropriate environment vars (otherwise manually done by set_env.cmd).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As written above and in the links we provided: The zip-archive includes only the source for a self-build. Further information how to do so with VisualStudio can be found in build_windows.
If you want a pre-build version either use the official 1.1 MinGW package (includes everything needed, if you want an IDE without any need to setup anything more install OCIDE - which was linked before, too) or the nightly for testing purposes only build for use with Visual Studio - needs an installed "Visual Studio for Desktop" or "Visual C++". (These binaries work fine with OCIDE, too but need a manual change of the settings within the IDE).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Install Guide (v3) needs some important corrections, esp. in the Cygwin section. See the corrected v4, which will be posted in the following thread (2017-07-15):
View and moderate all "Help getting started" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I have download GnuCobol into my Downloaded folder. When I double clik it, the Z9 screen appears. I had expected the install to be a little more automatic. What do I do next?
I assume you took the default download on Windows, correct?
I'm currently too tired to give a full answer, but if neither the
INSTALLnot theREADMEfile help (or... better do so in any case) have a look at http://open-cobol.sourceforge.net/faq/index.html#how-do-i-install-gnucobolHi
There is no self extracting executable. We need to build GnuCOBOL on Windows. If your on Linux there are old packages for the 1.1 release. There have been a ton of improvements since then. GnuCOBOL builds easily on Linux and you could take advantage of the improvements in the 2.0 branch.
There has been some talk of how to install GnuCOBOL using the new linux subsystem.
I can't help you yet but in the next month or so I plan on trying to install on Windows 10, currently I use Linux.
People have built GnuCOBOL on Windows using Mingw and I think even the Microsoft tools.
If you can tell me a little more about what your goals are, I might be able to help a little more.
Do you have access to Linux ?
-Pat
can you also have a look at this:
http://open-cobol.sourceforge.net/faq/index.html#windowstm-mingw
I just have seen that the current default download was the official 1.1 MinGW package (7z format). Did you download this one? If yes: unpack whereever you like, open cmd.exe (or powershell), execute
set_env.cmdand you can use the compiler viacobc(see minimal README.txt).Keep in mind that this was the last release and is currently outdated but it should give you a first expression. If something doesn't work then the chances for 2.0-rc-1 (no official binaries available yet, only sources) working better are quite high.
Note: I've just changed the default download for Windows to go to 2.0rc-1_win.zip (complete sources [possible to compile with MSYS/Mingw or Cygwin] + files needed for compilation with Visual C/Studio).
This link has automatic installer https://launchpad.net/cobcide/+download
Thanks for the additional hint Nedad.
Just for clearness: The installer linked installs the recommended IDE OCIDE and (on Windows only) the latest official MinGW package (currently GnuCOBOL 1.1). If you don't change the compiler settings in the IDE to use another compiler/version, it automatically sets the appropriate environment vars (otherwise manually done by
set_env.cmd).View and moderate all "Help getting started" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I havesince downloaded the 2.0 versionand the zip extract works fine, but the install instructions seem toapply only to Linux. Windows 10?
As written above and in the links we provided: The zip-archive includes only the source for a self-build. Further information how to do so with VisualStudio can be found in build_windows.
If you want a pre-build version either use the official 1.1 MinGW package (includes everything needed, if you want an IDE without any need to setup anything more install OCIDE - which was linked before, too) or the nightly for testing purposes only build for use with Visual Studio - needs an installed "Visual Studio for Desktop" or "Visual C++". (These binaries work fine with OCIDE, too but need a manual change of the settings within the IDE).
View and moderate all "Help getting started" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
See the attached guide on how to build GnuCOBOL in various versions of Windows using the VBISAM file handler.
The included vbisam folder is the vbisam-2.0.1 (Original) in the VBISAM_ALL.7z folder posted at the link below by Mario M. on 2016-11-11:
https://sourceforge.net/p/open-cobol/discussion/help/thread/991bbfd9/
There are several methods to try. Reports would be welcomed.
Anon
View and moderate all "Help getting started" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
The Install Guide (v3) needs some important corrections, esp. in the Cygwin section. See the corrected v4, which will be posted in the following thread (2017-07-15):
https://sourceforge.net/p/open-cobol/discussion/help/thread/51d48303/
Results from a build in Win10 by this method have not yet been posted. When the build is done in Win7 x64,
CC gcc
CFLAGS -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
COB_CFLAGS -I/usr/local/include -I/usr/local/include -pipe
LDFLAGS -L/usr/local/lib
COB_LDFLAGS -L/usr/local/lib
COBC_LIBS -lintl
COB_LIBS -L/usr/local/lib -L${exec_prefix}/lib -lcob -lm -lvbisam -lgmp -lintl -lncursesw
COB_CONFIG_DIR ${datarootdir}/gnu-cobol/config
COB_COPY_DIR ${datarootdir}/gnu-cobol/copy
COB_LIBRARY_PATH ${exec_prefix}/lib/gnu-cobol
COB_MODULE_EXT dll
COB_OBJECT_EXT o
COB_SHARED_OPT -shared
COB_PIC_FLAGS -DDLL_EXPORT -DPIC
COB_EXPORT_DYN -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl, --enable-auto-image-base
COB_STRIP_CMD strip --strip-unneeded
Dynamic loading: System
Use gettext for international messages: yes
Use fcntl for file locking: yes
Use ncurses/pdcurses/curses for screen I/O: ncursesw
Use VBISAM for ISAM I/O yes
the testsuite results are
675 tests behaved as expected. 1 test was skipped.
the NIST85 summary is
9547 pass, 0 fail, 20 deleted, 143 inspected
Anon