How to install pwmanager in Debian sid


As you may know, there is a great utility for storing passwords in encrypted form called pwmanager. The project seems discontinued now.

So, how to install it on Debian/Ubuntu?

Firstly be sure to install kdelibs-dev:

$ apt-get install kdelibs-dev

then grab the latest source archive from  http://sourceforge.net/projects/passwordmanager/files/ (at the moment of writing it is pwmanager-1.2.4.tar.bz2)

Decompress it:

$ tar xvjf pwmanager-1.2.4.tar.bz2

Go into the newly created directory:

$ cd pwmanager-1.2.4

And run:

$ ./configure $ make $ make intall

Should work, but did not work for me. I got this kind of errors at compilation time:

base64.cpp: In constructor ‘Base64::Base64()’: base64.cpp:59: error: ‘exit’ was not declared in this scope binentrygen.cpp: In member function ‘void BinEntryGen::decode(const PwMDataItem&, QByteArray*, BinEntryGen::DataType*)’: binentrygen.cpp:36: error: ‘strtol’ was not declared in this scope compressbzip2.cpp: In member function ‘bool CompressBzip2::compress(std::string*)’: compressbzip2.cpp:36: error: ‘memcpy’ was not declared in this scope main.cpp: In member function ‘virtual int PwMApplication::newInstance()’: main.cpp:34: error: ‘EXIT_SUCCESS’ was not declared in this scope serializer.cpp: In member function ‘bool Serializer::extractEntry(const QDomNode&, PwMDataItem*)’: serializer.cpp:303: error: ‘strtol’ was not declared in this scope

To solve them, copy the next content into a file, say, /tmp/pwmanager.patch:

Only in pwmanager-1.2.4-patched/pwmanager: addentrywnd.cpp Only in pwmanager-1.2.4-patched/pwmanager: advcommedit.cpp diff -crB pwmanager-1.2.4/pwmanager/base64.cpp pwmanager-1.2.4-patched/pwmanager/base64.cpp *** pwmanager-1.2.4/pwmanager/base64.cpp 2005-11-06 03:16:51.000000000 +0200 --- pwmanager-1.2.4-patched/pwmanager/base64.cpp 2010-01-31 15:36:39.000000000 +0200 *************** *** 43,48 **** --- 43,49 ---- #include "base64.h" #include "pwmexception.h" + #include static const char prtcode[] = diff -crB pwmanager-1.2.4/pwmanager/binentrygen.cpp pwmanager-1.2.4-patched/pwmanager/binentrygen.cpp *** pwmanager-1.2.4/pwmanager/binentrygen.cpp 2005-11-06 03:16:51.000000000 +0200 --- pwmanager-1.2.4-patched/pwmanager/binentrygen.cpp 2010-01-31 15:36:39.000000000 +0200 *************** *** 12,17 **** --- 12,19 ---- #include "binentrygen.h" #include "base64.h" #include "pwmexception.h" + #include + #include void BinEntryGen::encode(const QByteArray &data, diff -crB pwmanager-1.2.4/pwmanager/compressbzip2.cpp pwmanager-1.2.4-patched/pwmanager/compressbzip2.cpp *** pwmanager-1.2.4/pwmanager/compressbzip2.cpp 2005-11-06 03:16:50.000000000 +0200 --- pwmanager-1.2.4-patched/pwmanager/compressbzip2.cpp 2010-01-31 15:36:39.000000000 +0200 *************** *** 10,16 **** ***************************************************************************/ #include "compressbzip2.h" ! #include #define BZ_NO_STDIO --- 10,16 ---- ***************************************************************************/ #include "compressbzip2.h" ! #include #include #define BZ_NO_STDIO Only in pwmanager-1.2.4-patched/pwmanager: configwnd.cpp Only in pwmanager-1.2.4-patched/pwmanager: findwnd.cpp diff -crB pwmanager-1.2.4/pwmanager/main.cpp pwmanager-1.2.4-patched/pwmanager/main.cpp *** pwmanager-1.2.4/pwmanager/main.cpp 2005-11-06 03:16:51.000000000 +0200 --- pwmanager-1.2.4-patched/pwmanager/main.cpp 2010-01-31 15:36:39.000000000 +0200 *************** *** 13,18 **** --- 13,20 ---- #include #include #include + #include + #include #include "pwmexception.h" #include "pwminit.h" Only in pwmanager-1.2.4-patched/pwmanager: pwgenwnd.cpp diff -crB pwmanager-1.2.4/pwmanager/serializer.cpp pwmanager-1.2.4-patched/pwmanager/serializer.cpp *** pwmanager-1.2.4/pwmanager/serializer.cpp 2005-11-06 03:16:50.000000000 +0200 --- pwmanager-1.2.4-patched/pwmanager/serializer.cpp 2010-01-31 15:36:39.000000000 +0200 *************** *** 12,17 **** --- 12,19 ---- #include "serializer.h" #include "configuration.h" #include "pwmexception.h" + #include + #include /* enable/disable serializer debugging (0/1) */ Only in pwmanager-1.2.4-patched/pwmanager: subtbledit.cpp

