note 88661 added to gnupg.installation

From: Date: Mon, 02 Feb 2009 18:10:38 +0000
Subject: note 88661 added to gnupg.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-150113@lists.php.net to get a copy of this message
After spending so much time I could only install it on Linux and not Windows. There is very little instructions on the net about installation of this module, so I am going to write a small instructions that should help a straightforward installation on Linux without so much trouble. Step 1: you will need a C++ compiler on your machine. For being sure try this command in the terminal: <?php sudo apt-get install g++ ?> Obviously you need GnuPG itself, so try: <?php sudo apt-get install gnupg ?> Step 2: you will need "Libgpg-Error" downloaded and installed on your machine. 2-1: Download the code from http://www.gnupg.org/download/#libgpg-error 2-2: Extract it to a directory. In the terminal, change the directory to the Libgpg-error directory. 2-3: Configure the package for building and installation with below command: <?php ./configure ?> 2-4: In the same directory make it with below command: <?php sudo make ?> 2-5: In the same directory install it with below command: <?php sudo make install ?> Step 3: you will need "GnuPG Made Easy" (GPGME) downloaded and installed on your machine. Some sources will tell you that you can "apt-get install" it, but actually you cannot. So do it like the latter: 3-1: Download the source code from http://www.gnupg.org/download/#gpgme 3-2: Extract it to a directory. In the terminal, change the directory to the GPGME directory. 3-3: Configure the package for building and installation with below command: <?php ./configure ?> 3-4: In the same directory make it with below command: <?php sudo make ?> 3-5: In the same directory install it with below command: <?php sudo make install ?> Step 4: Given that you have a LAMP server already and have php installed, you will need "pear" and "php source codes". To add them use below commands: <?php sudo apt-get install php5-dev sudo apt-get install php-pear ?> Step 5: Now you can install GNU Privacy Guard for php using PECL command: <?php sudo pecl install gnupg ?> ---- Server IP: 92.48.74.199 Probable Submitter: 78.105.148.69 ---- Manual Page -- http://www.php.net/manual/en/gnupg.installation.php Edit -- https://master.php.net/note/edit/88661 Del: integrated -- https://master.php.net/note/delete/88661/integrated Del: useless -- https://master.php.net/note/delete/88661/useless Del: bad code -- https://master.php.net/note/delete/88661/bad+code Del: spam -- https://master.php.net/note/delete/88661/spam Del: non-english -- https://master.php.net/note/delete/88661/non-english Del: in docs -- https://master.php.net/note/delete/88661/in+docs Del: other reasons-- https://master.php.net/note/delete/88661 Reject -- https://master.php.net/note/reject/88661 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150113) next »