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

05:05:26OMUL ȘI CARTEA —» Leo Butnaru
17:53:00Prograin Organic: agricultura ecologică din Republica Moldova cucerește piețele externe 👍 —» Sandu GRECU
07:33:59Wine run: Colinele Mircești 2026 —» Fine Wine
05:56:04DIN ȘAHUL LUMII, ȘAHUL VIEȚII —» Leo Butnaru
20:03:00Servicii sociale mai bune la Strășeni: Centrul de zi pentru persoane vârstnice „Răsărit” devine mai eficient energetic și mai accesibil ☀️ —» Sandu GRECU
13:25:00Cariera care te conectează cu lumea: Interviu cu Mihai Sava, Președintele AMALT, despre oportunitățile profesiei de Dispatcher 👍 —» Sandu GRECU
12:37:00Cu sprijinul Uniunii Europene, Serviciul social „Locuința Protejată” din Glodeni devine un model de eficiență energetică și incluziune socială 👍 —» Sandu GRECU
10:40:53Spumantul: zâmbetul comercial al sectorului de vinuri —» Fine Wine
09:47:03James Suckling evaluează, în premieră, vinurile Purcari —» Fine Wine
05:25:21DIN ȘAHUL VIEȚII —» Leo Butnaru
09:26:33Între simbol și ironie – Violeta Zabulica-Diordiev —» Biblioteca de Arte 'Tudor Arghezi'
08:58:24Cătălin Păduraru: „Acum este pasul obligatoriu de ieșire la atac” —» Fine Wine
05:24:54DE LA PORȚILE ROMEI, DIN ROMA —» Leo Butnaru
05:53:47DIN POEZIA LUMII / FRANCEZĂ —» Leo Butnaru
15:46:39Moldovenii vor un stil de viață sănătos. Transportul alternativ poate fi soluția. —» Curaj.TV | Media alternativă
07:51:24DIN REVISTA TINERILOR —» Leo Butnaru
10:35:36DIN FĂCLIA —» Leo Butnaru
08:15:00Gloria K-1, viitor frumos și bani mulți. Bolea: aducem Europa la Chișinău. 100 de mii de dolari în avion 💲💥🥊 —» Sandu GRECU
07:43:00Pictorița Eleonora Romanescu —» Biblioteca de Arte 'Tudor Arghezi'
14:15:58DIN REVISTA TINERILOR —» Leo Butnaru
11:35:22Gala premiilor ”Ex Libris” – la bibliotecă —» BPR Ungheni's Blog
10:41:00Istoria unui proiect de hotărâre de Guvern prost intenționat 💧 —» Sandu GRECU
18:12:00din cosmograme —» Leo Butnaru
05:56:00DIN POEZIA LUMII —» Leo Butnaru
11:11:00DE BLAJINI —» Leo Butnaru