在 XAMPP (Ubuntu 10.04) 中安装 uploadprogress

Posted

技术标签:

【中文标题】在 XAMPP (Ubuntu 10.04) 中安装 uploadprogress【英文标题】:Install uploadprogress in XAMPP (Ubuntu 10.04) 【发布时间】:2011-06-10 12:59:15 【问题描述】:

我想在 XAMPP 1.7.1 中安装 uploadprogress 扩展(使用 Ubuntu 10.04)。

请让我知道我做错了什么:

1) 我已经将uploadedprogress-1.0.1.tgz 下载到桌面

2) 我已经运行 tar zxvf uploadprogress-1.0.1.tgz 来提取文件夹中的存档。

3) cd uploadprogress-1.0.1

4)/opt/lampp/bin/phpize-5.2.9(在这一步中......虽然我指向正确的php文件夹..我没有得到关于PHP Api版本,zend模块api的信息,等等。 这里是输出

grep: /opt/lampp/include/php/main/php.h: No such file or directory
grep: /opt/lampp/include/php/Zend/zend_modules.h: No such file or directory
grep: /opt/lampp/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:  
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
configure.in:144: the top level
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1998: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2019: AC_CACHE_CHECK is expanded from...
aclocal.m4:3535: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5473: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5472: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2952: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2932: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2895: AC_PROG_LIBTOOL is expanded from...
configure.in:144: the top level
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3490: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7600: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:144: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5586: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5585: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4621: _LT_AC_TAGCONFIG is expanded from...

5) ./configure --with-php-config=/opt/lampp/bin/php-config-5.2.9

6) 制作

我是新手,所以请有人指导我完成这个过程。谢谢!

【问题讨论】:

【参考方案1】:

我没有安装 XAMPP 'devel' 包。安装后,一切正常。最后两件事:sudo make install & 编辑 php.ini

【讨论】:

【参考方案2】:

下载并安装XAMPP开发包,然后运行:

sudo /opt/lampp/bin/pecl 安装上传进度

在 /opt/lampp/etc/php.ini 中添加“extension=uploadprogress.so”

【讨论】:

以上是关于在 XAMPP (Ubuntu 10.04) 中安装 uploadprogress的主要内容,如果未能解决你的问题,请参考以下文章

如何在 apache2 tomcat6 中安装 ffmpeg 或在 ubuntu 中安装 xampp?

Ubuntu 10.04 上的虚拟主机。 - 访问禁止错误 403

在 Ubuntu 中安装 XAMPP 不是 root

如何在 Ubuntu 16.04 上的 XAMPP 中安装较旧的 PHP 版本?

在 xampp for ubuntu 中安装 YII 框架

在 XAMPP ubuntu 和 mac os x 中安装 a2enmod