cancel
Showing results for 
Search instead for 
Did you mean: 

DISPLAY environment variable problem

Former Member
0 Kudos

Hello gurus,

I want to install SAP ERP 2005 SR2 IDES with oracle on RHEL5.

Server's DISPLAY env. variabe is :0.0 and I chane this variable my_server_ip:0.0 and export it.

after that I start the xclock it gives the error like that:

Error: Can't open display: <my_server_ip>:0.0

so I cannot start ./sapinst correctly.

I read the forum but I cannot solve this problem.

What can I do ? Please help me.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

> Server's DISPLAY env. variabe is :0.0 and I chane this variable my_server_ip:0.0 and export it.

> after that I start the xclock it gives the error like that:

>

> Error: Can't open display: <my_server_ip>:0.0

If you are logged on locally on your server and a DISPLAY variable is set don't change it.

Markus

Former Member
0 Kudos

Hi Markus,

When I start ./sapinst, it shows this:

[root@REDIDES1SRV IM_LINUX_X86_64]# ./sapinst

[==============================] - extracting... done!

Starting GuiServer using:

/opt/IBMJava2-amd64-142/bin/java -cp /tmp/sapinst_exe.13469.1267705544/JAR/instgui.jar:/tmp/sapinst_exe.13469.1267705544/JAR/inqmyxml.jar -Djava.security.egd=file:/dev/urandom SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true

load resource pool /SAPDVD/SAP_ERP_2005_SR2_IDES_Installation_Master/IM_LINUX_X86_64/resourcepool.xml

guiengine: no GUI connected; waiting for a connection on host REDIDES1SRV, port 21200 to continue with the installation

and nothing happens, why?

What can I do?

Thanks

Former Member
0 Kudos

Hi,

Defo looks like your an X window issue from the output you just gave.

If your IP address for the DISPLAY variable is set correctly

Mark

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks to everyone

Edited by: ozgur_tas on Mar 5, 2010 12:55 PM

Former Member
0 Kudos

Hi Markus,

When I start ./sapinst, it shows this:

root@REDIDES1SRV IM_LINUX_X86_64# ./sapinst

============================== - extracting... done!

Starting GuiServer using:

/opt/IBMJava2-amd64-142/bin/java -cp /tmp/sapinst_exe.13469.1267705544/JAR/instgui.jar:/tmp/sapinst_exe.13469.1267705544/JAR/inqmyxml.jar -Djava.security.egd=file:/dev/urandom SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true

load resource pool /SAPDVD/SAP_ERP_2005_SR2_IDES_Installation_Master/IM_LINUX_X86_64/resourcepool.xml

guiengine: no GUI connected; waiting for a connection on host REDIDES1SRV, port 21200 to continue with the installation

and nothing happens, why?

What can I do?

Thanks

Edited by: ozgur_tas on Mar 4, 2010 1:31 PM

hannes_kuehnemund
Active Contributor
0 Kudos

on target execute: xhost +

on server make sure that .Xauthority exist ! (if not, search google how to setup)

Hannes

former_member524429
Active Contributor
0 Kudos

Hi,

Please check that xclock kind of graphical programs, you are able to execute without any errors. with proper DISPLAY variable settings.

Also check the version of used jdk... "java -fullversion". its there as recommended as in sap note 1172419.

Also check the network settings (entry in /etc/hosts file)...

Regards

Bhavik G. Shroff

Former Member
0 Kudos

Hi,

[root@REDIDES1SRV ~]# echo $DISPLAY

:0.0

[root@REDIDES1SRV ~]# xclock

ok. it works

[root@REDIDES1SRV ~]# java -fullversion

java full version "J2RE 1.4.2 IBM build j9xa64142-20090306 (SR13)"

[root@REDIDES1SRV ~]# echo $JAVA_HOME

/opt/IBMJava2-amd64-142

[root@REDIDES1SRV ~]# echo $PATH

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/opt/IBMJava2-amd64-142/bin

/etc/hosts

  1. Do not remove the following line, or various programs

  2. that require network functionality will fail.

127.0.0.1 localhost

::1 localhost6.localdomain6 localhost6

192.168.4.121 REDIDES1SRV.mbis.corp REDIDES1SRV

[root@REDIDES1SRV ~]# hostname

REDIDES1SRV

[root@REDIDES1SRV ~]# hostname -s

REDIDES1SRV

[root@REDIDES1SRV ~]# hostname -f

REDIDES1SRV.mbis.corp

is these wrong?

Thanks.

Edited by: ozgur_tas on Mar 5, 2010 8:14 AM

Edited by: ozgur_tas on Mar 5, 2010 8:19 AM

Former Member
0 Kudos

Hi,

root@REDIDES1SRV ~# echo $DISPLAY

:0.0

Your echo is not bringing back your IP address your DISPLAY has not set properly for some reason.

Mark

Former Member
0 Kudos

>

> Hi,

>

>

>

root@REDIDES1SRV ~# echo $DISPLAY

> :0.0

>

> Your echo is not bringing back your IP address your DISPLAY has not set properly for some reason.

>

>

> Mark

"If you are logged on locally on your server and a DISPLAY variable is set don't change it." Markus said. So I didnot change DISPLAY env var.

Thanks.

markus_doehr2
Active Contributor
0 Kudos

> "If you are logged on locally on your server and a DISPLAY variable is set don't change it." Markus said. So I didnot change DISPLAY env var.

