LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   KeePass (http://www.linuxquestions.org/questions/slackware-14/keepass-4175489593/)

moisespedro 12-30-2013 10:25 AM

KeePass
 
Hi, I am finally setting up Slackware as my main desktop but there is one thing I can't get it working: keepass. This is what I get when trying to run it:
keepass output:
Code:

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

I am using Slackware 14.1 x86_64

dwblas 12-30-2013 11:27 AM

Just use the slackbuild at slackbuilds.org or sbopkg. It installs fine.

cwizardone 12-30-2013 11:40 AM

Quote:

Originally Posted by dwblas (Post 5089114)
Just use the slackbuild at slackbuilds.org or sbopkg. It installs fine.

+1.

dugan 12-30-2013 03:07 PM

The SlackBuild is for KeepassX, not Keepass. KeepassX works great (I used it for a year or three), but it's not file-format-compatible with the current versions of Keepass. Make sure that isn't a problem.

moisespedro 12-30-2013 03:10 PM

Quote:

Originally Posted by dugan (Post 5089227)
The SlackBuild is for KeepassX, not Keepass. KeepassX works great (I used it for a year or three), but it's not file-format-compatible with the current versions of Keepass. Make sure that isn't a problem.

Well, that is sort of a problem. And there is a Keepass slackbuild http://slackbuilds.org/repository/14.1/misc/KeePass/

55020 12-30-2013 03:38 PM

Quote:

Originally Posted by moisespedro (Post 5089081)
System.DllNotFoundException: /usr/lib/libgdiplus.so

There's your problem. libgdiplus not installed (dependency of mono).

moisespedro 12-30-2013 05:02 PM

Quote:

Originally Posted by 55020 (Post 5089244)
There's your problem. libgdiplus not installed (dependency of mono).

But I've installed it

55020 12-30-2013 05:12 PM

Quote:

Originally Posted by moisespedro (Post 5089276)
But I've installed it

You think that you've installed it, but mono doesn't think you've installed it. Please reflect for a moment: who is more likely to have made a mistake, you or mono? Perhaps you'd better check again...

moisespedro 12-30-2013 06:10 PM

Quote:

Originally Posted by 55020 (Post 5089282)
You think that you've installed it, but mono doesn't think you've installed it. Please reflect for a moment: who is more likely to have made a mistake, you or mono? Perhaps you'd better check again...

I don't make mistakes, sir.

Alien Bob 12-30-2013 06:25 PM

Quote:

Originally Posted by moisespedro (Post 5089308)
I don't make mistakes, sir.

OK, let's assume you are right.

Please return the output of the following commands:

Code:

uname -a
cat /etc/slackware-version
ls -l /var/log/packages/glibc-*
ls -l /var/log/packages/libgdiplus-*

Eric

moisespedro 12-30-2013 08:03 PM

Code:

Linux slack 3.10.17 #1 SMP Wed Oct 23 16:28:33 CDT 2013 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux
Code:

Slackware 14.1
Code:

-rw-r--r-- 1 root root 571847 Dez 30 15:00 /var/log/packages/glibc-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root 473870 Dez 30 15:00 /var/log/packages/glibc-i18n-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  1303 Dez 30 15:00 /var/log/packages/glibc-profile-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  15532 Dez 30 15:00 /var/log/packages/glibc-solibs-2.17_multilib-x86_64-7alien
-rw-r--r-- 1 root root  70234 Dez 30 15:00 /var/log/packages/glibc-zoneinfo-2013d_multilib-noarch-7alien

Code:

-rw-r--r-- 1 root root 1050 Dez 30 05:04 /var/log/packages/libgdiplus-2.10.9-x86_64-2_SBo
EDIT: And I was being ironic, I am kind of a super noob

Alien Bob 12-31-2013 04:39 AM

So you are on a multilib 64-bit Slackware 14.1 as I expected. You do have the 64-bit libgdiplus installed, but "/usr/lib/libgdiplus.so" is a 32-bit library. It will be found in the 32-bit package of libgdiplus.
For your multilib system you will have to compile a 32-bit package and use the "convertpkg-compat32" script to create a "compat32" version of that 32-bit package and install that on your multilib system.
Code:

source /etc/profile.d/32dev.sh
ARCH=i486 libgdiplus.SLackBuild
convertpkg-compat32 -i /tmp/libgdiplus-2.10.9-i486-2_SBo.tgz
upgradepkg --install-new /tmp/libgdiplus-compat32-2.10.9-x86_64-2_SBo.txz

Note: The word "source" in the first command line is an equivalent for using the dot '.' in other examples). And set ARCH to i486, not x86_64, as I show in the second line. I need to update my multilib documentation which still recommends "ARCH=x86_64" which used to be necessary in older Slackware releases.

Eric

moisespedro 12-31-2013 10:04 AM

Thanks for the explanation but it still didn't work
Code:

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


Alien Bob 12-31-2013 10:31 AM

So, is that linrary actually there or not? Can you show us what these commands return?
Code:

ls -l /usr/lib/libgdiplus*
ls -l /var/log/packages/libgdiplus-*

And if the first command returns nothing, what is the output of:
Code:

cat /var/log/packages/libgdiplus*
Eric

moisespedro 12-31-2013 10:50 AM

Code:

-rwxr-xr-x 1 root root  1688 Dez 31 14:01 /usr/lib/libgdiplus.la
lrwxrwxrwx 1 root root    19 Dez 31 14:02 /usr/lib/libgdiplus.so -> libgdiplus.so.0.0.0
lrwxrwxrwx 1 root root    19 Dez 31 14:02 /usr/lib/libgdiplus.so.0 -> libgdiplus.so.0.0.0
-rwxr-xr-x 1 root root 429728 Dez 31 14:01 /usr/lib/libgdiplus.so.0.0.0

Code:

-rw-r--r-- 1 root root 1050 Dez 30 05:04 /var/log/packages/libgdiplus-2.10.9-x86_64-2_SBo
-rw-r--r-- 1 root root  983 Dez 31 14:02 /var/log/packages/libgdiplus-compat32-2.10.9-x86_64-2_SBocompat32



All times are GMT -5. The time now is 11:36 AM.