无法在 RHEL 7 中安装omniidl

Posted

技术标签:

【中文标题】无法在 RHEL 7 中安装omniidl【英文标题】:unable to install omniidl in RHEL 7 【发布时间】: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。 错误:无事可做

【问题讨论】:

【参考方案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

以上是关于无法在 RHEL 7 中安装omniidl的主要内容,如果未能解决你的问题,请参考以下文章

在 PHP 7.3.6 -RHEL 7.6 中安装 mcrypt

在rhel 7.4中安装glibc-devel-2.17-196.el7.i686包的过程详录

pip 无法在 Python 2.7、Windows 7 中安装模块

IBM Worklight 6.1:无法在 Windows 7 中安装

在 Windows 7 的 Program Files 中安装应用程序时无法打开数据库文件

无法在ruby 1.8.7-p374中安装宝石