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

14:57:18Agresat la adunare aur în Suedia (priviți integral) —» Curaj.TV | Media alternativă
17:44:00Mafiot pus la punct cu dosar penal —» Curaj.TV | Media alternativă
09:39:26#ISCOADA Talks // Masculinitate și discriminare de gen în epoca digitală —» Curaj.TV | Media alternativă
06:08:00DIN REVISTA TINERILOR —» Leo Butnaru
13:06:39Tradiții muzicale ale orașului Chișinău —» CHIŞINĂU MUZICAL | Blogul Bibliotecii de Arte "Tudor Arghezi"
08:51:00UN DIALOG DESPRE JURNALUL UNEI EPOCI —» Leo Butnaru
06:51:00REPARAȚIE, EVACUARE, JAZZ —» Leo Butnaru
19:32:00Incredibil ce gafă poate face ANAD. Cazul de dopaj care poate intra în istorie! —» Sandu GRECU
17:07:00Predicția lui Andre Barbault pentru 2026 —» codul omega
13:00:31Elfrida Koroliova. Prin labirintul pasiunilor —» Biblioteca de Arte 'Tudor Arghezi'
12:28:16Drama primului fotbalist din Moldova prins dopat. Adevărul ascuns —» Sandu GRECU
07:35:00BIBLIOTECA —» Leo Butnaru
06:47:43Criza de încredere: sport global. Moldova joacă în deplasare, fără rezerve. —» Efrosnatalita’s Blog
06:32:00PĂUNUL ȘI LIBERTATEA —» Leo Butnaru
14:22:00Calatorie/Viaje —» Andrei LANGA. Blogul personal
13:42:00Constantin Romașcanu, compositor, dirijor și profesor universitar —» CHIŞINĂU MUZICAL | Blogul Bibliotecii de Arte "Tudor Arghezi"
14:43:002026 – Revelarea Adevărului —» codul omega
13:24:00Siguranța cetățenilor, asigurată zi de zi de structurile Ministerului Afacerilor Interne —» Sandu GRECU
06:43:00DIN COSMOGRAME —» Leo Butnaru
20:31:24A House of Dynamite —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
20:31:24A House of Dynamite —» APort | "Pentru un român care știe citi, cel mai greu lucru e să nu scrie." I.L. Carag
13:15:52Istorii de acasă, un proiect media nou —» Curaj.TV | Media alternativă
11:23:05#Transnistria: Nu Deranjați – Ion Manole (Promo-LEX) —» Curaj.TV | Media alternativă
08:12:00DIN POEZIA UNIVERSALĂ —» Leo Butnaru
21:27:00Schimbarea începe cu noi: Serviciul protecție internă și anticorupție - vocea integrității în cadrul Ministerului Afacerilor Interne —» Sandu GRECU