[gentoo-user] env-update does not add to path

2005-01-27 Thread Martin L . Sage
I am running 2.6.10-gentoo-r6 on a Pentium-4 PC and cannot get certain 
directories added to the path.  I follow the instructions in Chapter 5
of the Gentoo Handbook.  That is I create a file in the directory
[b]/etc/env.d[/b] with the additions I want for environment variables,
run [color=green]env-update && source /etc/profile[/color].  My only
problem is getting items added to the [i]path[/i].  New environment variables
appear and directories get added to the [i]manpath[/i].  The new item for the
[i]path[/i] appear in [b]/etc/profile.env{/b] but do not get added when
[color=green]source /etc/profile[/color] is run (or when a new shell is
opened, or the machine is rebooted, hot or cold).  I appear to be using
the same format that is used by [i]java[/i].

The following two files in [b]/etc/env.d[/b] show what I mean.

[b]20java[/b]

# Autogenerated by java-config
# Command: --set-system-vm=blackdown-jdk-1.4.2.01
JDK_HOME=/opt/blackdown-jdk-1.4.2.01
JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
PATH="/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin"
ROOTPATH="/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin"
LDPATH="/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/:/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads/:/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/classic/"
# VERSION="Blackdown JDK 1.4.2.01"
MANPATH=${MANPATH}:/opt/blackdown-jdk-1.4.2.01/man
JAVA_HOME=/opt/blackdown-jdk-1.4.2.01

[b]95maple[/b]

MAPLE="/usr/local/maple95"
PATH="$MAPLE/bin"  #using the full path makes no difference
MANPATH="$MAPLE/man"


After running [color=green]env-update[/color] the following file occurs:

[b]/etc/profile.env[/b]

# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env

export INFODIR='/usr/share/info'
export 
INFOPATH='/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info'
export CONFIG_PROTECT_MASK='/etc/gconf /etc/terminfo'
export CLASSPATH='.'
export 
ROOTPATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin'
export CONFIG_PROTECT='/usr/lib/mozilla/defaults/pref /usr/X11R6/lib/X11/xkb 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ 
/usr/share/texmf/xdvi/'
export 
MANPATH='/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man:/usr/share/man::/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man:/usr/local/maple95/man'
export 
PATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/local/maple95/bin:/usr/local/psl/bin/Linux'
export LESS='-R'
export GUILE_LOAD_PATH='/usr/share/guile/1.6'
export pxu='/usr/local/psl/dist/util/Linux'
export LESSOPEN='|lesspipe.sh %s'
export pxk='/usr/local/psl/dist/kernel/Linux'
export CVS_RSH='ssh'
export pxc='/usr/local/psl/dist/comp/Linux'
export QTDIR='/usr/qt/3'
export pll='/usr/local/psl/local/lap/Linux'
export JDK_HOME='/opt/blackdown-jdk-1.4.2.01'
export pu='/usr/local/psl/dist/util'
export psys='/usr/local/psl/bin/Linux'
export G_BROKEN_FILENAMES='1'
export plcl='/usr/local/psl/local'
export QMAKESPEC='linux-g++'
export pxnk='/usr/local/psl/dist/nonkernel/Linux'
export pdist='/usr/local/psl/dist/distrib'
export pk='/usr/local/psl/dist/kernel'
export JAVA_HOME='/opt/blackdown-jdk-1.4.2.01'
export pl='/usr/local/psl/dist/lap/Linux'
export psl='/usr/local/psl/dist'
export GCC_SPECS=''
export pnk='/usr/local/psl/dist/nonkernel'
export pnkl='/usr/local/psl/dist/nonkernel/Linux/lap'
export XINITRC='/etc/X11/xinit/xinitrc'
export MOZILLA_FIVE_HOME='/usr/lib/mozilla'
export pc='/usr/local/psl/dist/comp'
export JAVAC='/opt/blackdown-jdk-1.4.2.01/bin/javac'
export GDK_USE_XFT='1'
export HOSTNAME='sage'
export proot='/usr/local/psl'
export MAPLE='/usr/local/maple95'
export PAGER='/usr/bin/less'
export PYTHONDOCS='/usr/share/doc/python-docs-2.3.4/html'
export pxdist='/usr/local/psl/dist/distrib/Linux'

