cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Windchill shell error on Linux

SWeiler_9940261
16-Pearl

Windchill shell error on Linux

After installing Windchill PDMLink 12.1.2.2 on a RHEL 8.7 system (and same issue on RHEL 7.9 also), launching a Windchill shell results in the following error message:

readlink: missing operand
Try 'readlink --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.

 

In the Windchill shell environment, most commands seem to work, such as Windchill version gives expected results. It seems that the Classpath is not set effectively and thus commands to compile Java code will fail. For example, the following command fails:

javac -classpath ${CLASSPATH}:${WT_HOME}/srclib/tool/Annotations.jar -d ${WT_HOME}/codebase AfterEDRloader.java

 

But substituting the variable will yield successful compilation:

javac -classpath /opt/ptc/windchill/windchill/codebase:/opt/ptc/windchill/windchill/codebase/WEB-INF/lib/*:/opt/ptc/windchill/windchill/lib/*:/opt/ptc/windchill/windchill/tomcat/bin/bootstrap.jar:/opt/ptc/windchill/windchill/tomcat/bin/tomcat-juli.jar:/opt/ptc/windchill/windchill/wex/codebase:${WT_HOME}/srclib/tool/Annotations.jar -d ${WT_HOME}/codebase AfterEDRloader.java

 

Has anyone seen this behavior? What are possible consequences of this? How to resolve this and launch a Windchill shell cleanly?

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Did a new install on a Windows Server 2019 VM where the issue was not present. At this point looking to move to Windows instead as it gets around the issue.

View solution in original post

4 REPLIES 4

we run our servers on rhel, but i have not seen this error before

We've run various versions of Windchill on CentOS 6 and 7, RHEL 7 and 8 and never encountered this issue before. Trying to figure out what is unique about this one. Signs seem to point to access or security issue but not yet determined. 

What happens if you try to run the readlink or dirname commands yourself? Both inside Windchill shell and outside Windchill shell?

Did a new install on a Windows Server 2019 VM where the issue was not present. At this point looking to move to Windows instead as it gets around the issue.

Announcements


Top Tags