Hi,
I try to install Knowage 6.1 on linux and I keep getting an error:
Unable to find environment variable JAVA_HOME, please set it and restart installer
Despite it is already set:
echo $JAVA_HOME/opt/bitnami/java
Has anyone faced the same problem?
The user indicated that the issue can be solved by running the cmd with sudo -E.
-E, --preserve-envIndicates to the security policy that the user wishes to preserve their existing environment variables. The security policy may return an error if the user does not have permission to preserve the environment.
-E, --preserve-env
Indicates to the security policy that the user wishes to preserve their existing environment variables. The security policy may return an error if the user does not have permission to preserve the environment.
For more detail, see https://www.sudo.ws/man/sudo.man.html#E