and [color=green]set[/color] yields

BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" 
[5]="i686-pc-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
CLASSPATH=.
COLORTERM=gnome-terminal
COLUMNS=80
CONFIG_PROTECT='/usr/lib/mozilla/defaults/pref /usr/X11R6/lib/X11/xkb 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ 
/usr/share/texmf/xdvi/'
CONFIG_PROTECT_MASK='/etc/gconf /etc/terminfo'
CVS_RSH=ssh
DIRSTACK=()
DISPLAY=:0.0
EDITOR=/usr/bin/emacs
EUID=0
GCC_SPECS=
GDK_USE_XFT=1
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-1A9yro/socket
GROUPS=()
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
GUILE_LOAD_PATH=/usr/share/guile/1.6
G_BROKEN_FILENAMES=1
HISTFILE=/root/.bash_history

Re: [gentoo-user] env-update

2003-10-30 Thread Joshua Banks

--- Vincent Schut <[EMAIL PROTECTED]> wrote:
> On 2003.10.30 15:56, Mark Knecht wrote:
> > >
> > > my /etc/make.conf
> > >
> > > CHOST="i686-pc-linux-gnu"
> > > CFLAGS="-O3 -march=athlon-xp -pipe"
> > 
> > Is this 'capital O'3 or 'zero'3?
> 
> It's capital O.

This happend to me before and it was because open space after a " quote when there 
shouldn't of
been a space.  I also made the mistake of using a \ instead of / in the same editing 
session with
the mistake above and took forever to figure it out.. 

HTH's

JBanks

JBanks 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] env-update

2003-10-30 Thread Ryan
cool thanks there was a / at the begining of the file


On Thu, 30 Oct 2003 09:01:42 -0600
"Van Eps, Nathan D. (James Tower)" <[EMAIL PROTECTED]> wrote:

> Check that the (non-comment) line before "CHOST" has a ending double quote
> on it.
> 
> >-Original Message-
> >From: Ryan [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, October 30, 2003 8:10 AM
> >To: gentoouser
> >Subject: [gentoo-user] env-update
> >
> >
> >howdie all
> >
> >i am busy doing a stage 1 install i have just chrooted and 
> >edited my make.conf file but now when i type env-update 
> >
> >i get this error 
> >
> >!!! Invalid token (not "=") CHOST
> >!!! Parse error in /etc/make.conf.
> >!!! Incorrect multiline literals can cause this. Do not use them.
> >
> >my /etc/make.conf
> >
> >CHOST="i686-pc-linux-gnu"
> >CFLAGS="-O3 -march=athlon-xp -pipe"
> >CXXFLAGS="${CFLAGS}"
> >
> >when i hash CHOST out then i moans about CFLAGS
> >
> >any ideas thanks
> >
> >ryan
> >
> >--
> >[EMAIL PROTECTED] mailing list
> >
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] env-update

2003-10-30 Thread mathieu
Le Jeudi 30 Octobre 2003 15:56, Mark Knecht a écrit :
> > my /etc/make.conf
> >
> > CHOST="i686-pc-linux-gnu"
> > CFLAGS="-O3 -march=athlon-xp -pipe"
> > CXXFLAGS="${CFLAGS}"
> >
> > when i hash CHOST out then i moans about CFLAGS
> >
> > any ideas thanks

in parsing, when you've got an error on line N that doesn't go away when you 
take like N away, the error comes from above. What do you've got above this 
line in your make.conf?
Check for an open quote that hasn't been closed.

-- 
mathieu perrenoud

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] env-update

2003-10-30 Thread Vincent Schut
On 2003.10.30 15:56, Mark Knecht wrote:
>
> my /etc/make.conf
>
> CHOST="i686-pc-linux-gnu"
> CFLAGS="-O3 -march=athlon-xp -pipe"
Is this 'capital O'3 or 'zero'3?
It's capital O.

