php large file support,PHP 安装

用户评论:

Jane Doe (2013-04-23 12:03:02)

Hi -

By default on Ubuntu 12.04 LTS gnupg needs to write to .gnupg in the home directory of the user running PHP (so for a web site this is www-data). You might need to make a ~/.gnupg for www-data and chown/chmod it correctly or everything will fail.

Dominik Sommer (2012-11-13 17:04:18)

For Ubuntu 12.04, these are the steps:

1. Install packages: gnupg libgpg-error-dev libassuan-dev

2. Download GPGME library from ?http://www.gnupg.org/download/index.en.html#gpgme

3. Extract, then run

configure

make && sudo make install

4. Install PECL extension

sudo pecl install gnupg

5. Add to php.ini

extension=gnupg.so

frozenfire at php dot net (2012-02-21 02:36:29)

Here are instructions for how to resolve the issue where you encounter this error:

/usr/include/gpgme.h:80:2: error: #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.

This is a result of the gnupg extension currently lacking largefile support. The solution is fairly simple.

pecl download gnupg

tar -zxf gnupg-1.3.2.tgz

cd gnupg-1.3.2

Open the file config.m4 in an editor, and add "AC_SYS_LARGEFILE" to a new line at the very end of the file, then save.

phpize

./configure

make

make install

Now simply add extension=gnupg.so to your php.ini, and the extension should work.

Heath (2010-10-07 19:38:01)

On Debian 5.05 (Lenny) I needed to install libgpgme11-dev

mk at wintermute dot at (2009-02-04 03:49:18)

Quick installation guide on Fedora 10:

Needed:

- c++ compiler

- php-pear

- gnupg

- libgpg-error

- gpgme

- gpgme-devel

- php-devel

Install with:

$ pecl install gnupg

Add an entry to /etc/php.ini:

extension=gnupg.so

Restart Apache > you're done.

sma dot azar at gmail dot com (2009-02-02 10:10:38)

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:

sudo apt-get install g++?>Obviously you need GnuPG itself, so try:

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:

?>2-4: In the same directory make it with below command:

sudo make

?>2-5: In the same directory install it with below command:

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:

?>3-4: In the same directory make it with below command:

sudo make

?>3-5: In the same directory install it with below command:

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:

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:

sudo pecl install gnupg

?>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值