【问题标题】:unable to install omniidl in RHEL 7无法在 RHEL 7 中安装omniidl
【发布时间】:2020-09-18 07:13:24
【问题描述】:

我正在尝试在 RHEL 7.5 中安装omniORB。运行 make 命令时出现以下错误。我想要解决这个问题,我必须安装omniidl。

../../../../../src/tool/omniidl/cxx/idlpython.cc:31:26:致命错误:Python.h:没有这样的文件或目录

包括 PYTHON_INCLUDE

                      ^

编译终止。 make[4]: *** [idlpython.o] 错误 1 make[4]: 离开目录/var/omniORB/omniORB-4.2.4/build/src/tool/omniidl/cxx' make[3]: *** [export] Error 1 make[3]: Leaving directory /var/omniORB/omniORB-4.2.4/build/src/tool/omniidl' make[2]: *** [导出] 错误 1 make[2]: 离开目录/var/omniORB/omniORB-4.2.4/build/src/tool' make[1]: *** [export] Error 1 make[1]: Leaving directory /var/omniORB/omniORB-4.2.4/build/src' make: *** [all] 错误 1

当我运行 yum install omniidl 时,出现以下错误。请帮助如何解决。

加载的插件:langpacks、product-id、search-disabled-repos、subscription-manager 此系统未向授权服务器注册。您可以使用订阅管理器进行注册。 没有可用的软件包omniidl。 错误:无事可做

【问题讨论】:

    标签: python corba omniorb


    【解决方案1】:

    我不确定,但也许解释器无法处理这样的路径../../../。 尝试改用绝对路径。例如:

    In[2]: import os 
    In[3]: os.getcwd()
    Out[3]: '/home/pc/PycharmProjects/test_project'
    In[4]: os.path.abspath('../test.txt')
    Out[4]: '/home/pc/PycharmProjects/test.txt'
    

    在这个示例中,我在当前目录 test_project 之外有一个文件 test.txt

    【讨论】:

    • 没有。粘贴的输出是我运行 make 命令时的。但是我如何在 RHEL 中安装omniidl
    猜你喜欢
    • 1970-01-01
    • 2020-01-26
    • 2016-02-17
    • 2021-03-02
    • 2014-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多