Cheers,
Vincent.
--
[EMAIL PROTECTED] mailing list


RE: [gentoo-user] env-update

2003-10-30 Thread Van Eps, Nathan D. (James Tower)
Check that the (non-comment) line before "CHOST" has a ending double quote
on it.

>-Original Message-
>From: Ryan [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 30, 2003 8:10 AM
>To: gentoouser
>Subject: [gentoo-user] env-update
>
>
>howdie all
>
>i am busy doing a stage 1 install i have just chrooted and 
>edited my make.conf file but now when i type env-update 
>
>i get this error 
>
>!!! Invalid token (not "=") CHOST
>!!! Parse error in /etc/make.conf.
>!!! Incorrect multiline literals can cause this. Do not use them.
>
>my /etc/make.conf
>
>CHOST="i686-pc-linux-gnu"
>CFLAGS="-O3 -march=athlon-xp -pipe"
>CXXFLAGS="${CFLAGS}"
>
>when i hash CHOST out then i moans about CFLAGS
>
>any ideas thanks
>
>ryan
>
>--
>[EMAIL PROTECTED] mailing list
>

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] env-update

2003-10-30 Thread Mark Knecht
> 
> my /etc/make.conf
> 
> CHOST="i686-pc-linux-gnu"
> CFLAGS="-O3 -march=athlon-xp -pipe"

Is this 'capital O'3 or 'zero'3?

(try the other!) ;-)

- Mark

> CXXFLAGS="${CFLAGS}"
> 
> when i hash CHOST out then i moans about CFLAGS
> 
> any ideas thanks
> 
> ryan
> 
> --
> [EMAIL PROTECTED] mailing list
> 
> 


--
[EMAIL PROTECTED] mailing list



[gentoo-user] env-update

2003-10-30 Thread Ryan
howdie all

i am busy doing a stage 1 install i have just chrooted and edited my make.conf file 
but now when i type env-update 

i get this error 

!!! Invalid token (not "=") CHOST
!!! Parse error in /etc/make.conf.
!!! Incorrect multiline literals can cause this. Do not use them.

my /etc/make.conf

CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe"
CXXFLAGS="${CFLAGS}"

when i hash CHOST out then i moans about CFLAGS

any ideas thanks

ryan

--
[EMAIL PROTECTED] mailing list



[gentoo-user] env-update broken

2003-10-19 Thread Peter Vertes




Hi All,

    I've emerged glibc, python and portage and now I can't perform an env-update anymore.  When I try I get the following error message on the screen:

[EMAIL PROTECTED] root # env-update
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
awk: cmd. line:1: (FILENAME=/etc/init.d/xfs FNR=296) warning: error writing standard output (Broken pipe)

    Is anyone else getting getting this ?  How could I go about fixing this and having my files updated ?  Thanks in advance...

-Pete




-- 
perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'








signature.asc
Description: This is a digitally signed message part


[gentoo-user] env-update broken

2003-10-16 Thread Peter Vertes




Hello All,

    Yesterday I've emerged glibc, python and portage and now I can't preform an env-update anymore.  When I try it I get this on the screen:

[EMAIL PROTECTED] root # env-update
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
awk: cmd. line:1: (FILENAME=/etc/init.d/xfs FNR=296) warning: error writing standard output (Broken pipe)

and none of my files get updated.  Anyone have any suggestions on how to fix this ?

-Pete




-- 
perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'








[gentoo-user] env-update repair

2003-02-26 Thread Denis Shcherbakov

Hi, all,

Don't ask me why, but I need to "undo" the results of executing
env-update on my gentoo box - is there a way to do this??

I went in to repair something from the CD, and by accident, I used
env-update command in the chrooted shell.  Now, when I boot up the
machine, it has no information about users or passwords or whatever, gives
me the wrong greeter (xdm instead of gdm), and other things like that.

Now can I fix all these things without doing a clean re-install??

Thanks for any help!
Denis


--
[EMAIL PROTECTED] mailing list