Installing MiSaSiM under Linux
python3 --version |
If you do not already have Python 3.11 installed, follow the instructions for your distribution at python.org.
python3 |
in the terminal command line and at the Python prompt type:
>>> import tkinter |
If you get an error message saying there is no module named tkinter, you have to install it. At the command line type:
sudo apt-get install python3-tk |
This is where both the MiSaSiM executable files and assembly files will be stored. The working directory will contain an ./asm directory where MIPS assembly programs can be stored and a ./bin directory containing the MiSaSiM python executable (compiled bytecode) files.
Launching Misasim from terminal or from Windows10 Bash shell: set up an X server to support the GUI. You need to set the DISPLAY variable in the terminal command line and then launch Misasim:
export DISPLAY=:0 |
(You can also add the export command to your .bashrc file.)
Launching Misasim from a file manager GUI in Linux: Launching Misasim.py using mouse clicks fails because the default directory is not correct. This can be fixed easily with a shell script. In the Misasim bin directory, click right and choose New Document>Empty Document. Name the file "Misasim.sh". Then edit the file (open with gedit) and add the lines listed below. Replace "scotty" with your home directory name.
cd /home/scotty/Misasim/bin |
Then select the file and click right Properties>Permissions. Check "Allow executing as a program".
Now you can add a shortcut launcher to your desktop by doing one of the following. In Ubuntu 11.04 and older, click right over the desktop and select "Create Launcher".
In newer Ubuntu versions, you can pull up the Create Launcher dialog box by:
Method 1:
sudo apt-get install --no-install-recommends gnome-panel |
gnome-desktop-item-edit ~/Desktop/ --create-new |
Method 2:
[Desktop Entry] |
These methods will place an icon on your desktop that will allow you to click on it to launch MiSaSiM.