# 使用 Homebrew, MacPorts, Nix, apt, dnf 安装 geographiclib

查看 geographiclib 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:geographiclib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install geographiclib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install geographiclib
```

  证据: MacPorts ports tree: gis/geographiclib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#geographiclib
```

  证据: nixpkgs package indexes: pkgs/by-name/ge/geographiclib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install geographiclib-doc
```

  证据: Debian stable package indexes: geographiclib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install GeographicLib
```

  证据: Fedora Rawhide package metadata: GeographicLib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:geographiclib
- **软件包管理器:** Homebrew
- **版本:** 2.7
- **来源摘要:** C++ geography library
- **主页:** <https://geographiclib.sourceforge.io/>
- **仓库:** <https://github.com/geographiclib/geographiclib>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- Cart3Convert (别名)
- CartConvert (别名)
- Conformal3Proj (别名)
- ConicProj (别名)
- GeoConvert (别名)
- Geod3Solve (别名)
- GeodSolve (别名)
- GeodesicProj (别名)
- GeoidEval (别名)
- Gravity (别名)
- IntersectTool (别名)
- MagneticField (别名)
- Planimeter (别名)
- RhumbSolve (别名)
- TransverseMercatorProj (别名)
- geographiclib-get-geoids (别名)
- geographiclib-get-gravity (别名)
- geographiclib-get-magnetic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.7
## 项目历史与用法

GeographicLib is a family of geodesy libraries descended from Charles Karney's C++ library, which began in 2008. The C++ library provides geodesic and rhumb-line calculations, coordinate conversions, gravity and geomagnetic field calculations, triaxial-ellipsoid computations, command-line utilities, and high-accuracy algorithms intended to return results near round-off error.

### 项目历史

The project began as a C++ library, then grew because its geodesic routines were useful enough to port to several other languages. Before version 2.0, those implementations lived together in one repository; after version 2.0 they were split into a family of repositories, leaving the C++ repository as the broadest implementation.

The documentation describes GeographicLib as project-hosted on SourceForge, with repositories on GitHub and package distributions maintained through SourceForge. The C++ repository also documents separate release and development branches, a pattern useful to downstream packagers who need stable tagged releases.

### 采用历史

GeographicLib's geodesic routines spread beyond the C++ package into C, Fortran, Python, Octave/MATLAB, Java, and JavaScript implementations. The C library is incorporated into PROJ and the R geosphere package, and official notes list downstream availability in Linux distributions, conda-forge, vcpkg, and Homebrew.

### 使用方式

Practitioners use GeographicLib when accuracy matters for ellipsoidal geodesics, UTM/UPS/MGRS conversion, geocentric and local Cartesian conversion, geoid height evaluation, gravity models, magnetic models, polygon perimeter and area, and rhumb-line calculations. The package exposes this work through C++ APIs and many small utilities such as `GeodSolve`, `GeoConvert`, `GeoidEval`, `Gravity`, and `MagneticField`.

### 为什么软件包爱好者会关心

For package-manager users, GeographicLib is a compact but foundational geodesy dependency: it provides command-line tools, data installers, and stable library APIs used by mapping, GIS, surveying, navigation, and scientific software. The split between code packages and optional datasets makes it a classic packaging case where binaries and data files are handled separately.

### 时间线

- 2008: Charles Karney's original C++ library began.
- 2009-2025: The documentation copyright span reflects long-running public maintenance.
- 2.0: Language implementations were separated into a family of repositories.

### Related projects

- Related implementations include GeographicLib-C, GeographicLib-Fortran, GeographicLib-Python, GeographicLib-Java, and JavaScript packages. The documentation also names PROJ, geosphere, conda-forge, vcpkg, Homebrew, and several independent ports or wrappers.

### 来源

- <https://geographiclib.sourceforge.io/>
- <https://geographiclib.sourceforge.io/C++/doc/index.html>
- <https://geographiclib.sourceforge.io/doc/library.html>
- <https://github.com/geographiclib/geographiclib>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - geographiclib-doc - 2.5-1: normalized package name match | Debian stable package indexes: geographiclib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library to solve some geodesic problems -- documentation | https://geographiclib.sourceforge.io/
- Debian apt - geographiclib-tools - 2.5-1: normalized package name match | Debian stable package indexes: geographiclib-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library to solve some geodesic problems -- tools | https://geographiclib.sourceforge.io/
- Debian apt - libgeographiclib-dev - 2.5-1: normalized package name match | Debian stable package indexes: libgeographiclib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library to solve some geodesic problems -- development files | https://geographiclib.sourceforge.io/
- Debian apt - libgeographiclib26 - 2.5-1: normalized package name match | Debian stable package indexes: libgeographiclib26 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library to solve some geodesic problems -- library | https://geographiclib.sourceforge.io/
- Nix - geographiclib: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/geographiclib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - geographiclib-doc - 2.3-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: geographiclib-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library to solve some geodesic problems -- documentation | https://geographiclib.sourceforge.io/
- Ubuntu apt - geographiclib-tools - 2.3-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: geographiclib-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library to solve some geodesic problems -- tools | https://geographiclib.sourceforge.io/
- Ubuntu apt - libgeographiclib-dev - 2.3-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeographiclib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library to solve some geodesic problems -- development files | https://geographiclib.sourceforge.io/
- Ubuntu apt - libgeographiclib26 - 2.3-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeographiclib26 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library to solve some geodesic problems -- library | https://geographiclib.sourceforge.io/
- dnf - GeographicLib - 2.7-4.fc45: normalized package name match | Fedora Rawhide package metadata: GeographicLib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for geographic coordinate transformations | https://github.com/geographiclib/geographiclib
- dnf - GeographicLib-devel - 2.7-4.fc45: normalized package name match | Fedora Rawhide package metadata: GeographicLib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files and libraries for GeographicLib | https://github.com/geographiclib/geographiclib
- dnf - GeographicLib-doc - 2.7-4.fc45: normalized package name match | Fedora Rawhide package metadata: GeographicLib-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development documentation for GeographicLib | https://github.com/geographiclib/geographiclib
- dnf - mingw32-GeographicLib - 2.7-4.fc45: normalized package name match | Fedora Rawhide package metadata: mingw32-GeographicLib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | MinGW Windows GeographicLib library | https://github.com/geographiclib/geographiclib
- dnf - mingw64-GeographicLib - 2.7-4.fc45: normalized package name match | Fedora Rawhide package metadata: mingw64-GeographicLib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | MinGW Windows GeographicLib library | https://github.com/geographiclib/geographiclib
- MacPorts - geographiclib: normalized package name match | MacPorts ports tree: gis/geographiclib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - gravity: installed executable or alias match | MacPorts ports tree: lang/gravity/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/geographiclib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/geographiclib.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
