[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4779: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4781: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4782: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4783: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Gentoo Taiwan 討論區 • 檢視主題 - 安裝gcc-3.4.3及emerge mod_php的問題?

安裝gcc-3.4.3及emerge mod_php的問題?

什麼?Gentoo 裝不起來?核心怎麼編?安裝失敗等問題?來這裡求救吧!

版主: Forums Team

安裝gcc-3.4.3及emerge mod_php的問題?

文章orscar » 週三 11月 17, 2004 7:34 pm

orscar
 

Re: 安裝gcc-3.4.3及emerge mod_php的問題?

文章oai79 » 週三 11月 17, 2004 9:18 pm

disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章orscar » 週四 11月 18, 2004 12:55 pm

1是要改 ~ 沒錯
這是我/etc/skel/.bashrc檔案內容,能否告知改何處.
# /etc/skel/.bashrc:
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.10 2004/09/29 04:13:33 agriffis Exp $
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.


# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]]; then
# Shell is non-interactive. Be done now
return
fi

# Shell is interactive. It is okay to produce output at this point,
# though this example doesn't produce any. Do setup for
# command-line interactivity.

# colors for ls, etc. Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
eval `dircolors -b ~/.dir_colors`
else
eval `dircolors -b /etc/DIR_COLORS`
fi
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac

# uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion

第2部份又出現新的訊息
linux-2.6.9 # emerge mod_php
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/mod_php-5.0.2 to /
>>> md5 src_uri ;-) php-5.0.2.tar.bz2
>>> Unpacking source...
* Apache2 only detected
>>> Unpacking php-5.0.2.tar.bz2 to /var/tmp/portage/mod_php-5.0.2/work
* Applying php5_soap_persistence_session.diff ... [ ok ]
* Applying uClibc/libtool patches ...
* Fixing ${S}/configure ... [ ok ]
>>> Source unpacked.
* Apache2 MPM: prefork

* USE flag 'berkdb' needs these additional flag(s) set:
* dba
*
* You can do this by enabling these flags in /etc/portage/package.use:
* =dev-php/mod_php-5.0.2 dba
*
* You could disable this flag instead in /etc/portage/package.use:
* =dev-php/mod_php-5.0.2 -berkdb


!!! ERROR: dev-php/mod_php-5.0.2 failed.
!!! Function confutils_use_depend_all, Line 117, Exitcode 0
!!! Need missing USE flags
!!! If you need support, post the topmost build error, NOT this status message.
謝謝.
orscar
 

Re: 安裝gcc-3.4.3及emerge mod_php的問題?

文章oai79 » 週四 11月 18, 2004 2:17 pm

disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

Re: 安裝gcc-3.4.3及emerge mod_php的問題?

文章orscar » 週四 11月 18, 2004 4:59 pm

orscar
 

文章oai79 » 週五 11月 19, 2004 5:58 pm

disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章orscar » 週五 11月 19, 2004 6:57 pm

這是我的profile檔的內容
謝謝了.
# /etc/profile:
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.27 2004/10/16 06:13:26 vapier Exp $
#
# That this file is used by any Bourne-shell derivative to setup the
# environment for login shells.

# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
if [ -e "/etc/profile.env" ]; then
. /etc/profile.env
fi

# 077 would be more secure, but 022 is generally quite realistic
umask 022

# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the
# user's PATH to pollute the executable namespace.
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [ "$EUID" = 0 ] || [ "`/bin/whoami`" = 'root' ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH

# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR

if [ -n "${BASH_VERSION}" ]; then
# Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
# including color. We leave out color here because not all
# terminals support it.
if [ -f /etc/bash/bashrc ]; then
# Bash login shells run only /etc/profile
# Bash non-login shells run only /etc/bash/bashrc
# Since we want to run /etc/bash/bashrc always we source it
# from here. It is unfortunate that there is no way to do
# this *after* the user's .bash_profile runs (without putting
# it in the user's dot-files), but it shouldn't make any
# difference.
. /etc/bash/bashrc
else
PS1='\u@\h\w\$'
fi
else
# Setup a bland default prompt. Since this prompt should be useable
# on color and non-color terminals, as well as shells that don't
# understand sequences such as \h, don't put anything special in it.
PS1="`whoami`@`uname -n | cut -f1 -d.` \$ "
fi
orscar
 

文章oai79 » 週五 11月 19, 2004 7:47 pm

改 PS1 那一行,把小寫 w 改成大寫 W 應該就可以了。

如果你對 prompt 有興趣,或是想知道上面這樣改的理由,說的很清楚唷。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章oai79 » 週五 11月 19, 2004 7:51 pm

又看一下,請確定 root 走的是我說的那行。因為你貼的格式不太好看對應的 if-fi,不過應該沒錯。反正就是要改 root 會走到的 PS1。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章orscar » 週六 11月 20, 2004 1:54 pm

對不起改了還是不行.它好像會去讀/etc/bash/bashrc 這個檔.以下是這個檔的內容.謝謝了.

# /etc/bash.bashrc:
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/bashrc,v 1.5 2004/09/28 11:50:23 agriffis Exp $
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.


# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]]; then
# Shell is non-interactive. Be done now
return
fi

# Bash won't get SIGWINCH if another process is in the foreground.
# Enable checkwinsize so that bash will check the terminal size when
# it regains control. #65623
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
shopt -s checkwinsize

# Set colorful PS1 only on colorful terminals.
# dircolors --print-database uses its own built-in database
# instead of using /etc/DIR_COLORS. Try to use the external file
# first to take advantage of user additions.
use_color=false
safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM

if [[ -f /etc/DIR_COLORS ]]; then
grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true
elif dircolors --print-database | grep -q "^TERM ${safe_term}"; then
use_color=true
fi

if ${use_color}; then
if [[ $EUID == 0 ]]; then
PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
else
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
fi
else
if [[ $EUID == 0 ]]; then
# show root@ when we don't have colors
PS1='\u@\h \W \$ '
else
PS1='\u@\h \w \$ '
fi
fi
orscar
 

文章oai79 » 週六 11月 20, 2004 2:12 pm

你現在是要改 root,還是一般使用者呢? root 的 prompt 還有問題嗎?因為照我看來,root 的 prompt 應該正常了,但是一般使用者的 prompt 還是使用小寫的 w。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章orscar » 週六 11月 20, 2004 3:47 pm

orscar
 

文章oai79 » 週六 11月 20, 2004 6:19 pm

disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

文章orscar » 週六 11月 20, 2004 8:12 pm

orscar
 

文章oai79 » 週六 11月 20, 2004 8:46 pm

disagreeing is much more fun than agreeing when backed up with thoughtful responses
頭像
oai79
 
文章: 351
註冊時間: 週二 6月 17, 2003 7:59 pm

下一頁

回到 Gentoo 安裝

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 18 位訪客

cron