首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在centOS中运行运行文件时出错-显示错误

在centOS中运行运行文件时出错-显示错误
EN

Stack Overflow用户
提问于 2020-05-21 21:50:40
回答 1查看 437关注 0票数 0

我有一个任务是在使用VM的Linux8上安装Oracle11g(我是centOS / Oracle的新手)。我下载了Oracle文件并解压缩它们,然后我尝试./runInstaller,但我得到了一个错误,这是带有错误的完整终端:

代码语言:javascript
运行
复制
login as: admin
admin@192.168.163.129's password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Thu May 21 09:26:48 2020 from 192.168.163.1
[admin@oracledb ~]$ cd Downloads
[admin@oracledb Downloads]$ cd database
[admin@oracledb database]$ ls
doc      linux.x64_11gR2_database_1of2  response  runInstaller  stage
install  linux.x64_11gR2_database_2of2  rpm       sshsetup      welcome.html
[admin@oracledb database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 2027 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1759 MB    Passed
Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y


>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-05-21_09-43-58AM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
        echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
        echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
        % <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock
[admin@oracledb database]$

我正在使用putty和Xming,但是我仍然得到这个错误。

EN

回答 1

Stack Overflow用户

发布于 2020-05-21 22:20:08

确保您的putty会话连接到"x-11端口转发“

确保在设置后,向上滚动到“Session”,然后“save”。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61936048

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档