Инструкция по установке linux версии - Сообщения
ЦитатаПробовал запустить на armf версии debian:
android@localhost:
ты на андроидо-девайс в chroot поставил debian и теперь оттуда пытаешься запустить smath? давай подробности своих бесчеловечных экспериментов.
на вскидку могу сказать, что mono ругается на отсутствующий плагинRANDR, возможно даже на отсутствие Х-сервера целиком.
У меня не получилось запустить SMathStadio
ОС OpenSUSE 13.1 64 бит. Скачал, как написано в инструкции, пакеты отсюда:http://download.mono-project.com/archive/3.2.3/linux/x64/. Создал в домашнем катологе папку SMathStadio, распаковал в неё архив с программой. Зашёл в папку "SMathStadio" в домашнем каталоге, в нём папка "SMathStudioDesktop.0_96_4868.Mono". Зашёл в неё, там файл "SMathStudio_Desktop.exe". Правой кнопкой мыши на него кликнул -> открыть с помощью, в строке поиска ввёл "mono", поставил галочку привязать, что-то в этом роде. Начинает моргать возле курсора шестерёнка, вроде как бы что-то открывается, но потом всё пропадает. Что я делаю не так?
Через терминал:
pavel@linux-of10:~/SMathStudio/SMathStudioDesktop.0_96_4868.Mono> mono *.exe
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/lib/libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in
at System.Windows.Forms.XplatUI..cctor () [0x00000] in
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in
at .. (System.String[] args) [0x00000] in
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/lib/libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in
at System.Windows.Forms.XplatUI..cctor () [0x00000] in
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in
at .. (System.String[] args) [0x00000] in
похоже, что тебе надо поставить еще пакет libgdiplus0.
з.ы. обновил интсрукцию для зюзеводов
mono winform 2.0 установлен...
как быть????
При запуске в консоли выдает:
KDE colorscheme read failure, using built-in colorscheme
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
- [AppDir] HTML Export (1.13.5737.24525)
- [AppDir] Export to image (1.9.5737.24526)
- [AppDir] Picture Region (1.10.5737.24525)
- [AppDir] Plot Region (1.9.5737.24527)
- [AppDir] SMath Studio Files Plugin (1.9.5737.24527)
- [AppDir] Special Functions (1.11.5737.24524)
- [AppDir] Text Region (1.10.5737.24526)
- [AppDir] SMath Viewer Files Plugin (1.1.5737.24528)
- [AppDir] XMCD Files Plugin (1.12.5737.24526)
Stacktrace:
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipLoadImageFromDelegate_linux (System.Drawing.GDIPlus/StreamGetHeaderDelegate,System.Drawing.GDIPlus/StreamGetBytesDelegate,System.Drawing.GDIPlus/StreamPutBytesDelegate,System.Drawing.GDIPlus/StreamSeekDelegate,System.Drawing.GDIPlus/StreamCloseDelegate,System.Drawing.GDIPlus/StreamSizeDelegate,intptr&) <0xffffffff>
at System.Drawing.Image.InitFromStream (System.IO.Stream) <0x001c3>
at System.Drawing.Bitmap..ctor (System.IO.Stream,bool) <0x00023>
at System.Drawing.Bitmap..ctor (System.IO.Stream) <0x00017>
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap..ctor (System.IO.Stream) <0xffffffff>
at SMath.Manager.GlobalParams.GetImageFromResources (System.Reflection.Assembly,string) <0x00053>
at .. (.,string[2]) <0x00143>
at .. () <0x02e7b>
at .. (object,System.EventArgs) <0x00c13>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00062>
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <0x00084>
at System.Windows.Forms.Form.OnCreateControl () <0x00057>
at System.Windows.Forms.Control.CreateControl () <0x0012f>
at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) <0x00117>
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) <0x002b3>
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) <0x00013>
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) <0x00057>
at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <0x0023f>
at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x0001a>
at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x0002b>
at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x001ec>
at System.Windows.Forms.XplatUIX11.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x002b3>
at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd,System.Windows.Forms.WindowType) <0x0019e>
at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams) <0x00be3>
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) <0x0001a>
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) <0x00033>
at System.Windows.Forms.Control.CreateHandle () <0x0007a>
at System.Windows.Forms.Form.CreateHandle () <0x00017>
at System.Windows.Forms.Control.CreateControl () <0x0008b>
at System.Windows.Forms.Control.SetVisibleCore (bool) <0x0007b>
at System.Windows.Forms.Form.SetVisibleCore (bool) <0x00227>
at System.Windows.Forms.Control.set_Visible (bool) <0x00029>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0xffffffff>
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x0020b>
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0004f>
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00037>
at .. (string[]) <0x001eb>
at (wrapper runtime-invoke)
Native stacktrace:
/usr/bin/mono() [0x80e5f22]
/usr/bin/mono() [0x81220ba]
/usr/bin/mono() [0x8066649]
[0xb76e7bc8]
/usr/lib/libgif.so.7(DGifGetExtension+0x5c) [0xb58659ec]
/usr/lib/libgdiplus.so.0(+0x44f7a) [0xb5b8bf7a]
/usr/lib/libgdiplus.so.0(+0x465f2) [0xb5b8d5f2]
/usr/lib/libgdiplus.so.0(GdipLoadImageFromDelegate_linux+0x1b4) [0xb5b73d74]
[0xb45be2f8]
[0xb45bdb44]
[0xb45448d4]
[0xb4544898]
[0xb4544858]
[0xb450d47c]
[0xb3ec1e0c]
[0xb3ebbe1c]
[0xb455a7fc]
[0xb4557823]
[0xb45572ed]
[0xb4557220]
[0xb520f500]
[0xb51f6b50]
[0xb51f5e8c]
[0xb4553acc]
[0xb4553a90]
[0xb45538e8]
[0xb51f5bd3]
[0xb51f5bac]
[0xb51f4efd]
[0xb51f350c]
[0xb51f682f]
[0xb52105ec]
[0xb520fa03]
[0xb520f984]
[0xb520f703]
[0xb4551a48]
[0xb520f45c]
[0xb51fe0ec]
[0xb4551620]
[0xb51fe03a]
[0xb51fdfdc]
[0xb45505cc]
[0xb4550370]
[0xb4550010]
[0xb65f0494]
[0xb65f05df]
/usr/bin/mono() [0x8066071]
Debug info from gdb:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Предупреждение: Сбой программы «/usr/bin/mono».
Версия CentOS:
$ uname -a
Linux AntechPC 2.6.32-573.3.1.el6.x86_64 #1 SMP Thu Aug 13 22:55:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Версия mono:
$mono -V
Mono JIT compiler version 2.10.8 (tarball Tue Jul 8 22:08:53 UTC 2014)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: debugger softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
Call-stack после появления ошибки:
$ ./smathstudio_desktop_mono
- [AppDir] HTML Export (1.13.5737.24525)
- [AppDir] Export to image (1.9.5737.24526)
- [AppDir] Picture Region (1.10.5737.24525)
- [AppDir] Plot Region (1.9.5737.24527)
- [AppDir] SMath Studio Files Plugin (1.9.5737.24527)
- [AppDir] Special Functions (1.11.5737.24524)
- [AppDir] Text Region (1.10.5737.24526)
- [AppDir] SMath Viewer Files Plugin (1.1.5737.24528)
- [AppDir] XMCD Files Plugin (1.12.5737.24526)
System.ObjectDisposedException: The object was used after being disposed.
at System.IO.MemoryStream.CheckIfClosedThrowDisposed () [0x00000] in <filename unknown>:0
at System.IO.MemoryStream.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor (System.IO.Stream)
at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0
at SMathFileType.SMathFileType. (System.IO.Stream , System.Collections.Generic.List`1 , SMath.Control.FileContext ) [0x00000] in <filename unknown>:0
at SMath.Control.DataFiles.OpenFileTypeInternal (System.IO.Stream stream, SMath.Control.Worksheet worksheet, SMath.Control.FileContext context) [0x00000] in <filename unknown>:0
at SMath.Control.DataFiles.OpenFileType (System.IO.Stream stream, SMath.Control.Worksheet worksheet, SMath.Control.FileContext context) [0x00000] in <filename unknown>:0
at SMath.Control.ClipboardManager.GetRegions (SMath.Control.Worksheet worksheet, Int32 topCorrection) [0x00000] in <filename unknown>:0
at SMath.Control.Worksheet.InsertManager (System.String value) [0x00000] in <filename unknown>:0
at SMath.Control.Worksheet.Insert (System.String value) [0x00000] in <filename unknown>:0
at SMath.Control.WorksheetControl.OnKeyDown (System.Windows.Forms.KeyEventArgs e) [0x00000] in <filename unknown>:0
at SMath.Control.Worksheet.OnKeyDown (System.Windows.Forms.KeyEventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
WroteИнструкция по установке linux-версии. Пример для kubuntu 10.10. По аналогии можно все сделать и в других дистрибутивах.
Кратко для профи:
1. установка пакета
для debian/ubuntu/mint и прочих производных *.deb дистрибутовов libmono-winforms2.0-cil
для openSUSE mono-winforms, libgdiplus0
для Fedora/RFRemix mono-winforms
для Arch linux/Chakra mono, libgdiplus
2. установка в систему шрифта micross.ttf
3. скачивание и распаковка архива с прогой
4. запуск *.exe файла с помощью mono
Теперь все подробно для Ubuntu.
Для начала запускаем терминал и выполняем команду sudo -s (это сделает нас суперпользователем, но остаемся в домашнем каталоге обычного пользователя)Цитатаzhuk@kubuntu:~$ sudo -s
root@kubuntu:~#
1. установка пакета libmono-winforms2.0-cil
для этого нужно в консоли выполнить командуЦитатаroot@kubuntu:~# apt-get install libmono-winforms2.0-cil
далее следует согласиться скачать и установить кучу других пакетов, вытягиваемых зависимостями![]()
2. установка шрифта micross.ttf (он нужен для корректного отображения кириллицы в интерфейсе)
нам понадобится файл с самим шрифтом micross.ttf. Его можно стырить из винды (валяется в WINDOWS/Fonts).
скопируйте его в домашний каталог вашего пользователя (у меня это /home/zhuk)
далее создаем каталог для установки шрифта в системуЦитатаroot@kubuntu:~# mkdir /usr/share/fonts/truetype/wfonts
и переносим сам шрифт в негоЦитатаroot@kubuntu:~# mv micross.ttf /usr/share/fonts/truetype/wfonts
после этого возвращаемся к обычному пользователю, введя команду exitЦитатаroot@kubuntu:~# exit
exit
zhuk@kubuntu:~$
3. скачайте и сохраните в домашней папке архив с программой. Далее создаете папку SmathStudio в домашнем каталоге вашего пользователя (у меня это будет /home/zhuk/SmathStudio). В него нужно распаковать архив с программой. Можете воспользоваться любым архиватором, либо же выполнить командуЦитатаzhuk@kubuntu:~$ cd SmathStudio && tar -xf ~/SMathStudioDesktop.0_91.Mono.tar.gz
zhuk@kubuntu:~/SmathStudio$
вместо SMathStudioDesktop.0_91.Mono.tar.gz следует подставить имя вашего архива. Путь до *.exe файла должен быть /home/имя_пользователя/SmathStudio/SMathStudio_Desktop.exe
Теперь для запуска программы достаточно находясь в папке с программой выполнить командуЦитатаzhuk@kubuntu:~/SmathStudio$ mono *.exe
Не забываем, что *.exe файл нужно запускать не с помощью wine, а mono!![]()
хгык!
upd 25.01.2014 окончательно, бесповоротно и официально дропаю поддержку этого поделия (неофициально колбаску положил еще год назад). кто хочет и кому надо, заходите пжл периодически в эту тему и помогайте ламерам. если надо будет исправить инструкцию, то пишите в личку, либо пинайте модера.
This installation guide for SMath Studio on Linux is a great example of a detailed community contribution. Even though the instructions are from an older period, the idea behind them is still valuable: users sharing practical solutions and helping others run software outside its original environment.
Linux users often appreciate this kind of step-by-step explanation because small details like dependencies, fonts, and the correct runtime can make the difference between a smooth setup and hours of troubleshooting. It is always better to understand what you are installing instead of blindly copying commands.
The same approach works for many online experiences too — checking reliability and details first, whether you are setting up software or exploring platforms like https://tony-spins.ca/. Good instructions and responsible choices usually save a lot of time in the long run.
- Новые сообщения
- Нет новых сообщений