macOS
brew install gnucobollocal Homebrew formula metadata
sudo port install gnucobolMacPorts ports tree · lang/gnucobol/Portfile · 来源: api.github.com
安装
brew install gnucobollocal Homebrew formula metadata
sudo port install gnucobolMacPorts ports tree · lang/gnucobol/Portfile · 来源: api.github.com
sudo apk add gnucobolAlpine Linux edge package indexes · gnucobol · 来源: dl-cdn.alpinelinux.org
sudo apt install gnucobolDebian stable package indexes · gnucobol · 来源: deb.debian.org
sudo dnf install gnucobolFedora Rawhide package metadata · gnucobol · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gnucobolnixpkgs package indexes · pkgs/by-name/gn/gnucobol/package.nix · 来源: api.github.com
sudo zypper install gnucobolopenSUSE Tumbleweed package metadata · gnucobol · 来源: download.opensuse.org
概览
COBOL85-202x compiler supporting lots of dialect specific extensions
历史
GnuCOBOL is a free COBOL compiler that translates COBOL source to C and then uses the configured C compiler to produce native code. Its importance comes from keeping COBOL available in the GNU toolchain and package-manager world while supporting many historical dialects and newer COBOL standards features.
The project began as OpenCOBOL around 2002. The FAQ credits Keisuke Nishida as the initial developer, influenced by TinyCOBOL, records the first public 0.9.0 release on January 25, 2002, and notes Roger While taking the lead developer role in 2004. OpenCOBOL 1.0 followed in 2007, and the 1.1 line became the basis for the GNU-era package.
OpenCOBOL was accepted as an official GNU project on September 27, 2013 and first rebranded as GNU Cobol. The spelling GnuCOBOL became preferred in September 2014, Simon Sobisch became project lead in 2014, and the FAQ records Free Software Foundation copyright assignment becoming legally binding in June 2015 for the source tree dating back to the original public release.
Later releases expanded dialect handling, diagnostics, runtime behavior, source-level debugging, report writer support, JSON and XML generation, and compatibility with older and vendor-specific COBOL styles. The project page describes GnuCOBOL 3.2 as producing native executables and supporting Linux, BSD, proprietary Unix systems, macOS, Windows, and other platforms.
GnuCOBOL serves a particular adoption niche: organizations and individual programmers with COBOL code can compile and test it with a free compiler, often on commodity Unix-like systems. The FAQ says OpenCOBOL and GnuCOBOL have been used in production environments, while also warning that each production use needs risk analysis.
Its package-manager significance is amplified by COBOL's long commercial history. GnuCOBOL lets package repositories ship a working COBOL compiler without tying users to proprietary mainframe or vendor compiler ecosystems, and its LGPL runtime allows commercial use of generated programs under the stated license terms.
Practitioners use cobc to compile COBOL files into modules, object files, C output, or executable programs. Typical workflows include building legacy COBOL with dialect options such as -std, compiling free-format or fixed-format source, integrating C libraries, running modules with cobcrun, and using compiler listings or warning modes during modernization.
The package is also used for teaching, migration experiments, CI checks for COBOL code, and prototyping around vendor dialects. Because GnuCOBOL emits C, users can lean on the host compiler, linker, debugger, and platform libraries rather than requiring a dedicated COBOL runtime environment for every step.
GnuCOBOL is the rare package that makes a historically enterprise language feel like a normal open-source compiler dependency. For package maintainers it is a bridge between COBOL archives and modern Unix build systems; for language-runtime collectors it is a compact way to keep COBOL executable on laptops, CI runners, and free-software distributions.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cob-config | cli | 全局可执行文件 | |
cobc | cli | 全局可执行文件 | |
cobcrun | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://gnucobol.sourceforge.io/
安装元数据
| 软件包键 | brew:gnucobol |
|---|---|
| 版本 | 3.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gnucobol |
| 主页 | https://gnucobol.sourceforge.io/ |
| 上游文档 | https://gnucobol.sourceforge.io/doc/gnucobol.html |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://ftpmirror.gnu.org/gnu/gnucobol/gnucobol-3.2.tar.xz |
| 最后更新 | 2026-06-28T03:24:27Z |
| Pulse | updated |
| 依赖 | berkeley-db, gmp, json-c |
| 构建依赖 | pkgconf |
| macOS 提供的库 | libxml2, ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gnucobol |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gnucobol 5
compiler package for default GnuCOBOL
sudo apt install gnucobolgnucobol
nix profile install nixpkgs#gnucobolgnucobol 5
compiler package for default GnuCOBOL
sudo apt install gnucobolgnucobol 3.2-r0
GnuCOBOL compiler
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobolgnucobol-doc 3.2-r0
GnuCOBOL compiler (documentation)
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobol-docgnucobol-lang 3.2-r0
Languages for package gnucobol
https://www.gnu.org/software/gnucobol/
sudo apk add gnucobol-langlibcob4 3.2-r0
GnuCOBOL runtime library
https://www.gnu.org/software/gnucobol/
sudo apk add libcob4gnucobol 3.2-9.fc44
COBOL compiler
https://www.gnu.org/software/gnucobol/
sudo dnf install gnucobolgnucobol-esql 3.2-9.fc44
ESQL for GnuCOBOL
https://www.gnu.org/software/gnucobol/
sudo dnf install gnucobol-esqllibcob 3.2-9.fc44
GnuCOBOL runtime library
https://www.gnu.org/software/gnucobol/
sudo dnf install libcobgnucobol 3.2-3.3
A COBOL compiler
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobolgnucobol-esql 3.2-3.3
ESQL for GnuCOBOL
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobol-esqlgnucobol-esql-devel 3.2-3.3
Devel package for ESQL
https://www.gnu.org/software/gnucobol/
sudo zypper install gnucobol-esql-devellibcob4 3.2-3.3
GnuCOBOL shared library
https://www.gnu.org/software/gnucobol/
sudo zypper install libcob4gnucobol
sudo port install gnucobol来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.