LinuxSir.cn,穿越时空的Linuxsir!

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

php无法安装

[复制链接]
发表于 2009-11-5 13:32:01 | 显示全部楼层 |阅读模式
# emerge -pqv =dev-lang/php-5.2.10
[ebuild  N    ] dev-lang/php-5.2.10  USE="apache2 berkdb bzip2 cjk cli crypt fastbuild gdbm iconv imap ipv6 ldap msql mssql mysql ncurses nls odbc pcre readline reflection session snmp spell spl ssl threads truetype unicode xml zip zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc (-java-external) -json -kerberos -kolab -ldap-sasl -libedit -mcve -mhash -mysqli -oci8 -oci8-instant-client -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz"

emerge --info =dev-lang/php-5.2.10
Portage 2.1.7.1 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.31-zen1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-zen1-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 26 Oct 2009 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests digest distlocks fail-clean fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.aditsu.net http://61.135.158.199 ftp://gentoo.anheng.com.cn/gentoo ftp://ftp.linuxsorum.net/gentoo http://mirror.gentoo.gr.jp http://mirror.vmmatrix.net/Gentoo ftp://gentoo.ccccom.com http://gentoo.ccccom.com ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN cs en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/emacs /usr/local/portage/layman/jokey /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi admin administrator adns afterimage aim alsa amarok amarok2 amr amrnb amrwb animation-rtl ao apache2 ares artworkextra asm aspell aspnet2 async asyncns audacious audio audit auto-completion automount bacula-console bash-completion bbdb beagle berkdb bindist bitdefender bl bluetooth branding bts bzip2 cairo cdr cjk cleartype clflush cli cmov consolekit corefonts cracklib crypt cups dbus device-mapper dhcp dhcpcd directfb dri dts dvb dvd dvdr dvi dvipdfm edit eds emacs emboss encode esd eselect est evo excel faad fam fastbuild fastcgi fasttrack fbcon fbcondecor fbdev fbsplash ffmpeg firefox firefox3 flac flash fontconfig fontforge fortran fuse fxsr gdbm gif git gkrellm gnome gnome-print gnomecanvas gnus gnutls gpm gps gstreamer gtk hal httpd i18n iconv imap injection inline innodb iproute2 ipv6 irda java java6 jpeg jpeg2k laptop ldap libnotify lvm lvm1 lvm2 mad madwifi mbox mca mikmod mime mimencode mixer mmx mmxext models modules mozilla mp3 mp3rtp mp3tunes mp4 mpeg mplayer msql mssql mtrr mudflap multiuser mysql ncurses net network networkmanager nfs nfsexport nfsv4 nls nptl nptlonly nsplugin ntfs nx odbc ogg opengl openmp openssl oracle overlays pam pango pbe pcf pcmcia pcre pda pdf perl pge php planner pm-utils png pop ppds pppd python quicktime quotas radio radius ramfs rar raw rc5 rdesktop react readline reflection reiser4 reiserfs remote resolvconf ropemacs rplay rpm rrdcgi rrdtool rsh rss rtc samba samba4 screen sdl sendmail server session snmp sound spell spl ss sse sse2 ssh ssl startup-notification subversion svg svga sysfs syslog tcpd tcpdump thinkpad threads thunar tiff tm tm2 tools truetype udev unicode unzip upnp usb vga voodoo1 voodoo2 voodoo3 voodoo5 vorbis win32codecs x264 x86 xfs xft xinetd xml xorg xulrunner xv xvid zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN cs en" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
发表于 2009-11-5 13:42:03 | 显示全部楼层
安装出现啥错误了,没有任何错误信息别人怎么帮你呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-5 16:25:37 | 显示全部楼层
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... /var/run/mysqld/mysqld.sock
checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock
checking for mysql_close in -lmysqlclient_r... no
checking for mysql_error in -lmysqlclient_r... no
configure: error: mysql configure failed. Please check config.log for more information.
* ERROR: dev-lang/php-5.2.11 failed:
*   configure failed
*
* Call stack:
*     ebuild.sh, line   49:  Called src_compile
*   environment, line 4644:  Called src_compile_fastbuild
*   environment, line 4696:  Called php5_2-sapi_src_compile
*   environment, line 3686:  Called die
* The specific snippet of code:
*       ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed";
*
* If you need support, post the output of 'emerge --info =dev-lang/php-5.2.11',
* the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.11'.
* The complete build log is located at '/var/log/portage/dev-lang:php-5.2.11:20091105-045633.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.11/temp/environment'.
* S: '/var/tmp/portage/dev-lang/php-5.2.11/work/php-5.2.11'
回复 支持 反对

使用道具 举报

发表于 2009-11-5 16:33:41 | 显示全部楼层
configure: error: mysql configure failed. Please check config.log for more information.

使用了mysql的USE,可是你的mysql没有安装好。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-5 16:56:28 | 显示全部楼层
mysql正常安装,能运行。
回复 支持 反对

使用道具 举报

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

本版积分规则

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