[gentoo-user] env-update problem
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
Re: [gentoo-user] env-update problem
-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
Re: [gentoo-user] env-update problem
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