Hyperworks 2021.2 Linux Installtion Error

Roxana_21213
Roxana_21213 New Altair Community Member
edited March 2023 in Community Q&A

Hi,
I just downloaded the install file and hotfix for the Hyperworks 2021.2 suite.

The installation script correctly run through and there is nothing suspicious in the logs. However, when I start the program from

./INSTALL_PATH/hwdesktop/script/hwx

I receive the following errors:

INSTALL_PATH/hwdesktop/scripts/hw: 101: /home/benutzerin/2021.2/altair/hwdesktop/scripts/invoke/common.sh: [[: not found
INSTALL_PATH/hwdesktop/scripts/hw: 125: [[: not found

INSTALL_PATH/hwdesktop/scripts/hw: 318: [: hw: unexpected operator

INSTALL_PATH/hwdesktop/scripts/hw: 318: [: hw: unexpected operator

INSTALL_PATH/hwdesktop/scripts/hw: 318: [: hw: unexpected operator

INSTALL_PATH/hwdesktop/scripts/hw: 331: export:0x8400038: bad variable name

I cannot identify the problem in the Hyperworks logs.
Does someone have an idea what the probelm could be?

Thank you in advance,
Roxana

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Nishant Mistry
    Nishant Mistry Altair Community Member
    edited March 2023

    Hi Roxana,

     

    I am facing the same issue. Did you find a solution to this problem?

    Thanks,

    Nishant

  • Nishant Mistry
    Nishant Mistry Altair Community Member
    edited March 2023

    Hi Roxana,

     

    I am facing the same issue. Did you find a solution to this problem?

    Thanks,

    Nishant

    Ok, I think I found out the issue.  Just change shebang in the script from

    #!/bin/sh

    to

    #!/bin/bash

    and the errors go away.

  • Alberto Casas
    Alberto Casas Altair Community Member
    edited March 2023

    Hi Roxana and Nishant!!

    I am having the same issue. Did you handle to work out??

    Any help will be handy!!! Thank you in advance.

  • Nishant Mistry
    Nishant Mistry Altair Community Member
    edited March 2023

    Dear Alberto ,

     

    as I mentioned earlier, these errors are due to the script having a shell shebang. Either you can change the shebang as per my earlier reply or you can create a symlink of sh pointing to bash in the /usr/bin/

     

    I hope this helps.

    Nishant

  • Alberto Casas
    Alberto Casas Altair Community Member
    edited March 2023

    Dear Nishant, 

    It seems like I have worked out the issue so thank you so much for your help!!!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.