This is correct.

So xclock works, sapinst does not.

Try the following:

mkdir /install
chmod 777 /install
cd /install
rm -rf /tmp/sapinst*
<full-path-to-sapinst>/sapinst

Markus

Former Member
0 Kudos

>

> > "If you are logged on locally on your server and a DISPLAY variable is set don't change it." Markus said. So I didnot change DISPLAY env var.

>

> This is correct.

>

> So xclock works, sapinst does not.

>

> Try the following:

>

>

mkdir /install
> chmod 777 /install
> cd /install
> rm -rf /tmp/sapinst*
> <full-path-to-sapinst>/sapinst

>

>

>

> Markus

Hi Markus,

I did these:

[root@REDIDES1SRV ~]# mkdir /install

[root@REDIDES1SRV ~]# chmod 777 /install

[root@REDIDES1SRV ~]# cd /install

[root@REDIDES1SRV install]# rm -rf /tmp/sapinst*

[root@REDIDES1SRV install]# /SAPDVD/SAP_ERP_2005_SR2_IDES_Installation_Master/IM_LINUX_X86_64/sapinst

[==============================] - extracting... done!

Starting GuiServer using:

/opt/IBMJava2-amd64-142/bin/java -cp /tmp/sapinst_exe.26112.1267785773/JAR/instgui.jar:/tmp/sapinst_exe.26112.1267785773/JAR/inqmyxml.jar -Djava.security.egd=file:/dev/urandom SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true

load resource pool /SAPDVD/SAP_ERP_2005_SR2_IDES_Installation_Master/IM_LINUX_X86_64/resourcepool.xml

guiengine: no GUI connected; waiting for a connection on host REDIDES1SRV, port 21200 to continue with the installation

and still nothing change.

What am I doing wrong?

Thanks.

markus_doehr2
Active Contributor
0 Kudos

> guiengine: no GUI connected; waiting for a connection on host REDIDES1SRV, port 21200 to continue with the installation

>

> and still nothing change.

This is really strange.

Is your firewall deactivated?

Markus

Former Member
0 Kudos

Yes Firewall and SELinux disabled.

Thanks.

Edited by: ozgur_tas on Mar 5, 2010 12:17 PM

Former Member
0 Kudos

Hi again,

in /root/sdtstart.err

05/Mar/2010 13:23:39 error in:

Class : com.sap.sdt.gui.core.SDTGui

Name : main

Static : true

class [Ljava.lang.String; - [Ljava.lang.String;@7dad7dad

java.lang.RuntimeException: invocation target exception: awt (libXp.so.6: cannot open shared object file: No such file or directory)

at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:110)

at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

at SDTGui.main(SDTGui.java:46)

I think it is not normal. But I cannot understand the problem. Do you have any idea?

05/Mar/2010 13:23:39 GMT+2

Thanks.

Edited by: ozgur_tas on Mar 5, 2010 12:27 PM

markus_doehr2
Active Contributor
0 Kudos

> java.lang.RuntimeException: invocation target exception: awt (libXp.so.6: cannot open shared object file: No such file or directory)

> at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:110)

> at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

> at SDTGui.main(SDTGui.java:46)

>

> I think it is not normal. But I cannot understand the problem. Do you have any idea?

You use Redhat, right?

Note 1048303 - Red Hat Enterprise Linux 5.x: Installation and upgrade

You need to install additional libraries (see that note).

Markus

Former Member
0 Kudos

>

> > java.lang.RuntimeException: invocation target exception: awt (libXp.so.6: cannot open shared object file: No such file or directory)

> > at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:110)

> > at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

> > at SDTGui.main(SDTGui.java:46)

> >

> > I think it is not normal. But I cannot understand the problem. Do you have any idea?

>

> You use Redhat, right?

>

> Note 1048303 - Red Hat Enterprise Linux 5.x: Installation and upgrade

>

> You need to install additional libraries (see that note).

>

>

>

>

> Markus

Hi Markus,

Thanks for your interest and helpfull messages. You are right. I use libXp.so.6 for x64 and now install i386 and it works. I can start the installation

Thanks

former_member524429
Active Contributor
0 Kudos

Hi,

Error: Can't open display: <my_server_ip>:0.0

DISPLAY environment variable is set with <host_name>:0.0, where <host_name/host_IP> is the host where the SAPinst GUI is displayed.

Have you tried the following execution...??

-> Login as root

  1. xhost +

  1. export DISPLAY=<host_name/host_IP>:0.0 (based on used shell, you will have to set/export the variable)

  1. xclock

Regards,

Bhavik G. Shroff

Former Member
0 Kudos

Hi,

First, make sure that you have added host entry in /etc/hosts file for your server as below

<IP Address of your Server>    <Hostname of your server>
127.0.0.1                localhost

Then try again, it should work...

By the way, can we know how you are starting installation ?

I mean from Client system or directly from server itself ?

If you are installing from other system, you should set as

export DISPLAY=<your local host IP>:0.0

Regards.

Rajesh Narkhede

Former Member
0 Kudos

Hi,

The IP address you have set for DISPLAY is this the servers IP address where SAP will be loaded or your PC's ?

Mark

Former Member
0 Kudos

Hi,

*Mark

I use sapinst on server. All processes work on server.

*Rajesh

I added host entry before this problem. So it is ok but it didnot work.

I start the installation on server.

Thanks