Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    5

    Default Installing gnupg

    I've managed to install gnupg, will post a tutorial separately. Here's the short version, covering installation on a virtual private server:

    - Get the latest tarball from gnupg.org, place it in your home directory above the web root (e.g. in /usr/home) and unpack it.

    - cd to the unpacked gnupg-x.x.x directory (e.g. gnupg-1.4.3). Follow the installation instructions found at gnupg.org, but with these modifications:

    - The configure command to gnupg needs to be told explicitly where to find some files, because it will assume they're where they're not. So run configure like this, substituting your actual username for "yourusername":

    ./configure --prefix=/usr/home/yourusername --libdir=/usr/local/lib --includedir=/usr/local/phplibs/include/

    - Assuming this doesn't report errors, run make and then run make install, as normal.

    You should end up with a gpg executable installed in /usr/home/yourusername/bin
    Last edited by scritch; 04-17-2006 at 12:25 AM. Reason: Updated info

  2. #2
    Senior Member rolling's Avatar
    Join Date
    May 2004
    Location
    Different day, different place
    Posts
    486

    Default

    For version 1.4.5 I needed

    Code:
    ./configure --prefix=/usr/mylocal --libdir=/usr/local/lib --includedir=/usr/local/phplibs/include/ --with-libiconv-prefix=/usr/local/phplibs
    I also modified keyserver/Makefile.am so that
    Code:
    gpgkeys_ldap_CPPFLAGS = @LDAP_CPPFLAGS@ $(gpgkeys_curl_CPPFLAGS)
    was at the end of the file. Note the addition of $(gpgkeys_curl_CPPFLAGS)

    Once you have built GnuPG, you will need to create a few links as our directory is not in the PATH.

    mkdir ~/.gnupg
    cp -p /usr/mylocal/share/gnupg/options.skel ~/.gnupg/options
    ln -s /usr/mylocal/bin/gpg /usr/local/bin/gpg

    There might be a bit more work to do yet because I get the error
    Code:
    error while loading shared libraries: libcurl.so.3
    when trying to connect to hkp server pgp.mit.edu
    Richard

    I have jotted down some of my meddlings at http://www.rollingr.net/wordpress
    Click here for a full list of formatting codes for this forum

  3. #3
    Senior Member rolling's Avatar
    Join Date
    May 2004
    Location
    Different day, different place
    Posts
    486

    Default

    Solved the libcurl.so.3 problem. It appears that the script used to install PHP from the Site Manager fails to update /etc/ld.so.cache. As a result, the make process finds licurl.so.3 in /usr/local/bin and builds this into the executable. However, when you try running the executable, there is no entry in /etc/ld.so.cache and so it fails.

    To fix this, you need to run ldconfig -v from the prompt of your SSH session.

    To check if you have this problem, use the command
    ld config -p | grep libcurl

    libcurl.so.3.0.0 (libc6) => /usr/local/lib/libcurl.so.3.0.0
    libcurl.so.3 (libc6) => /usr/local/lib/libcurl.so.3
    libcurl.so.2 (libc6) => /lib/libcurl.so.2
    libcurl.so.1 (libc6) => /lib/libcurl.so.1
    libcurl.so (libc6) => /lib/libcurl.so
    libcurl.so (libc6) => /usr/local/lib/libcurl.so

    Once I had fixed this, I tried a completely fresh install and all I needed was ./configure --prefix=/usr/mylocal during the build
    Last edited by rolling; 01-31-2007 at 05:20 AM.
    Richard

    I have jotted down some of my meddlings at http://www.rollingr.net/wordpress
    Click here for a full list of formatting codes for this forum

  4. #4
    Junior Member
    Join Date
    Jan 2007
    Posts
    3

    Thumbs up

    It took a few tries, but thanks to both of your suggestions, it worked.

    step1: Install CURL via Control Panel
    step2: $ ldconfig -v
    step3: $ wget ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.6.tar.gz
    step4: $ tar -zxf gnupg-1.4.6.tar.gz; cd gnupg-1.4.6
    step5: $ ./configure --prefix=/usr/local/gnupg; make; make install;

    That's about it.

    use: './configure --prefix=/usr/local/gnupg --libdir=/usr/local/lib --includedir=/usr/local/phplibs/include/ --with-libiconv-prefix=/usr/local/phplibs' if step5 doesn't work. If that doesn't work, then reply.

    Thanks!

Similar Threads

  1. HowTo Guide: Installing Subversion
    By Pachango in forum General Discussion
    Replies: 25
    Last Post: 12-17-2008, 10:08 AM
  2. HowTo Tutorial: Using and Installing SSH
    By sunzon in forum E-mail / FTP Management
    Replies: 6
    Last Post: 05-10-2008, 07:07 AM
  3. Installing WWW-Mechanize
    By JasonOdyssey in forum CGI Scripts / Perl
    Replies: 0
    Last Post: 11-03-2005, 10:08 AM
  4. Installing Perl modules with CPAN
    By jalal in forum CGI Scripts / Perl
    Replies: 19
    Last Post: 11-03-2005, 10:02 AM
  5. Upgrade SpamAssassin using CPAN?
    By j103c in forum E-mail / FTP Management
    Replies: 54
    Last Post: 06-10-2004, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •