在Debian and Ubuntu上安装pgRouting

1、查看系统类型

bash 复制代码
lsb_release -cs

2、追加资源库列表

bash 复制代码
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

3、导入资源库的KEY,更新库列表

bash 复制代码
sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update

4、基于安装的postgresql安装pgrouting

bash 复制代码
sudo apt install postgresql-12-pgrouting

5、安装需要的依赖包,譬如postgresql或者postgis等

bash 复制代码
sudo apt-get update && sudo apt-get upgrade
相关推荐
徒 花1 分钟前
Docker在Ubuntu上的安装及配置(基于k8s基础环境配置)
ubuntu·docker·kubernetes
白狐_7981 小时前
硬核实战:从零构建飞书 × OpenClaw 自动化情报站(五)
运维·自动化·飞书
幸福指北10 小时前
我用 Tauri + Vue 3 + Rust 开发了这款跨平台网络连接查看工具PortView,性能炸裂!
运维·网络·监控
酿情师11 小时前
Windows Subsystem for Linux (WSL, Ubuntu)安装教程(详细)
linux·windows·ubuntu
青柠代码录12 小时前
【Linux】路径区分:testdir、testdir/、testdir/*
linux·运维·服务器
djarmy12 小时前
ubuntu20.04搭建openharmony6.0的master分支。构建编译环境报错解决记录
c语言·ubuntu
supersolon13 小时前
Windows下WSL(Ubuntu24.04)安装Nodejs
linux·ubuntu·node.js
Benszen13 小时前
Docker容器化解决方案全解析
运维·docker·容器
badhope14 小时前
Docker从零开始安装配置全攻略
运维·人工智能·vscode·python·docker·容器·github
mounter62514 小时前
基于MLX设备的Devlink 工具全指南与核心架构演进
linux·运维·服务器·网络·架构·kernel