viv567 |
|
Темы:
1
Сообщения:
2
Участник с: 29 февраля 2012
|
Понадобилось запустить простенькую прогу (C#, WinForms) на арче: http://rghost.ru/36779601 Поставил ArchBang 2011.11 x86_64. Обновился. Поставил gnome-sharp с моной и libgdiplus (для winform'а). Результат печален: [root@archbang viv]# pacman -Syu :: Synchronizing package databases... core 105.1K 45.2K/s 00:00:02 [----------------------] 100% extra 1390.5K 272.8K/s 00:00:05 [----------------------] 100% community 1527.8K 325.5K/s 00:00:05 [----------------------] 100% :: The following packages should be upgraded first : pacman :: Do you want to cancel the current operation :: and upgrade these packages now? [Y/n] y resolving dependencies... looking for inter-conflicts... Targets (11): linux-api-headers-3.1.6-1 [0.57 MB] glibc-2.15-6 [7.50 MB] libarchive-3.0.3-5 [0.50 MB] pth-2.0.7-4 [0.07 MB] libksba-1.2.0-2 [0.11 MB] libassuan-2.0.3-1 [0.07 MB] pinentry-0.8.1-3 [0.09 MB] dirmngr-1.1.0-3 [0.16 MB] gnupg2-2.0.18-1 [1.39 MB] gpgme-1.3.1-2 [0.20 MB] pacman-4.0.2-1 [1.01 MB] Total Download Size: 11.67 MB Total Installed Size: 56.54 MB Proceed with installation? [Y/n] y :: Retrieving packages from core... linux-api-headers-... 579.3K 149.1K/s 00:00:04 [----------------------] 4% glibc-2.15-6-x86_64 8.1M 330.1K/s 00:00:25 [----------------------] 69% libarchive-3.0.3-5... 8.6M 254.5K/s 00:00:34 [----------------------] 73% pth-2.0.7-4-x86_64 8.6M 213.4K/s 00:00:41 [----------------------] 74% libksba-1.2.0-2-x86_64 8.7M 183.3K/s 00:00:49 [----------------------] 74% libassuan-2.0.3-1-... 8.8M 161.7K/s 00:00:56 [----------------------] 75% pinentry-0.8.1-3-x... 8.9M 144.2K/s 00:01:03 [----------------------] 76% dirmngr-1.1.0-3-x86_64 9.1M 130.6K/s 00:01:11 [----------------------] 77% gnupg2-2.0.18-1-x86_64 10.5M 128.7K/s 00:01:23 [----------------------] 89% gpgme-1.3.1-2-x86_64 10.7M 119.5K/s 00:01:31 [----------------------] 91% pacman-4.0.2-1-x86_64 11.7M 113.4K/s 00:01:45 [----------------------] 100% (11/11) checking package integrity [----------------------] 100% (11/11) checking for file conflicts [----------------------] 100% ( 1/11) upgrading linux-api-headers [----------------------] 100% ( 2/11) upgrading glibc [----------------------] 100% warning: /etc/locale.gen installed as /etc/locale.gen.pacnew Generating locales... en_US.UTF-8... done Generation complete. ( 3/11) upgrading libarchive [----------------------] 100% ( 4/11) installing pth [----------------------] 100% ( 5/11) installing libksba [----------------------] 100% ( 6/11) installing libassuan [----------------------] 100% ( 7/11) installing pinentry [----------------------] 100% Optional dependencies for pinentry gtk2: for gtk2 backend qt: for qt4 backend ( 8/11) installing dirmngr [----------------------] 100% ( 9/11) installing gnupg2 [----------------------] 100% (10/11) installing gpgme [----------------------] 100% (11/11) upgrading pacman [----------------------] 100% warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew >>> Run `pacman-key --init` to set up your pacman keyring. [root@archbang viv]# mv /etc/locale.gen.pacnew /etc/locale.gen [root@archbang viv]# mv /etc/pacman.conf.pacnew /etc/pacman.conf [root@archbang viv]# pacman-key --init gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: Generating pacman keychain master key... Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy! (Need 284 more bytes) +++++ .+++++ gpg: key 48DD9893 marked as ultimately trusted gpg: Done ==> Updating trust database... gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u [root@archbang viv]# pacman -S gnome-sharp pacman: /usr/lib/libcurl.so.4: no version information available (required by /usr/lib/libalpm.so.7) resolving dependencies... looking for inter-conflicts... Targets (22): art-sharp-2.24.2-2 gconf-sharp-2.24.2-2 gconf-sharp-peditors-2.24.2-2 gnome-mime-data-2.18.0-6 gnome-vfs-2.24.4-6 gnome-vfs-sharp-2.24.2-2 gtk-sharp-2-2.12.11-1 gvfs-1.10.1-3 libart-lgpl-2.3.21-2 libbonobo-2.32.1-2 libbonoboui-2.24.5-2 libcanberra-0.28-2 libgdiplus-2.10-2 libgnome-2.32.1-3 libgnome-data-2.32.1-3 libgnome-sharp-2.24.2-2 libgnomecanvas-2.30.3-2 libgnomeui-2.24.5-1 libidl2-0.8.14-2 mono-2.10.8-1 orbit2-2.14.19-2 gnome-sharp-2.24.2-2 Total Download Size: 39.60 MiB Total Installed Size: 186.12 MiB Proceed with installation? [Y/n] y :: Retrieving packages from extra... libgdiplus-2.10-2-x... 189.1 KiB 69.7K/s 00:03 [######################] 100% mono-2.10.8-1-x86_64 31.0 MiB 398K/s 01:20 [######################] 100% gtk-sharp-2-2.12.11... 2.9 MiB 261K/s 00:11 [######################] 100% libart-lgpl-2.3.21-... 68.1 KiB 43.7K/s 00:02 [######################] 100% art-sharp-2.24.2-2-... 16.6 KiB 43.2K/s 00:00 [######################] 100% gconf-sharp-2.24.2-... 10.8 KiB 9.23K/s 00:01 [######################] 100% gnome-mime-data-2.1... 327.7 KiB 105K/s 00:03 [######################] 100% gnome-vfs-2.24.4-6-... 733.8 KiB 172K/s 00:04 [######################] 100% gnome-vfs-sharp-2.2... 48.4 KiB 41.9K/s 00:01 [######################] 100% libgnomecanvas-2.30... 213.7 KiB 79.3K/s 00:03 [######################] 100% libgnome-data-2.32.... 888.5 KiB 187K/s 00:05 [######################] 100% libidl2-0.8.14-2-x86_64 108.4 KiB 54.6K/s 00:02 [######################] 100% orbit2-2.14.19-2-x86_64 254.0 KiB 91.9K/s 00:03 [######################] 100% libbonobo-2.32.1-2-... 735.8 KiB 171K/s 00:04 [######################] 100% gvfs-1.10.1-3-x86_64 864.4 KiB 172K/s 00:05 [######################] 100% libcanberra-0.28-2-... 72.4 KiB 46.3K/s 00:02 [######################] 100% libgnome-2.32.1-3-x... 51.2 KiB 43.9K/s 00:01 [######################] 100% libbonoboui-2.24.5-... 411.4 KiB 117K/s 00:04 [######################] 100% libgnomeui-2.24.5-1... 760.0 KiB 177K/s 00:04 [######################] 100% libgnome-sharp-2.24... 88.5 KiB 55.6K/s 00:02 [######################] 100% gconf-sharp-peditor... 6.7 KiB 20.8M/s 00:00 [######################] 100% gnome-sharp-2.24.2-... 516.0 B 14.5M/s 00:00 [######################] 100% (22/22) checking package integrity [######################] 100% (22/22) loading package files [######################] 100% (22/22) checking for file conflicts [######################] 100% (22/22) checking available disk space [######################] 100% ( 1/22) installing libgdiplus [######################] 100% ( 2/22) installing mono [######################] 100% ( 3/22) installing gtk-sharp-2 [######################] 100% ( 4/22) installing libart-lgpl [######################] 100% ( 5/22) installing art-sharp [######################] 100% ( 6/22) installing gconf-sharp [######################] 100% ( 7/22) installing gnome-mime-data [######################] 100% ( 8/22) installing gnome-vfs [######################] 100% ( 9/22) installing gnome-vfs-sharp [######################] 100% (10/22) installing libgnomecanvas [######################] 100% (11/22) installing libgnome-data [######################] 100% (12/22) installing libidl2 [######################] 100% (13/22) installing orbit2 [######################] 100% (14/22) installing libbonobo [######################] 100% (15/22) installing gvfs [######################] 100% Optional dependencies for gvfs gvfs-afc: AFC (mobile devices) support gvfs-smb: SMB/CIFS (Windows client) support gvfs-gphoto2: gphoto2 (PTP camera/MTP media player) support gvfs-obexftp: ObexFTP (bluetooth) support gvfs-afp: Apple Filing Protocol (AFP) support (16/22) installing libcanberra [######################] 100% Optional dependencies for libcanberra libcanberra-pulse: PulseAudio driver libcanberra-gstreamer: GStreamer driver (17/22) installing libgnome [######################] 100% (18/22) installing libbonoboui [######################] 100% (19/22) installing libgnomeui [######################] 100% (20/22) installing libgnome-sharp [######################] 100% (21/22) installing gconf-sharp-peditors [######################] 100% (22/22) installing gnome-sharp [######################] 100% [root@archbang viv]# exit exit [viv@archbang ~]$ ls SharpGears.exe [viv@archbang ~]$ mono SharpGears.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeWin32Classic ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.KnownColors ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor () at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 at SharpGears.SharpGears..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) SharpGears.SharpGears:.ctor () at SharpGears.SharpGears.Main () [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeWin32Classic ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.KnownColors ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor () at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 at SharpGears.SharpGears..ctor () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) SharpGears.SharpGears:.ctor () at SharpGears.SharpGears.Main () [0x00000] in <filename unknown>:0 Поскажите, что нужно сделать, чтоб запустить вышеуказанную winform'овскую прогу. Хотелось бы запустить ее в арчбанке, чтоб особо не мучаться. |
cucullus |
|
![]()
Темы:
269
Сообщения:
3574
Участник с: 06 июня 2007
|
System.DllNotFoundException: gdiplus.dll
такие дела.
|
viv567 |
|
Темы:
1
Сообщения:
2
Участник с: 29 февраля 2012
|
cucullus viv567За gdiplus в Mono отвечает libgdiplus. Это библиотека, используемая WinForm-приложениями. Она установлена и в этом можно убедиться, посмотрев первый пост. |
masum5 |
|
Темы:
0
Сообщения:
1
Участник с: 09 апреля 2012
|
На сайте моно лежит документация по установке gdiplus. Суть в следущем. Ставим mono, ставим gdiplus. Ищем по диску файл libgdiplus.so, например /usr/local/lib/libgdiplus.so. Смотрим, есть ли этот каталог в /etc/ld.so.conf, если нет добавляем найденный каталог /usr/local/lib. Запускаем ldconfig, проверяем. У меня после этого заработало. |