Loris Bennett <[email protected]> writes: > Loris Bennett <[email protected]> writes: > >> Loris Bennett <[email protected]> writes: >> >>> Hi, >>> >>> In order to install CPLEX 12.10 have modified the existing EC for CPLEX >>> 12.9 to the following: >>> >>> name = 'CPLEX' >>> version = '12.10' >>> >>> homepage = 'https://www.ibm.com/analytics/cplex-optimizer' >>> description = """IBM ILOG CPLEX Optimizer's mathematical programming >>> technology enables >>> analytical decision support for improving efficiency, >>> reducing costs, and increasing profitability.""" >>> >>> toolchain = {'name': 'GCCcore', 'version': '8.2.0'} >>> >>> # the Academic Initiative version (as used in this file) can be >>> downloaded as described on >>> # >>> https://www.ibm.com/developerworks/community/blogs/jfp/entry/cplex_studio_in_ibm_academic_initiative?lang=en >>> # a restricted "Community edition" version can be found on >>> # >>> https://www-01.ibm.com/software/websphere/products/optimization/cplex-studio-community-edition/ >>> sources = ['cplex_studio%s.linux-x86-64.bin' % >>> ''.join(version.split('.'))] >>> checksums = >>> ['cd530eb9c6d446bd18b5dc5a3d61070bfad92c3efd6565d2d8e31a2acfb496f7'] >>> >>> multi_deps = {'Python': ['3.7.2', '2.7.15']} >>> >>> builddependencies = [('binutils', '2.31.1')] >>> >>> dependencies = [ >>> ('Java', '1.8', '', True), >>> ] >>> >>> moduleclass = 'math' >>> >>> However, this fails with the following error: >>> >>> = 2020-01-28 13:53:05,319 build_log.py:169 ERROR EasyBuild crashed with >>> an error (at >>> easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/base/exceptions.py:124 >>> in __init__): run_cmd_qa: cmd >>> /trinity/shared/easybuild/build/CPLEX/12.10/GCCcore-8.2.0/cplex_studio1210.linux-x86-64.bin >>> -i console : Max nohits 50 reached: end of output >>> ybuild/software/CPLEX/12.10-GCCcore-8.2.0/python/setup.py >>> install >>> >>>>>> >>> >>> PRESS <ENTER> TO CONTINUE: >>> >>> >>> >>> ==============================================================================> >>> Improve the product >>> ------------------- >>> >>> Do you agree to let IBM collect product usage data (including >>> installation, >>> starting the IDE, creating a model, solving it) to improve your user >>> experience? >>> >>> No model content or proprietary data will be sent. >>> >>> 1- Yes >>> 2- No >>> >>> ENTER THE NUMBER OF THE DESIRED CHOICE: (at >>> easybuild/software/EasyBuild/4.1.1/lib/python2.7/site-packages/easybuild/tools/run.py:471 >>> in run_cmd_qa) >>> == 2020-01-28 13:53:05,320 easyblock.py:3109 WARNING build failed (first >>> 300 >>> chars): run_cmd_qa: cmd >>> /trinity/shared/easybuild/build/CPLEX/12.10/GCCcore-8.2.0/cplex_studio1210.linux-x86-64.bin >>> -i console : Max nohits 50 reached: end of output >>> ybuild/software/CPLEX/12.10-GCCcore-8.2.0/python/setup.py >>> install >>> >>>>>> >>> >>> PRESS <ENTER> TO CONTINUE: >>> >>> How can I pass a value to the install script in this case? >> >> Looking at the easyblock for CPLEX here >> >> >> https://github.com/easybuilders/easybuild-easyblocks/blob/4.1.x/easybuild/easyblocks/c/cplex.py >> >> I see there is already some handling for the interactive installer. >> >> Do I just need to add the entry >> >> 'PRESS <ENTER> TO CONTINUE': '' >> >> to the 'qanda' dictionary? > > D'oh. I see that this entry already exists. > > Any ideas what the problem is then?
The entry that is actually missing is 'ENTER THE NUMBER OF THE DESIRED CHOICE:': '2', With this the install step completes. Now just the sanity check is failing :-/ Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email [email protected]

