Install GPG/PGP on Ubuntu 12.04

Asked by swapnil

Hi,

I need assistance to load GPG/PGP libraries on Ubuntu server 12.04.

I have installed all required libraries on this server.
- gnupg
- libgpg-error
- gpgme
I checked in phpinfo and got the result for gnupg. but I am quit confusing about, are these libraries are loaded properly or not?. when I execute the
below code :
<?php
$gnupg = new gnupg();
print_r($gnupg);
 or
$res = gnupg_init();
?>
this code gives me fatal error for class not found.

Could you please assist me on this?

Where we need to check :
in whcih folder?
in which library.
in how to test this.
Please provide step-by-step on this this will very help full to us.

Thanks,
Swapnil

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu php-crypt-gpg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

You are most likely missing the PHP library for GPG. It's names php-crypt-gpg as far as i remember.

Can you help with this problem?

Provide an answer of your own, or ask swapnil for more information if necessary.

To post a message you must log in.