Hello everyone,
Sorry to have to ask so many questions on this forum. I need to install mono and libgdiplus in order to get Keepass to work.
I couldn't find mono or libgdiplus through slapt-get so I installed sbopkg using these instructions:
http://docs.salixos.org/wiki/How_to_use ... with_Salix
I'm familiar with sbopkg and when I was on slackware libgdiplus and mono both installed fine through sbopkg; but now I can't get them to install.
Am I missing something?
Here is the error when I try to run keepass
/usr/bin/keepass: line 2: /usr/bin/mono: No such file or directory
Also, find and locate for mono and libgdiplus don't show the inside any /usr/lib type of directory:
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus/slack-desc
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus/README
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus/libgdiplus.info
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus/libgdiplus.SlackBuild
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus/libgdiplus-2.10.9.tar.bz2
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus.tar.gz
/var/lib/sbopkg/SBo/14.1/libraries/libgdiplus.tar.gz.asc
/var/lib/sbopkg/queues/libgdiplus.sqf
/var/cache/sbopkg/libgdiplus-2.10.9.tar.bz2
Thanks for any help!
mono & libgdi plus
Re: mono & libgdi plus
Try this instead
This will install mono, libgdiplus and keepassx or use Sourcery and search for keepass
There is two versions keepassx and KeePass
EDIT
After installing KeePass it wont start, i get this error:
Code: Select all
sudo spi -i KeePass
There is two versions keepassx and KeePass
EDIT
After installing KeePass it wont start, i get this error:
Code: Select all
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 <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0
at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[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 <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0
at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

Re: mono & libgdi plus
@ibka,
Thank you - I will try that.
I removed KeePass through "sudo slapt-get --remove KeePass"
and I have just ran "sudo spi -i KeePass".
Will let you know the results - it is building mono right now.
Thank you - I will try that.
I removed KeePass through "sudo slapt-get --remove KeePass"
and I have just ran "sudo spi -i KeePass".
Will let you know the results - it is building mono right now.
Re: mono & libgdi plus
Assuming that your running this on a 64 bit system, then the solution to this can be found in Post 21 of this linkibka wrote:After installing KeePass it wont start, i get this error:Code: Select all
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 <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 [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 <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
http://www.linuxquestions.org/questions ... page2.html
Just edit your /etc/mono/config file and remove the preceding /use/lib/ in the following two lines of the file:
Code: Select all
dllmap dll="gdiplus" target="/usr/lib/libgdiplus.so" />
dllmap dll="gdiplus.dll" target="/usr/lib/libgdiplus.so" />
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
― George Orwell, 1984
Re: mono & libgdi plus
That fixed the problem.laprjns wrote:Assuming that your running this on a 64 bit system, then the solution to this can be found in Post 21 of this linkibka wrote:After installing KeePass it wont start, i get this error:Code: Select all
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 <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 [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 <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
http://www.linuxquestions.org/questions ... page2.html
Just edit your /etc/mono/config file and remove the preceding /use/lib/ in the following two lines of the file:Code: Select all
dllmap dll="gdiplus" target="/usr/lib/libgdiplus.so" /> dllmap dll="gdiplus.dll" target="/usr/lib/libgdiplus.so" />
But i wont use KeePass, it don't look good
I have used keepassx for many years.

Re: mono & libgdi plus
Thanks guys - using spi did the trick (I wonder why sbopkg didn't work?)
I also had to use the solution posted in the linuxquestions.org linked above.
I also had to use the solution posted in the linuxquestions.org linked above.