TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hallvard B Furuseth h.b.furuseth at usit.uio.no
Mon Aug 30 21:31:10 CEST 2004


[Brett C.]
> Set your environment 'CC' environment variable to gcc and it should go
> away.

[Martin Koekenberg]

How do I set this environmet variable ??
I don't have a lot of linux experience ;-)

[Brett C.]

> For Bourne-style shells (BASH, ZSH, etc.) ``export CC=gcc`` will do it
> for the current shell (won't save it for future use, that requires
> setting it in your shell's config file.

Nitpick: That works for bash and zsh - and therefore for Martin, since
he uses Linux - but not for plain non-Linux Bourne 'sh'.  The portable
Bourne way is

  CC=gcc; export CC

> For CSH style I think it is ``setenv CC gcc`` but I am not sure.

That's right.

And the standard way which works for both Bourne and CSH style, but for
just one command at a time (in this case ./configure), is

  env CC=gcc ./configure

-- 
Hallvard



More information about the Python-list mailing list