LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 595|回复: 7

emerge mod_php死活装不上去~~

[复制链接]
发表于 2005-1-12 20:08:50 | 显示全部楼层 |阅读模式
565285 ~ # emerge php
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/php-5.0.3 to /
>>> md5 src_uri ;-) php-5.0.3.tar.bz2

* USE flag 'jpeg' needs one of these additional flag(s) set:
*    gd gd-external cpdflib
*
* You can do this by enabling one of these flags in /etc/portage/package.use
*

!!! ERROR: dev-php/php-5.0.3 failed.
!!! Function confutils_use_depend_any, Line 157, Exitcode 0
!!! Need missing USE flag
!!! If you need support, post the topmost build error, NOT this status message.


我要怎么做??? :help  :help
发表于 2005-1-12 21:42:01 | 显示全部楼层
Post by 565285
565285 ~ # emerge php
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/php-5.0.3 to /
>>> md5 src_uri ;-) php-5.0.3.tar.bz2

* USE flag 'jpeg' needs one of these additional flag(s) set:
*    gd gd-external cpdflib
*
* You can do this by enabling one of these flags in /etc/portage/package.use
*

!!! ERROR: dev-php/php-5.0.3 failed.
!!! Function confutils_use_depend_any, Line 157, Exitcode 0
!!! Need missing USE flag
!!! If you need support, post the topmost build error, NOT this status message.


我要怎么做??? :help  :help



从上面三个 gd gd-external cpdflib中,选择一个加到你的use中,最简单的方法就是放到/etc/make.conf下的USE里面。
 楼主| 发表于 2005-1-13 20:29:05 | 显示全部楼层
谢谢虎哥~~

少了一分霸气,多了几分亲切~~
 楼主| 发表于 2005-1-13 20:30:16 | 显示全部楼层
emerge apache 出现这个错误:

refer-non-pic -static -c exports.c && touch exports.lo
exports.c:115:2: #endif without #if
make[2]: *** [exports.lo] 错误 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make: *** [all-recursive] 错误 1

!!! ERROR: net-www/apache-2.0.52-r2 failed.
!!! Function src_compile, Line 196, Exitcode 2
!!! problem compiling Apache2
!!! If you need support, post the topmost build error, NOT this status message.
 楼主| 发表于 2005-1-14 16:35:19 | 显示全部楼层
找了一些资料说安装apache最好用autoconf2.13,2.5X  的会出问题。
我安装了autoconf2.13,再安装apache 可系统会自动把2.13   升为2.59-r6,我要怎么做才可以把apache 装上去 :help  :help
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-15 14:02:38 | 显示全部楼层
565285 ~ # emerge apache
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/apache-2.0.52-r2 to /
>>> md5 src_uri ;-) httpd-2.0.52.tar.gz
>>> md5 src_uri ;-) apache-patches-2.0.52-r2.tar.bz2
>>> md5 src_uri ;-) apache-conf-2.0.52-r2.tar.bz2
>>> Unpacking source...
>>> Unpacking httpd-2.0.52.tar.gz to /var/tmp/portage/apache-2.0.52-r2/work
>>> Unpacking apache-patches-2.0.52-r2.tar.bz2 to /var/tmp/portage/apache-2.0.52-r2/work
>>> Unpacking apache-conf-2.0.52-r2.tar.bz2 to /var/tmp/portage/apache-2.0.52-r2/work
* Applying various patches (bugfixes/updates) ...
*   00_all_gentoo_base.patch ...                                         [ ok ] *   01_all_gentoo_ipv6.patch ...                                         [ ok ] *   03_all_redhat_xfsz.patch ...                                         [ ok ] *   04_all_ssl_makefile.patch ...                                        [ ok ] *   05_all_can_2004_0885.patch ...                                       [ ok ] * Done with patching
* Enabling berkdb.
* Enabling db4
* Replacing obsolete head/tail with POSIX compliant ones
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: libtool version 1.5.10 (ok)
Copying libtool helper files ...
buildconf: Using libtool.m4 at /usr/share/aclocal/libtool.m4.
Creating include/arch/unix/apr_private.h.in ...
autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.59: WARNING: is deprecated and discouraged.
autoheader-2.59:
autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader-2.59: WARNING: `acconfig.h':
autoheader-2.59:
autoheader-2.59: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.59:                [Define if a function `main' is needed.])
autoheader-2.59:
autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.59: WARNING: documentation.
Creating configure ...
rebuilding srclib/apr-util/configure

