Fix this Sconstruct error
Posted: Wed Sep 23, 2009 10:32 am
I'm using Linux, I've downloaded the latest glob2-0.9.4.4.tar.gz and installed all dependencies listed in the official web site. But when tring to compile the source using typing 'scons'. It shows this error msg
scons: Reading SConscript files ...
NameError: global name 'AddOption' is not defined:
File "/home/user/Downs/pks/glob2-0.9.4.4/SConstruct", line 321:
main()
File "/home/user/Downs/pks/glob2-0.9.4.4/SConstruct", line 221:
AddOption('--portaudio',
A file called Sconstruct is in my source directory and in its line 220 to 236 shows this
def main():
AddOption('--portaudio',
dest='portaudio',
type='string',
nargs=1,
action='store',
metavar='portaudio',
help='should portaudio be used')
env = Environment()
try:
env.Clone()
except AttributeError:
env.Clone = env.Copy
if not env['CC']:
print "No compiler found in PATH. Please install gcc or another compiler."
Exit(1)
The line 321 only shows this:
main()
Should I edit this file for get away from this compile trouble. Or is there anything ?
PLease help me........
scons: Reading SConscript files ...
NameError: global name 'AddOption' is not defined:
File "/home/user/Downs/pks/glob2-0.9.4.4/SConstruct", line 321:
main()
File "/home/user/Downs/pks/glob2-0.9.4.4/SConstruct", line 221:
AddOption('--portaudio',
A file called Sconstruct is in my source directory and in its line 220 to 236 shows this
def main():
AddOption('--portaudio',
dest='portaudio',
type='string',
nargs=1,
action='store',
metavar='portaudio',
help='should portaudio be used')
env = Environment()
try:
env.Clone()
except AttributeError:
env.Clone = env.Copy
if not env['CC']:
print "No compiler found in PATH. Please install gcc or another compiler."
Exit(1)
The line 321 only shows this:
main()
Should I edit this file for get away from this compile trouble. Or is there anything ?
PLease help me........