how to install opencobol in windows vista using cygwin?

sarada2011

Reputable
Aug 9, 2014
10
0
4,520
okay! i did few research on the internet and came to know that in 'windows' to install 'open cobol' i need an emulator called 'cygwin'. so, i downloaded the (x86-bit) version of 'cygwin' from official website. then i downloaded the 'local package' with the help of setup.exe. after that i tried to install 'cygwin terminal' from 'local directory' and it also successfully installed. then i downloaded 'gnu-cobol-1.1.tar.gz' from opencobol official site. now when i tried to configure(./configure) and install(make/make install) the gnu cobol from cygwin environment it shows this:

arun@arun-PC /cygdrive/c/oc/pgms/gnu-cobol-1.1
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for xlc... no
checking for cc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

i tried to install this several times today, but i don't know what's going wrong.. a little help will be great:??:
i know there are other options like 'mingw'. but i'm curious to do that with 'cygwin'.. :)
 
Solution


Yes. I have GNU-Cobol (same thing as OpenCobol) installed on a RedHat Enterprise Linux 7 virtual machine running through VMWare Workstation installed on a Windows 8.1 host. You may wish to try CentOS 7 if you do not wish to purchase a RHEL subscription.


Hi,

GNU-Cobol is distributed in source format, you must also install a C compiler to compile it. GNU-Cobol also relies on a C compiler to operate. To fix this, install the GCC package
 

sarada2011

Reputable
Aug 9, 2014
10
0
4,520
i tried to install the gcc package from 'cygwin' setup.exe several times but nothing happening. at first installation all packages were set to 'default' but nothing works. then on second attempt i tried to reinstall them but that also failed, then i tried to uninstall all packages and reinstall them again, but the result is always the same..
 


type `gcc` on the command line. If you see "Command not found" then it isn't properly installed or the path is not properly configured. Cygwin is a pain in the ass to use anyway, you're far better off running a virtual machine.
 


Yes. I have GNU-Cobol (same thing as OpenCobol) installed on a RedHat Enterprise Linux 7 virtual machine running through VMWare Workstation installed on a Windows 8.1 host. You may wish to try CentOS 7 if you do not wish to purchase a RHEL subscription.
 
Solution

sarada2011

Reputable
Aug 9, 2014
10
0
4,520
as @pinhedd said application such as "vmware" is the best option. but we can also use "cygwin". just we have to remember that after installing it, goto computer> system properties> advanced system settings> advanced> environment variables.

on "system variables" which sets the environment for all users of the computer click on "New" and set like bellow:

variable name: PATH
variable value: c:\cygwin\bin
now click "ok". restart your pc . you are done..
[ Note: here my installation directory of "cygwin" is c: . as someone can use other directories also.]