I seem to be having an issue building nloptr during the R build. I am using the R-3.3.1 with foss 2016. Any ideas how to fix this problem.
== installing extension GGally 1.2.0 (291/414)... == installing extension beanplot 1.2 (292/414)... == installing extension clValid 0.6-6 (293/414)... == installing extension matrixStats 0.50.2 (294/414)... == installing extension DiscriMiner 0.1-29 (295/414)... == installing extension ellipse 0.3-8 (296/414)... == installing extension leaps 2.9 (297/414)... == installing extension nloptr 1.0.4 (298/414)... == FAILED: Installation ended unsuccessfully (build directory: /nfs/grid/software/RHEL7-BUILD/easybuild/build/R/3.3.1/foss-2016.03): build failed (first 300 chars): cmd "R CMD INSTALL /nfs/grid/software/RHEL7-BUILD/easybuild/sources/r/R/extensions/nloptr_1.0.4.tar.gz --library=/nfs/grid/software/testing/RHEL7/easybuild/software/MPI/GCC/5.4.0-2.27/OpenMPI/2.0.0/R/3.3.1/lib64/R/library --no-clean-on-error" exited with exitcode 1 and output: * installing *source == Results of the build can be found in the log file(s) /tmp/eb-xzY7sj/easybuild-R-3.3.1-20170310.173552.YPJPA.log.1, /tmp/eb-xzY7sj/easybuild-R-3.3.1-20170310.173552.YPJPA.log ERROR: Build of /hpc/hpcswadm/easybuild/R/R-3.3.1-foss-2016.03.eb failed (err: 'build failed (first 300 chars): cmd "R CMD INSTALL /nfs/grid/software/RHEL7-BUILD/easybuild/sources/r/R/extensions/nloptr_1.0.4.tar.gz --library=/nfs/grid/software/testing/RHEL7/easybuild/software/MPI/GCC/5.4.0-2.27/OpenMPI/2.0.0/R/3.3.1/lib64/R/library --no-clean-on-error" exited with exitcode 1 and output:\n* installing *source') The log file suggest the following. e/Compiler/GCC/5.4.0-2.27/GMP/6.1.1/include -I/tmp/eb-xzY7sj/RtmpXxtxZL/R.INSTALL2f5e896ff82975/nloptr/nlopt-2.4.2/include -fpic -O2 -march=native -c nloptr.c -o nloptr.o nloptr.c:42:19: fatal error: nlopt.h: No such file or directory compilation terminated. make: *** [nloptr.o] Error 1 ERROR: compilation failed for package 'nloptr' (at easybuild/software/Core/EasyBuild/3.1.1/lib/python2.7/site-packages/easybuild_framework-3.1.1-py2.7.egg/easybuild/tools/run.py:446 in parse_cmd_output) == 2017-03-10 18:30:22,017 easyblock.py:2520 WARNING build failed (first 300 chars): cmd "R CMD INSTALL /nfs/grid/software/RHEL7-BUILD/easybuild/sources/r/R/extensions/nloptr_1.0.4.tar.gz --library=/nfs/grid/software/testing/RHEL7/easybuild/software/MPI/GCC/5.4.0-2.27/OpenMPI/2.0.0/R/3.3.1/lib64/R/library --no-clean-on-error" exited with exitcode 1 and output: * installing *source == 2017-03-10 18:30:22,018 easyblock.py:276 INFO Closing log for application name R version 3.3.1 Shahzeb Siddiqui HPC Linux Engineer B2220-447.2 Groton, CT