<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; /etc/ld.so.conf</title>
	<atom:link href="http://eitwebguru.com/tag/etcld-so-conf/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 05:54:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installation of GNUPG and GNUPG-PHP extension</title>
		<link>http://eitwebguru.com/installation-of-gnupg-and-gnupg-php-extension/</link>
		<comments>http://eitwebguru.com/installation-of-gnupg-and-gnupg-php-extension/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 19:25:05 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[/etc/ld.so.conf]]></category>
		<category><![CDATA[cannot open shared object file]]></category>
		<category><![CDATA[GNUPG installation]]></category>
		<category><![CDATA[GNUPG PHP extension]]></category>
		<category><![CDATA[GNUPGME installation]]></category>
		<category><![CDATA[libgpg-error installation]]></category>
		<category><![CDATA[loading shared libraries: libgpgme.so.11]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=46</guid>
		<description><![CDATA[GNU Privacy Guard (GnuPG or GPG) is a GPL Licensed alternative to the PGP suite of cryptographic software and in this post I am going to explain how you can install GNUPG and GNUPG PHP extensions on your Server. Step 1: Go to download Directory cd /usr/local/src/ Step 2: Download Required Modules Download GNUPG, libgpg-error [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p align="justify"><strong>GNU Privacy Guard (GnuPG or GPG)</strong> is a GPL Licensed alternative to the PGP suite of cryptographic software and in this post I am going to explain how you can install GNUPG and GNUPG PHP extensions on your Server.</p>
<p align="justify"><span style="font-family: Verdana; font-size: small;"><strong>Step 1:</strong> Go to download Directory</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 20px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>cd /usr/local/src/</strong></pre>
<p align="justify"><span style="font-family: Verdana; font-size: small;"><strong>Step 2:</strong> Download Required Modules</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;"> Download GNUPG, libgpg-error and GNUPGME (Made Easy) from http://www.gnupg.org/download/ and GNUPG PHP Extension from http://pecl.php.net/get/</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>wget ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.9.tar.gz<br />
wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.7.tar.bz2<br />
wget ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.1.8.tar.bz2<br />
wget http://pecl.php.net/get/gnupg-1.3.1.tgz</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;"><strong>Step 3:</strong> Extract All the downloaded Modules</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>tar -zvf gnupg-1.4.9.tar.gz<br />
tar -jxvf libgpg-error-1.7.tar.bz2<br />
tar -jxvf gpgme-1.1.8.tar.bz2<br />
tar -zxvf gnupg-1.3.1.tgz</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Step 4: Installation of GNUPG</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>cd /usr/local/src/gnupg-1.4.9<br />
./configure<br />
make ; make install</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Step 5: Installation of LibGPG-Error</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>cd /usr/local/src/libgpg-error-1.7<br />
./configure<br />
make ; make install</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Step 6: Installation of GPGME</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>cd /usr/local/src/gpgme-1.1.8<br />
./configure &#8211;with-gpgconf=/root/.gnupg/gpg.conf<br />
make ; make install</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Step 7: Installation GNUPG PHP Extension</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>cd /usr/local/src/gnupg-1.3.1<br />
phpize ./configure<br />
make ; make install</strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Step 8: Enable PHP Extension</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>echo &#8216;extension=gnupg.so&#8217; &gt;&gt; /usr/local/lib/php.ini<br />
OR<br />
echo &#8216;extension=gnupg.so&#8217; &gt;&gt; /etc/php.ini<br />
OR<br />
Insert <strong>&#8216;extension=gnupg.so&#8217;</strong> where php configuration file i.e. php.ini is located.</strong></div>
<p><span style="font-family: Verdana; font-size: small;"><strong>TROUBLESHOOTING</strong></span></p>
<p><span style="font-family: Verdana; font-size: small;">It happens sometime that after loading gnupg it doesn&#8217;t shows it in PHP info OR you get Message &#8220;error while loading shared libraries: libgpgme.so.11: cannot open shared object file: No such file or directory&#8221;. You can check the same using following command</span></p>
<div style="background-color: #eeeeee; width: 490px; height: auto; overflow: auto; line-height: 15px; padding: 20px; font-family: Courier New; font-size: small; color: #000000;"><strong>[root@support007 ~]# ldd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gnupg.so libgpgme.so.11 =&gt; not found libc.so.6 =&gt; /lib/libc.so.6 (0x002be000) /lib/ld-linux.so.2 (0x00c94000 </strong></div>
<p align="justify"><span style="font-family: Verdana; font-size: small;">The main reason for this problem is that the server doesn&#8217;t load libraries from /usr/local/lib folder. To fix this problem just add ‘/usr/local/lib‘ to /etc/ld.so.conf and run ldconfig.</span></p>
<p>&nbsp;</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/installation-of-gnupg-and-gnupg-php-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

