wireless-10-145-144-208:RSFSRC luke$ ./configure --prefix=$RSFROOT
checking for Python ... /usr/local/bin/python
checking Python version ... 2.7.15
checking for RSFROOT ... /Users/luke/madagascar
checking for SCons ... /opt/local/bin/scons
checking SCons version ... v2.5.1.rel_2.5.1:3735:9dc6cee5c168[MODIFIED]
Running RSFROOT=/Users/luke/madagascar /opt/local/bin/scons config ...
------------------------
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "./framework/configure.py", line 2317, in options
checking platform ... (cached) yes
checking for C compiler ... (cached) gcc
checking if gcc works ... yes
checking if gcc accepts '-x c -std=gnu99 -Wall -pedantic' ... yes
NameError: global name 'commands' is not defined:
File "/Users/luke/RSFSRC/SConstruct", line 37:
conf.CheckAll()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.5.1/SCons/SConf.py", line 658:
ret = self.test(context, *args, **kw)
File "./framework/configure.py", line 106:
cc (context)
File "./framework/configure.py", line 265:
(status,lfs) = commands.getstatusoutput('getconf LFS_CFLAGS')
------------------------
Done with configuration.
wireless-10-145-144-208:RSFSRC Luke$
The error seems to be caused by “commands” no longer being defined. Any advice on how to solve this problem would be greatly appreciated!
Thanks,
Luke