MindStudio IDE Installation
- Only one installation of MindStudio IDE is permitted within a single directory on a server. Before installing MindStudio IDE, ensure that any previous installation has been uninstalled. For details, see Uninstallation (Linux) IDE.
- Log in to the OS as the MindStudio IDE installation user. It is not supported to switch to the MindStudio IDE installation user after login as a different user.
Prerequisites
- Software Package Preparation to Dependency Installation have been completed.
- You have installed the Ascend-CANN-Toolkit by following instructions in the CANN Software Installation Guide.
Procedure
- Upload the software package to the target environment as the MindStudio IDE installation user.
- Decompress the MindStudio IDE package.
Run the following command in the target directory as the MindStudio IDE installation user to decompress the MindStudio_{version}_linux_{arch}.tar.gz package:
tar -zxvf MindStudio_{version}_linux_{arch}.tar.gzFor details about the content extracted from the package, see Table 1.
The decompression path of the package must consist of letters (a-z or A-Z), digits (0-9), underscores (_), hyphens (-), slashes (/), and periods (.). Otherwise, the error message "The install path is invalid, only characters in [a-z,A-Z,0-9,-,/,.] are supported!" is displayed during MindStudio IDE installation and the installation exits.
- As the MindStudio IDE installation user, go to the MindStudio/bin directory generated after package decompression.
cd MindStudio/bin - Run the following command to start MindStudio IDE:
./MindStudio.sh
If MindStudio IDE cannot be started by running the preceding command, run the following command to start it:
- Run the following command to query the shell parsing mode in the current environment:
echo $SHELL
- If the following information is displayed, the command lines in the current environment need to be parsed using bash:
/bin/bash
- Run the following command to start MindStudio IDE:
bash MindStudio.sh
- If the error message "Failed to initialize graphics environment", "Unable to detect graphics environment", or "Can't connect to X11 window server using 'localhost:xxx' as the value of the DISPLAY variable" is displayed when MindStudio IDE is started, rectify the fault by referring to What Do I Do If the GUI Cannot Be Displayed When MindStudio IDE Is Started?.
- If the error message "WARNING: Install the haveged service by referring to the installation guide." is displayed when MindStudio IDE is started, rectify the fault by referring to What Do I Do If I Get Error "WARNING: Install the haveged service by referring to the installation guide" When Starting MindStudio IDE?.
- If the system displays a message indicating that the libXext.so.6 file cannot be found when MindStudio IDE is started on EulerOS 2.10, rectify the fault by referring to What Do I Do If I Get Error "java.lang.UnsatisfiedLinkError: /home/username/MindStudio/jbr/lib/libawt_xawt.so" When Starting MindStudio IDE?.
- If the system displays a message indicating that no sufficient space can be reserved for the object heap when MindStudio IDE is started, rectify the fault by referring to What Do I Do If MindStudio IDE Cannot Be Started When the Set Memory Is too Large?.
- To specify the jdk operating environment for MindStudio IDE, create the mindstudio.jdk file in the $HOME/.config/Huawei/MindStudioMS-{version} directory and write the .jbr or .jdk installation directory of the user into the file.Figure 1 mindstudio.jdk (example)

- Run the following command to query the shell parsing mode in the current environment:
Parent topic: MindStudio IDE Installation and Configuration