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

04:48:09RACURSIU —» Leo Butnaru
04:11:37ÎNTRE PROZĂ ȘI YES-EU —» Leo Butnaru
07:14:33Biodiversitatea din Purcari: studiu de caz în China —» Fine Wine
04:59:54INTERSECȚII —» Leo Butnaru
09:18:14PORTRET DE MONAH —» Leo Butnaru
17:38:13Luna Plina 29 iulie 2026 —» codul omega
10:09:57ÎNTRE PROZĂ ȘI YES-EU —» Leo Butnaru
14:23:21Festivslul Internațional de Teatru de la Avignon —» Biblioteca de Arte 'Tudor Arghezi'
14:23:21Festivalul Internațional de Teatru de la Avignon —» Biblioteca de Arte 'Tudor Arghezi'
10:10:57Trei morți pe șantier, muncă continuă!? (ru) —» Curaj.TV | Media alternativă
19:37:54💥 EXCLUSIV: Moldoveanul David Ostafi a semnat în La Liga! Puștiul de 16 ani impresionează în fotbalul spaniol —» Sandu GRECU
16:28:52Prima ediție a Turneului Memorial „Vasile Railean” —» Sandu GRECU
09:04:42Ialoveni Armonios 1994, revelația mondială la 10 euro pe raft —» Fine Wine
11:46:06Sistemul care vrea să răstoarne PAS-ul. Chirtoacă despre mafie, hoție, scandalul din familie și fotbal 🔥💥🔝 —» Sandu GRECU
10:15:29ÎN PRAG DE CARTE NOUĂ —» Leo Butnaru
21:32:05World Cup —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
09:11:12Franța, după ziua națională —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
08:16:37DIN ANII 90... —» Leo Butnaru
18:13:09Parteneriatul pentru Europa: primele discuții privind agenda comună de acțiuni 🔝 —» Sandu GRECU
05:35:14DINSPRE MITURI SPRE NOI —» Leo Butnaru
05:27:03POETUL ȘI POEZIA SALVÂNDU-SE DIN GULAG —» Leo Butnaru
13:15:37Moldoveanca Romina Hîncu a cucerit primul său titlu ITF 💥 —» Sandu GRECU
05:59:25PUȚINĂ PEDAGOGIE —» Leo Butnaru
15:55:16🔥🔥🔥 SCANDAL la Comitetul Olimpic! 💥💥💥 CNOS vrea să elimine Federația de lupte din membrii săi! —» Sandu GRECU
19:18:28Vasile Tarlev: Nu eu am distrus Stadionul Republican. Atacant la echipa Bucuria. Despre Voronin și circ —» Sandu GRECU