无法从源代码在 Ubuntu 16.04 中安装 SUMO 0.30.0

Trouble installing SUMO 0.30.0 in Ubuntu 16.04 from source code

我需要安装 SUMO 0.30.0 以便与 veins 4.6 中的 VEINS_INET 子项目一起使用。我已尝试按照此处的说明和论坛的建议进行操作,但未能安装 sumo。我 运行 ./configure(尝试各种 tool/library 选项)然后 运行 sudo make 但我得到的只是目标 marouter 失败或 'install-exec-am' [=16= 什么都不做].

有谁知道如何从源代码安装 sumo-0.30.0 and/or 使 veins_inet 子项目与最新版本的 sumo-0.32.0 一起工作?

不要 运行 sudo make.

不要 运行 sudo make.


您的问题可能与 16.04 中的 dependency/packaging 更改有关,veins tutorial 中明确指出:

Note that Ubuntu 16.04 no longer includes libproj0; this can be worked around by temporarily adding the packet repository of, e.g., Ubuntu Vivid when installing this package.

简短回答:不幸的是,这意味着从长远来看,您要么必须自己打包 SUMO,要么使用其他人编译的版本(例如参见 [​​=14=]),要么依赖旧版本.


长答案: 一般来说,我建议通过从源代码构建 SUMO 的依赖项来从源代码构建 SUMO,因为我在各种发行版上都遇到过这个问题。特别是,fox、proj 和 gdal 库倾向于打包成不同的版本,并且伴随着 SUMO 源代码的变化。我目前使用 this script(下载包版本)来编译 SUMO——但这是针对 0.30.0 的,如果任何引用的源包被移动(这种情况经常发生),它就会中断。我的一般建议是要么使用完全隔离的 SUMO 版本(即尽可能手工编译),要么依赖预打包的版本(见上文),只要该版本足够新,可以与 VEINS 一起使用.