Cannot run in Ubuntu 22.04

Cannot run in Ubuntu 22.04 - Сообщения

#1 Опубликовано: 28.09.2023 15:57:49
vroberts

vroberts

0 сообщений из 7 понравились пользователям.

Группа: User

I cannot run the SmathStudio appimage in Ubuntu 22.04. Other appimage programs do run on the system, so I seem to have the proper resources. There is no error message. Just nothing.
#2 Опубликовано: 28.09.2023 18:51:04
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553
#3 Опубликовано: 29.09.2023 12:57:15
vroberts

vroberts

0 сообщений из 7 понравились пользователям.

Группа: User

Wrote

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553



If SM does not run on Debian based distros, I wonder why Ubuntu is listed on the Download page as the example of a Linux distro.

#4 Опубликовано: 20.07.2024 05:05:00
David Cigna

David Cigna

0 сообщений из 2 понравились пользователям.

Группа: User

Wrote

Wrote

This is mono bug of debian based distros. You can find detailed explanation about it at link below.

Regards

https://en.smath.com/forum/yaf_postsm75553_SMath-in-Linux.aspx#post75553



If SM does not run on Debian based distros, I wonder why Ubuntu is listed on the Download page as the example of a Linux distro.



I know this is a 10 month old thread, but this is such a common problem that I think it's worth responding.

overlord did not say that smath does not run on Debian based distros. I think that what he implied is that if it won't run, then you need to fix your mono installation.

One thing that finally worked for me was to install not just the mono runtime, but also the developer package:


sudo apt update
sudo apt upgrade
sudo apt install mono-runtime mono-devel

You can refer to this thread for more ideas:
Ask Ubuntu
#5 Опубликовано: 20.07.2024 05:23:41
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

In fact, you even don't need to fix or install anything. This is a common mono bug and it can be fixed with editing your smathstudio mono execution file.

With respect to pdalet, here is his post.

Wrote

Good New for ubuntu users

SMath Studio runs on ubuntu 22.04 without sudo.

Modify smathstudio_desktop_mono

#!/bin/sh
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

Ph.DALET
Lyp Champollion
Figeac-FRANCE

#6 Опубликовано: 03.08.2024 00:25:22
giddyApples8

giddyApples8

0 сообщений из 15 понравились пользователям.

Группа: User

Wrote

In fact, you even don't need to fix or install anything. This is a common mono bug and it can be fixed with editing your smathstudio mono execution file.

With respect to pdalet, here is his post.

Wrote

Good New for ubuntu users

SMath Studio runs on ubuntu 22.04 without sudo.

Modify smathstudio_desktop_mono

#!/bin/sh
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

Ph.DALET
Lyp Champollion
Figeac-FRANCE



Can you please explain how (which app to use) to modify the mono file?
#7 Опубликовано: 03.08.2024 03:55:00
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Wrote

Can you please explain how (which app to use) to modify the mono file?


This file (smathstudio_desktop_mono) is just a shell script file.
Edit it with your favorite text editor.

vim, leafpad, kate, nano, scite, notepadqq, etc etc
#8 Опубликовано: 06.08.2024 01:59:10
David Cigna

David Cigna

0 сообщений из 2 понравились пользователям.

Группа: User

Just to add a tiny bit for those that are not linux gurus. Overlord's suggestion works well if you place the shell script in the same folder as SMathStudio_Desktop.exe, cd into the folder with a command line, then execute smathstudio_dektop_mono. For those that prefer using a launcher to the keyboard, you need to modify the script a little more.

#!/bin/sh
cd /home//Applications/SMath_Studio
export MONO_WINFORMS_XIM_STYLE=disabled
exec mono "./SMathStudio_Desktop.exe" "$@"

I made a folder called SMath_Studio within the Applications folder (which may or may not already exist in your home directory) and copied the entire SMath file structure there. Obviously, replace with your user name. Now create an entry in your launcher that executes the shell script. The reason that all of this is necessary is because SMathStudio_Desktop.exe needs to start in the same folder as all of the associated SMath files. Simply specifying the complete path in the "exec mono" line will not be enough.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений