Projects / gpgdir / Comments

Comments for gpgdir

25 Jun 2008 00:51 michaelrash

Re: gpgdir no longer working with perl 5.10


> Since I have updated to Perl 5.10,

> gpgdir is no longer working; I get the

> following message:

>

> "/usr/bin/perl: symbol lookup

> error:

> /usr/lib/gpgdir/i486-linux-gnu-thread-multi/auto/Term/ReadKey/ReadKey.so:

> undefined symbol:

> Perl_Tstack_sp_ptr"

>

> Could you make a suggestion?

>

> Many thanks !

Hi, can you try re-installing gpgdir by either using the install.pl script in the gpgdir tarball, or by using the automated RPM builder?:

http://www.cipherdyne.com/scripts/cd_rpmbuilder.tar.gz

Just do:

# ./cd_rpmbuilder -p gpgdir

Thanks,

--Mike

19 May 2008 21:44 truenerd

gpgdir no longer working with perl 5.10
Since I have updated to Perl 5.10, gpgdir is no longer working; I get the following message:

"/usr/bin/perl: symbol lookup error: /usr/lib/gpgdir/i486-linux-gnu-thread-multi/auto/Term/ReadKey/ReadKey.so: undefined symbol: Perl_Tstack_sp_ptr"

Could you make a suggestion?

Many thanks !

09 Sep 2006 09:27 michaelrash

Re: gpgdir dosn't work on my linux system


> Well the script ran, but produced a 0

> size file, so I put

> some content in it, and the following

> script works for me. It says "yep" and

> the file gets encrypted.

> #!/usr/bin/perl -w

> use GnuPG;

> use strict;

>

> my $homedir = '/home/zentara/.gnupg';

> my $file = '/tmp/gpgtest';

> my $key = "zentara\@zentara.net";

>

> unlink "${file}.gpg";

>

> open F, "> $file" or die;

> print F "howdy";

> close F;

>

> my $gpg = new GnuPG(homedir=>$homedir);

>

> $gpg->encrypt(plaintext=>$file,

> output=>"${file}.gpg",

> recipient=>$key);

>

> if (-e "${file}.gpg") {

> print "yep\n";

> } else {

> print "nope\n";

> }

> exit 0;

>

This should be fixed now with the usage of the GnuPG::Interface module.

04 Mar 2003 03:56 zentara

Re: gpgdir dosn't work on my linux system
Well the script ran, but produced a 0 size file, so I put
some content in it, and the following script works for me. It says "yep" and the file gets encrypted.

#!/usr/bin/perl -w

use GnuPG;

use strict;

my $homedir = '/home/zentara/.gnupg';

my $file = '/tmp/gpgtest';

my $key = "zentara\@zentara.net";


unlink "${file}.gpg";


open F, "> $file" or die;

print F "howdy";

close F;


my $gpg = new GnuPG(homedir=>$homedir);


$gpg->encrypt(plaintext=>$file, output=>"${file}.gpg",

recipient=>$key);


if (-e "${file}.gpg") {

print "yep\n";

} else {

print "nope\n";

}

exit 0;

03 Mar 2003 19:13 michaelrash

Re: gpgdir dosn't work on my linux system

> My GnuPG version is GnuPG-0.09
> I'm using perl5.8
>
> You asked that I perform the following:
> tar xvfz gpgdir-0.1.tar.gz
> cd gpgdir-0.1
> mkdir testing
> cp LICENSE testing
> echo blah > testing/blah
> ./gpgdir -e testing
>
> zentara@zentara:~/1down/1/gpgdir-0.1>
> gpgdir -e testing
> Sun Mar 2 12:47:58 2003 .. Directory:
> /home/zentara/1down/1/gpgdir-0.1/testing
> ==> Encrypting blah.gz
> Sun Mar 2 12:47:58 2003 .. Encrypting
> blah.gz -> blah.gz.gpg
> Sun Mar 2 12:47:58 2003 .. Compressing
> LICENSE -> LICENSE.gz
> Sun Mar 2 12:47:58 2003 .. Encrypting
> LICENSE.gz -> LICENSE.gz.gpg
> Sun Mar 2 12:47:59 2003 ..
> Errors/Warnings:
> Sun Mar 2 12:47:58 2003 ** Could not
> encrypt: blah.gz
> Sun Mar 2 12:47:59 2003 ** Could not
> encrypt: LICENSE.gz
> Sun Mar 2 12:47:59 2003 .. Total number
> of files encrypted: 0
> Sun Mar 2 12:47:59 2003 .. Finished.
%
>


Hello -

Can you try executing the following simple script? Note that you will need to change the three variables at the top of the script.

#!/usr/bin/perl -w
use GnuPG;
use strict;

my $homedir = '/home/mbr/.gnupg';
my $file = '/tmp/gpgtest';
my $key = 'A742839F';

unlink "${file}.gpg";

open F, "> $file" or die;
close F;

my $gpg = new GnuPG(homedir=>$homedir);

$gpg->encrypt(plaintext=>$file, output=>"${file}.gpg",
recipient=>$key);

if (-e "${file}.gpg") {
print "yep\n";
} else {
print "nope\n";
}
exit 0;

02 Mar 2003 09:54 zentara

Re: gpgdir dosn't work on my linux system
My GnuPG version is GnuPG-0.09

I'm using perl5.8

You asked that I perform the following:

tar xvfz gpgdir-0.1.tar.gz

cd gpgdir-0.1

mkdir testing

cp LICENSE testing

echo blah > testing/blah

./gpgdir -e testing

zentara@zentara:~/1down/1/gpgdir-0.1> gpgdir -e testing

Sun Mar 2 12:47:58 2003 .. Directory: /home/zentara/1down/1/gpgdir-0.1/testing ==> Encrypting blah.gz

Sun Mar 2 12:47:58 2003 .. Encrypting blah.gz -> blah.gz.gpg

Sun Mar 2 12:47:58 2003 .. Compressing LICENSE -> LICENSE.gz

Sun Mar 2 12:47:58 2003 .. Encrypting LICENSE.gz -> LICENSE.gz.gpg

Sun Mar 2 12:47:59 2003 .. Errors/Warnings:

Sun Mar 2 12:47:58 2003 ** Could not encrypt: blah.gz

Sun Mar 2 12:47:59 2003 ** Could not encrypt: LICENSE.gz

Sun Mar 2 12:47:59 2003 .. Total number of files encrypted: 0

Sun Mar 2 12:47:59 2003 .. Finished.

02 Mar 2003 07:59 michaelrash

Re: gpgdir dosn't work on my linux system

> Ok, I copied the tarball to a directory
> called 1,
> in my home directory, then I unpacked
> it, and tried to run
> gpgdir on it. This is the output. My
> gpg version is 1.2.1,
> and it encrypts files fine with "gpg -e
> somefile".
>
>
> zentara@zentara:~/1down> gpgdir -e 1
> Sat Mar 1 13:31:34 2003 .. Directory:
> /home/zentara/1down/1 ==> Encrypting
> gpgdir-0.1.tar.gz.gpg
> Sat Mar 1 13:31:34 2003 ..
> Errors/Warnings:
> Sat Mar 1 13:31:34 2003 ** Could not
> encrypt: gpgdir-0.1.tar.gz
> Sat Mar 1 13:31:34 2003 .. Directory:
> /home/zentara/1down/1/gpgdir-0.1 ==>
> Encrypting LICENSE.gz
> Sat Mar 1 13:31:34 2003 .. Encrypting
> LICENSE.gz -> LICENSE.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> README -> README.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> README.gz -> README.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> install.pl -> install.pl.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> install.pl.gz -> install.pl.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> gpgdir -> gpgdir.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> gpgdir.gz -> gpgdir.gz.gpg
> Sat Mar 1 13:31:36 2003 .. Compressing
> gpgdir.1 -> gpgdir.1.gz
> Sat Mar 1 13:31:36 2003 .. Encrypting
> gpgdir.1.gz -> gpgdir.1.gz.gpg
> Sat Mar 1 13:31:36 2003 ..
> Errors/Warnings:
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: LICENSE.gz
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: README.gz
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: install.pl.gz
> Sat Mar 1 13:31:36 2003 ** Could not
> encrypt: gpgdir.gz
> Sat Mar 1 13:31:36 2003 ** Could not
> encrypt: gpgdir.1.gz
> Sat Mar 1 13:31:36 2003 .. Total number
> of files encrypted: 0
> Sat Mar 1 13:31:36 2003 .. Finished.
>
> After running "gpgdir 1"
>
>
> "ls -la 1"
> total 19
> drwxr-xr-x 3 zentara users
> 131 2003-03-01 13:31 .
> drwxr-xr-x 16 zentara users
> 1242 2003-03-01 13:32 ..
> drwxr-xr-x 2 zentara users
> 319 2003-03-01 13:31 gpgdir-0.1
> -rw------- 1 zentara users
> 12481 2003-03-01 13:29
> gpgdir-0.1.tar.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31
> gpgdir-0.1.tar.gz.gpg
>
>
> "ls -la gpgdir-0.1"
> total 25
> drwxr-xr-x 2 zentara users
> 319 2003-03-01 13:31 .
> drwxr-xr-x 3 zentara users
> 131 2003-03-01 13:31 ..
> -rw-r--r-- 1 zentara users
> 6859 2003-02-24 14:04 LICENSE.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 LICENSE.gz.gpg
> -rw-r--r-- 1 zentara users
> 669 2003-02-26 19:48 README.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 README.gz.gpg
> -rw-r--r-- 1 zentara users
> 1005 2003-02-26 19:32 gpgdir.1.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 gpgdir.1.gz.gpg
> -rwxr-xr-x 1 zentara users
> 3635 2003-02-26 19:48 gpgdir.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 gpgdir.gz.gpg
> -rwxr-xr-x 1 zentara users
> 1643 2003-02-24 23:46 install.pl.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 install.pl.gz.gpg
>
>


Hello -

I'm unable to duplicate the issue you are seeing based upon the
information provided.

What version of the GnuPG CPAN module do you have installed? I would recommend that you install GnuPG-0.09 if you don't already have it installed.

What happens if you execute the following sequence of commands:

tar xvfz gpgdir-0.1.tar.gz
cd gpgdir-0.1
mkdir testing
cp LICENSE testing
echo blah > testing/blah
./gpgdir -e testing

This will help me to see exactly what the problem is.

Thanks,
--Mike

01 Mar 2003 10:49 zentara

Re: gpgdir dosn't work on my linux system
Ok, I copied the tarball to a directory called 1,
in my home directory, then I unpacked it, and tried to run
gpgdir on it. This is the output. My gpg version is 1.2.1,
and it encrypts files fine with "gpg -e somefile".

zentara@zentara:~/1down> gpgdir -e 1

Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1 ==> Encrypting gpgdir-0.1.tar.gz.gpg

Sat Mar 1 13:31:34 2003 .. Errors/Warnings:

Sat Mar 1 13:31:34 2003 ** Could not encrypt: gpgdir-0.1.tar.gz

Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1/gpgdir-0.1 ==> Encrypting LICENSE.gz

Sat Mar 1 13:31:34 2003 .. Encrypting LICENSE.gz -> LICENSE.gz.gpg

Sat Mar 1 13:31:35 2003 .. Compressing README -> README.gz

Sat Mar 1 13:31:35 2003 .. Encrypting README.gz -> README.gz.gpg

Sat Mar 1 13:31:35 2003 .. Compressing install.pl -> install.pl.gz

Sat Mar 1 13:31:35 2003 .. Encrypting install.pl.gz -> install.pl.gz.gpg

Sat Mar 1 13:31:35 2003 .. Compressing gpgdir -> gpgdir.gz

Sat Mar 1 13:31:35 2003 .. Encrypting gpgdir.gz -> gpgdir.gz.gpg

Sat Mar 1 13:31:36 2003 .. Compressing gpgdir.1 -> gpgdir.1.gz

Sat Mar 1 13:31:36 2003 .. Encrypting gpgdir.1.gz -> gpgdir.1.gz.gpg

Sat Mar 1 13:31:36 2003 .. Errors/Warnings:

Sat Mar 1 13:31:35 2003 ** Could not encrypt: LICENSE.gz

Sat Mar 1 13:31:35 2003 ** Could not encrypt: README.gz

Sat Mar 1 13:31:35 2003 ** Could not encrypt: install.pl.gz

Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.gz

Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.1.gz

Sat Mar 1 13:31:36 2003 .. Total number of files encrypted: 0

Sat Mar 1 13:31:36 2003 .. Finished.

After running "gpgdir 1"

"ls -la 1"

total 19

drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 .

drwxr-xr-x 16 zentara users 1242 2003-03-01 13:32 ..

drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 gpgdir-0.1

-rw------- 1 zentara users 12481 2003-03-01 13:29 gpgdir-0.1.tar.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir-0.1.tar.gz.gpg

"ls -la gpgdir-0.1"

total 25

drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 .

drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 ..

-rw-r--r-- 1 zentara users 6859 2003-02-24 14:04 LICENSE.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 LICENSE.gz.gpg

-rw-r--r-- 1 zentara users 669 2003-02-26 19:48 README.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 README.gz.gpg

-rw-r--r-- 1 zentara users 1005 2003-02-26 19:32 gpgdir.1.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir.1.gz.gpg

-rwxr-xr-x 1 zentara users 3635 2003-02-26 19:48 gpgdir.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir.gz.gpg

-rwxr-xr-x 1 zentara users 1643 2003-02-24 23:46 install.pl.gz

-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 install.pl.gz.gpg


01 Mar 2003 10:43 zentara

Re: gpgdir dosn't work on my linux system
Ok, I copied the tarball to a directory called 1,
in my home directory, then I unpacked it, and tried to run
gpgdir on it. This is the output. My gpg version is 1.2.1,
and it encrypts files fine with "gpg -e somefile".


zentara@zentara:~/1down> gpgdir -e 1
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1 ==> Encrypting gpgdir-0.1.tar.gz.gpg
Sat Mar 1 13:31:34 2003 .. Errors/Warnings:
Sat Mar 1 13:31:34 2003 ** Could not encrypt: gpgdir-0.1.tar.gz
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1/gpgdir-0.1 ==> Encrypting LICENSE.gz
Sat Mar 1 13:31:34 2003 .. Encrypting LICENSE.gz -> LICENSE.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing README -> README.gz
Sat Mar 1 13:31:35 2003 .. Encrypting README.gz -> README.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing install.pl -> install.pl.gz
Sat Mar 1 13:31:35 2003 .. Encrypting install.pl.gz -> install.pl.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing gpgdir -> gpgdir.gz
Sat Mar 1 13:31:35 2003 .. Encrypting gpgdir.gz -> gpgdir.gz.gpg
Sat Mar 1 13:31:36 2003 .. Compressing gpgdir.1 -> gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Encrypting gpgdir.1.gz -> gpgdir.1.gz.gpg
Sat Mar 1 13:31:36 2003 .. Errors/Warnings:
Sat Mar 1 13:31:35 2003 ** Could not encrypt: LICENSE.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: README.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: install.pl.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Total number of files encrypted: 0
Sat Mar 1 13:31:36 2003 .. Finished.

After running "gpgdir 1"


"ls -la 1"
total 19
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 .
drwxr-xr-x 16 zentara users 1242 2003-03-01 13:32 ..
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 gpgdir-0.1
-rw------- 1 zentara users 12481 2003-03-01 13:29 gpgdir-0.1.tar.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir-0.1.tar.gz.gpg


"ls -la gpgdir-0.1"
total 25
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 .
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 ..
-rw-r--r-- 1 zentara users 6859 2003-02-24 14:04 LICENSE.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 LICENSE.gz.gpg
-rw-r--r-- 1 zentara users 669 2003-02-26 19:48 README.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 README.gz.gpg
-rw-r--r-- 1 zentara users 1005 2003-02-26 19:32 gpgdir.1.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir.1.gz.gpg
-rwxr-xr-x 1 zentara users 3635 2003-02-26 19:48 gpgdir.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir.gz.gpg
-rwxr-xr-x 1 zentara users 1643 2003-02-24 23:46 install.pl.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 install.pl.gz.gpg

01 Mar 2003 10:00 michaelrash

Re: gpgdir dosn't work on my linux system

> Hi, you have a nice idea. When I run
> gpgdir, it goes
> thru the files, but creates gpg'd files
> of size=0. It leaves error messages
> "could not encrypt file". I'm
> using suse linux, perl5.8, and gpg 1.2.1


Are the original files still left in place? Are you able to encrypt and decrypt files with gpg? Which version of GnuPG do you have installed? I'm going to build in a test within gpgdir to make sure it is able to encrypt and decrypt a tmp file in order to make sure everything is working before it tries to operate on a real directory. 0.2 will include this feature.

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.