Then from pwmanager directory execute:

$ patch -p1 -i /tmp/pwmanager.patch

Now repeat the steps with ./configure, make, make install.

That’s all.


Sursa
2010-01-31 16:18:43



Comenteaza





Ultimele 25 posturi adăugate

13:22:13Cu hijab-ul la defilare —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
18:56:52Păcălit de avocați și de magistrați (ru) —» Curaj.TV | Media alternativă
04:42:42METAMORFOZE ȘI (NE)LINIȘTI —» Leo Butnaru
19:07:21Primarul de Burlacu e din nou agresiv —» Curaj.TV | Media alternativă
17:01:45„Fii AgriCOOLtor!”: De la pasiunea pentru gătit la o carieră de viitor în gastronomie 💫 —» Sandu GRECU
05:36:29BACOVIA LICEAN... —» Leo Butnaru
14:27:38Moldoveanul care l-a bătut pe Figo. Secu-unicul: 29 de meciuri căpitan al URSS la fotbal. L-a vrut Bayern Munchen 💥🔥🚀 —» Sandu GRECU
12:47:29SCRIITORI - VICTIME ALE GULAGULUI —» Leo Butnaru
04:44:42DESPRE ȘAH ȘI NU NUMAI —» Leo Butnaru
18:49:09Handbalul a unit Moldova, România și Ucraina la Sîngerei: gazdele au câștigat Memorialul „Simion Prașcă” 🤾‍♂️ —» Sandu GRECU
08:54:32O întâlnire cu Teodor Buzu —» Biblioteca de Arte 'Tudor Arghezi'
20:01:51Un simplu Mulțumim, GEOTERMAL 🙏 —» Sandu GRECU
14:35:22„Cornova ungheneană” – la Biblioteca „Dimitrie Cantemir” —» BPR Ungheni's Blog
05:37:05RELAȚIA TA CU ALTER EGO —» Leo Butnaru
05:36:33RECITIND, REGÂNDIND ECLEZIASTUL —» Leo Butnaru
13:24:12Pocăința lui Ion Șoltoianu. O viață ca un scenariu de film. Despre pușcărie, politică și sport. Atenție, Rizea! 💥🔥🔝 —» Sandu GRECU
10:46:57Moldova, pe turnul emblematic al Vienei —» Fine Wine
10:24:00Modelul de succes al companiei „Garma Grup” inspiră viitoarea generație de AgriCOOLtori ☘️ —» Sandu GRECU
17:03:37PLUS LA PRECEDENTELE 11 —» Leo Butnaru
12:54:55PRINTRE LAUREAȚI —» Leo Butnaru
07:22:51Grand Gold pentru The Governor Saperavi Forte —» Fine Wine
13:52:30Carolina Bogatiuc: „Republica Moldova lucrează deja cu UE pe toate grupurile de capitole de negociere” ✨ —» Sandu GRECU
11:43:14Ambasada Chinei nu are loc de Falun Dafa?! —» Curaj.TV | Media alternativă
10:35:26Equinox lansează două vinuri noi —» Fine Wine
15:33:45Cine a trăit aici înainte de daci? Ce dezvăluie ADN-ul —» Curaj.TV | Media alternativă