I Installed a program, need to set the environment variable so that when the executable is entered,it finds the path to the executable.
The documentation for the software says: Set the appropriate environment variable:
Connect to server failed; check $P4PORT.
TCP connect to 126.4.200.33:1666 failed.
connect: 126.4.200.33:1666: Network is unreachable
Connect to server failed; check $P4PORT.
TCP connect to 126.4.200.33:1666 failed.
connect: 126.4.200.33:1666: Network is unreachable
If the IP/Port in the error messages is correct then the problem is related to the routes on the server.
If the IP/Port are NOT correct then setting the environment variable will depend on which shell you are using.
The default profile for almost all users is /etc/profile. If setting it for all users is not a problem then put the directive in there.
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
no answer from 126.4.200.33
Read the fscking error message. The problem is not related to the environment variable, your server does not have a route to that IP. Contact your network administrator.