Looking for apr source in ../apr
Creating include/private/apu_config.h ...
Creating configure ...
Invoking xml/expat/buildconf.sh ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Copying libtool helper files ...
Creating config.h.in ...
autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.59: WARNING: is deprecated and discouraged.
autoheader-2.59:
autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader-2.59: WARNING: `acconfig.h':
autoheader-2.59:
autoheader-2.59: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.59:                [Define if a function `main' is needed.])
autoheader-2.59:
autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.59: WARNING: documentation.
Creating configure ...
copying build files
fixing timestamps for mod_ssl sources
rebuilding srclib/pcre/configure
rebuilding include/ap_config_auto.h.in
autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.59: WARNING: is deprecated and discouraged.
autoheader-2.59:
autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader-2.59: WARNING: `acconfig.h':
autoheader-2.59:
autoheader-2.59: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.59:                [Define if a function `main' is needed.])
autoheader-2.59:
autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.59: WARNING: documentation.
rebuilding configure
rebuilding rpm spec file
>>> Source unpacked.
* DATADIR is set to: /var/www/localhost
* USERDIR is set to: public_html
* Using GNU config files from /usr/share/libtool
*  Updating build/config.sub                                             [ ok ] *  Updating srclib/apr/build/config.sub                                  [ ok ] *  Updating srclib/apr-util/build/config.sub                             [ ok ] *  Updating srclib/apr-util/xml/expat/conftools/config.sub               [ ok ] *  Updating srclib/pcre/config.sub                                       [ ok ] *  Updating build/config.guess                                           [ ok ] *  Updating srclib/apr/build/config.guess                                [ ok ] *  Updating srclib/apr-util/build/config.guess                           [ ok ] *  Updating srclib/apr-util/xml/expat/conftools/config.guess             [ ok ] *  Updating srclib/pcre/config.guess                                     [ ok ] * Enabling ipv6
* /etc/apache2/apache2-builtin-mods options:
--disable-example --enable-access=shared --enable-auth=shared --enable-auth_dbm=shared --enable-auth_anon=shared --enable-auth_digest=shared --enable-alias=shared --enable-file-cache=shared --enable-echo=shared --enable-charset-lite=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-ext-filter=shared --enable-case_filter=shared --enable-case-filter-in=shared --enable-deflate=shared --enable-mime-magic=shared --enable-cern-meta=shared --enable-expires=shared --enable-headers=shared --enable-usertrack=shared --enable-unique-id=shared --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared --enable-proxy-http=shared --enable-ssl=shared --disable-optional-hook-export --disable-optional-hook-import --disable-optional-fn-import --disable-optional-fn-export --disable-bucketeer --enable-info=shared --en



/httpd-2.0.52/srclib/apr-util/include /var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/http; do \
    ls $dir/*.h >> $tmp; \
done; \
sort -u $tmp > export_files; \
rm -f $tmp
gawk -f /var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/build/make_exports.awk `cat export_files` > exports.c
/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr/libtool --silent --mode=compile i686-pc-linux-gnu-gcc  -pthread  -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr/include -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr-util/include -I. -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/os/unix -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server/mpm/prefork -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/http -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/filters -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/proxy -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/include -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:115:2: #endif without #if
make[2]: *** [exports.lo] 错误 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make: *** [all-recursive] 错误 1

!!! ERROR: net-www/apache-2.0.52-r2 failed.
!!! Function src_compile, Line 196, Exitcode 2
!!! problem compiling Apache2
!!! If you need support, post the topmost build error, NOT this status message.



565285 ~ # emerge info
Portage 2.0.51-r12 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro2 i686)
=================================================================
System uname: 2.6.10-nitro2 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jun 10 2004, 18:25:06)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.8.5-r2, 1.6.3, 1.9.4, 1.5, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS=" http://gentoo.gg3.net/   ftp://gg3.net/pub/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://219.111.13.142/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts cdr crypt cups dba encode esd f77 fam font-server foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 guile imlib ipv6 java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xmms xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY



:help  :help  :help  :help  :help
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-15 16:07:12 | 显示全部楼层
565285 ~ # emerge  apache
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/apache-2.0.52-r2 to /
>>> md5 src_uri ;-) httpd-2.0.52.tar.gz
>>> md5 src_uri ;-) apache-patches-2.0.52-r2.tar.bz2
>>> md5 src_uri ;-) apache-conf-2.0.52-r2.tar.bz2
>>> Unpacking source...
>>> Unpacking httpd-2.0.52.tar.gz to /var/tmp/portage/apache-2.0.52-r2/work
>>> Unpacking apache-patches-2.0.52-r2.tar.bz2 to /var/tmp/portage/apache-2.0.52-r2/work
>>> Unpacking apache-conf-2.0.52-r2.tar.bz2 to /var/tmp/portage/apache-2.0.52-r2/work
* Applying various patches (bugfixes/updates) ...
*   00_all_gentoo_base.patch ...                                         [ ok ] *   01_all_gentoo_ipv6.patch ...                                         [ ok ] *   03_all_redhat_xfsz.patch ...                                         [ ok ] *   04_all_ssl_makefile.patch ...                                        [ ok ] *   05_all_can_2004_0885.patch ...                                       [ ok ] * Done with patching
* Enabling berkdb.
* Enabling db4
* Replacing obsolete head/tail with POSIX compliant ones
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: autoconf not found.
           You need autoconf version 2.13 or newer installed
           to build Apache from CVS.
./buildconf failed for apr

!!! ERROR: net-www/apache-2.0.52-r2 failed.
!!! Function src_unpack, Line 106, Exitcode 1
!!! buildconf failed
!!! If you need support, post the topmost build error, NOT this status message.

autoconf2.13我装了呀,2.59-r6也有啊!怎么会
???/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-15 18:06:23 | 显示全部楼层
终干好了,在/usr/bin  下给 autoconf-2.13创建了链接就可以正常emerge apache
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表