When using the tmax2 command to start, tmax2 reports the following error
ERROR: $SYNOPSYS/bin was not found in your PATH setting.'
Verify that $SYNOPSYS is correctly set and that your'
PATH includes $SYNOPSYS/bin before retrying.'
Currently SYNOPSYS = '$SYNOPSYS'"
Check the tetramax environment variable configuration (module file), the output is as follows:
setenv TMAX_HOME /soft/synopsys/tetramax/Q-2019.12-SP4/
setenv SYNOPSYS /soft/synopsys/tetramax/Q-2019.12-SP4/
prepend-path PATH /soft/synopsys/tetramax/Q-2019.12-SP4/bin
prepend-path MANPATH /soft/synopsys/tetramax/Q-2019.12-SP4/doc/snps_tcl/man
prepend-path MANPATH /soft/synopsys/tetramax/Q-2019.12-SP4/doc/snps_gui/man
Output PATH path:
/soft/synopsys/tetramax/Q-2019.12-SP4/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Error correction and resolution:
Check the tmax2 startup script: vim /soft/synopsys/tetramax/Q-2019.12-SP4/bin/tmax2
Find the error prompt keyword and see it on lines 471 and 472:
CHKPATH=`echo $PATH | grep -c "$SYNOPSYS/bin"`
if [ $CHKPATH -eq 0 ]; then
These two lines represent the number of occurrences of "$SYNOPSYS/bin" in the configuration that determines the PATH. .
After detailed inspection, it was found that the path of $SYNOPSYS in the module configuration file is:
/soft/synopsys/tetramax/Q-2019.12-SP4/
Then the actual path of the corresponding $SYNOPSYS/bin is:
/soft/synopsys/tetramax/Q-2019.12-SP4//bin
Note the difference: the latter one has one more "/" than the upper one
Lookup failed with 0 occurrences. So tmax2 fails to start with an error.
Modify the module file and change /soft/synopsys/tetramax/Q-2019.12-SP4/ to /soft/synopsys/tetramax/Q-2019.12-SP4
Remove the last "/", save, re-run tmax2, the startup is successful