* [gentoo-user] env-update problem
@ 2006-03-04 22:45 Franta
2006-03-04 23:19 ` Zac Medico
0 siblings, 1 reply; 3+ messages in thread
From: Franta @ 2006-03-04 22:45 UTC (permalink / raw
To: gentoo-user
Hi,
I'm trying to install ORACLE on my box following the HOWTO on
gentoo-wiki.
After creating this /etc/env.d/99oracle:
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.1.0.3
ORACLE_SID=''MyDB''
ORACLE_TERM=xterm
ORACLE_OWNER=oracle
TNS_ADMIN=$ORACLE_HOME/network/admin
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
ORA_NLS10=$ORACLE_HOME/nls/data
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.zip
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
DISABLE_HUGETLBFS=1
PATH=$ORACLE_HOME/bin
ROOTPATH=$ORACLE_HOME/bin
LDPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
... I get this from env-update:
frankies env.d # env-update
!!! Invalid token (not "=") ORACLE_TERM
Traceback (most recent call last):
File "/usr/sbin/env-update", line 29, in ?
portage.env_update(makelinks)
File "/usr/lib/portage/pym/portage.py", line 561, in env_update
myconfig=getconfig(root+"etc/env.d/"+x)
File "/usr/lib/portage/pym/portage_util.py", line 257, in getconfig
raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/99oracle:
line 4 in /etc/env.d/99oracle
frankies env.d #
Can someone explain how to fix this?
Thanks in advance
Frank
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] env-update problem
2006-03-04 22:45 [gentoo-user] env-update problem Franta
@ 2006-03-04 23:19 ` Zac Medico
2006-03-05 20:36 ` Franta
0 siblings, 1 reply; 3+ messages in thread
From: Zac Medico @ 2006-03-04 23:19 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Franta wrote:
> Hi,
>
> I'm trying to install ORACLE on my box following the HOWTO on
> gentoo-wiki.
>
> After creating this /etc/env.d/99oracle:
>
> ORACLE_BASE=/opt/oracle
> ORACLE_HOME=$ORACLE_BASE/product/10.1.0.3
> ORACLE_SID=''MyDB''
It's choking on the '' characters in line 3 above. Apparently that doesn't work with python's shlex module that is used to parse the 99oracle file. For reference, here are the rules (portage uses non-POSIX mode):
http://docs.python.org/lib/shlex-parsing-rules.html
> ORACLE_TERM=xterm
> ORACLE_OWNER=oracle
> TNS_ADMIN=$ORACLE_HOME/network/admin
> NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
> ORA_NLS10=$ORACLE_HOME/nls/data
> CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.zip
> LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
> DISABLE_HUGETLBFS=1
> PATH=$ORACLE_HOME/bin
> ROOTPATH=$ORACLE_HOME/bin
> LDPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
>
> ... I get this from env-update:
>
> frankies env.d # env-update
> !!! Invalid token (not "=") ORACLE_TERM
> Traceback (most recent call last):
> File "/usr/sbin/env-update", line 29, in ?
> portage.env_update(makelinks)
> File "/usr/lib/portage/pym/portage.py", line 561, in env_update
> myconfig=getconfig(root+"etc/env.d/"+x)
> File "/usr/lib/portage/pym/portage_util.py", line 257, in getconfig
> raise e.__class__, str(e)+" in "+mycfg
> Exception: ParseError: Invalid token (not '='): /etc/env.d/99oracle:
> line 4 in /etc/env.d/99oracle
> frankies env.d #
Hmm, the actual problem is on line 3 but the parser complains about line 4 instead.
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFECiCS/ejvha5XGaMRApVpAJ9A09K78tGTDKGGeZaGvv3Mw7pykwCfac6X
zs5d0MULkX8C3tGlG3b6bzI=
=uIg9
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] env-update problem
2006-03-04 23:19 ` Zac Medico
@ 2006-03-05 20:36 ` Franta
0 siblings, 0 replies; 3+ messages in thread
From: Franta @ 2006-03-05 20:36 UTC (permalink / raw
To: gentoo-user
On Sat, 2006-03-04 at 15:19 -0800, Zac Medico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Franta wrote:
> > Hi,
> >
> > I'm trying to install ORACLE on my box following the HOWTO on
> > gentoo-wiki.
> >
> > After creating this /etc/env.d/99oracle:
> >
> > ORACLE_BASE=/opt/oracle
> > ORACLE_HOME=$ORACLE_BASE/product/10.1.0.3
> > ORACLE_SID=''MyDB''
>
> It's choking on the '' characters in line 3 above. Apparently that doesn't work with python's shlex module that is used to parse the 99oracle file. For reference, here are the rules (portage uses non-POSIX mode):
>
> http://docs.python.org/lib/shlex-parsing-rules.html
>
> > ORACLE_TERM=xterm
> > ORACLE_OWNER=oracle
> > TNS_ADMIN=$ORACLE_HOME/network/admin
> > NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
> > ORA_NLS10=$ORACLE_HOME/nls/data
> > CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.zip
> > LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
> > DISABLE_HUGETLBFS=1
> > PATH=$ORACLE_HOME/bin
> > ROOTPATH=$ORACLE_HOME/bin
> > LDPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
> >
> > ... I get this from env-update:
> >
> > frankies env.d # env-update
> > !!! Invalid token (not "=") ORACLE_TERM
> > Traceback (most recent call last):
> > File "/usr/sbin/env-update", line 29, in ?
> > portage.env_update(makelinks)
> > File "/usr/lib/portage/pym/portage.py", line 561, in env_update
> > myconfig=getconfig(root+"etc/env.d/"+x)
> > File "/usr/lib/portage/pym/portage_util.py", line 257, in getconfig
> > raise e.__class__, str(e)+" in "+mycfg
> > Exception: ParseError: Invalid token (not '='): /etc/env.d/99oracle:
> > line 4 in /etc/env.d/99oracle
> > frankies env.d #
>
> Hmm, the actual problem is on line 3 but the parser complains about line 4 instead.
>
> Zac
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (GNU/Linux)
>
> iD8DBQFECiCS/ejvha5XGaMRApVpAJ9A09K78tGTDKGGeZaGvv3Mw7pykwCfac6X
> zs5d0MULkX8C3tGlG3b6bzI=
> =uIg9
> -----END PGP SIGNATURE-----
Whoops, I dunno which devil was riding me to let these apastrophes
there.
Thanks
Frank
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-05 20:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 22:45 [gentoo-user] env-update problem Franta
2006-03-04 23:19 ` Zac Medico
2006-03-05 20:36 ` Franta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox