[rsf-devel] ./configure command not functioning properly with reinstalling Madagsascar

1 view
Skip to first unread message

Luke Decker

unread,
Sep 24, 2018, 3:06:57 PM9/24/18
to rsf-...@lists.sourceforge.net
I am attempting to update my Madagascar installation on both my MacOS laptop and Linux Workstation, and oddly am running into the same error when I attempt to execute ./configure —prefix=$RSFROOT :

Here is the Linux output:

[luke@osiris RSFSRC]$ ./configure --prefix=$RSFROOT
checking for Python ... /usr/bin/python
checking Python version ... 2.7.5
checking for RSFROOT ... /workspace/luke/madagascar
checking for SCons ... /usr/bin/scons
checking SCons version ... v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668
Running RSFROOT=/workspace/luke/madagascar /usr/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 "/h1/luke/RSFSRC/SConstruct", line 37:
    conf.CheckAll()
  File "/usr/lib/python2.7/site-packages/SCons/SConf.py", line 659:
    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.
[luke@osiris RSFSRC]$ 


And here is the MacOS output:

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
Reply all
Reply to author
Forward
0 new messages