我试图安装"gr-ais“,在使用CMake时遇到了一个错误:”无法找到MPIR (缺失: MPIRXX_LIBRARY MPIR_INCLUDE_DIR)":
mavo@mavo:~/Dokumente/ais$ cmake gr-ais/
-- Build type not specified: defaulting to release.
-- Checking for module 'mpir >= 3.0'
-- No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_INCLUDE_DIR)
-- User set python executable /usr/bin/python3
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable exact version "3.8.5")
-- Extracting version information from git describe...
-- Using install prefix: /usr/local
-- Building for version: 21621032 / 0.9.0git
--
-- Checking for module SWIG
-- Disabling SWIG because version check failed.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mavo/Dokumente/ais因此,gr_ais无法工作:
mavo@mavo:~/Dokumente/ais$ ais_rx
Traceback (most recent call last):
File "/usr/local/bin/ais_rx", line 6, in <module>
import ais
ModuleNotFoundError: No module named 'ais'我也安装了mpir3.0 (https://github.com/wbhart/mpir/releases)、gnuradio同伴(3.8.1.0)、GMP 6.2.1和libgmp-dev (2:6.2.0+dfsg-4)。还有其他想法吗?
发布于 2021-02-16 07:21:23
这解决了我的问题:我需要在/usr上安装gr-ais,而不是/usr/local。所以,只需键入cmake -DCMAKE_INSTALL_PREFIX=/usr gr-ais/,我认为在/use/本地python中找不到库.别忘了以前做make clean。
我也安装了更多的软件包:
sudo apt install -y cmake autoconf libtool pkg-config build-essential libcppunit-dev swig doxygen liblog4cpp5-dev gnuradio-dev gr-osmosdr libosmogsm10 libosmocodec0 libosmogsm-doc libosmosdr0 libosmocodec-doc libosmosdr-dev libosmocoding0 libosmocoding-doc libosmocore libosmocore11 libosmocore-dev libosmocore-doc libosmocore-utils libosmoctrl0 libosmoctrl-doc毕竟,只需做: make和sudo make ais_rx ist就可以用于sudo了。
,但这并没有解决缺少的mpir包。CMake还在抱怨,但是gr-ais似乎现在起作用了。
https://stackoverflow.com/questions/66215857
复制相似问题