SCIP - can't map file, errno=22 - compilation

I'm trying to install last version of scip from its official website to use Normaliz on Mac OS X. But , I get the error,
ld: can't map file, errno=22 file './/lib/static/libsoplex.darwin.x86_64.gnu.opt.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build failed with GMP=true: if GMP is not available, try building with GMP=false (note that this will deactivate Zimpl support)
and When I compile it again I get
Soners-MacBook-Pro:scip-3.2.0 soner$ make ZLIB=false GMP=false READLINE=false
/Users/soner/Documents/scip-3.2.0/make/make.project:329: ZIMPL was deactived because of missing GMP support.
-> linking bin/scip-3.2.0.darwin.x86_64.gnu.opt.spx
ld: can't map file, errno=22 file 'lib/libsoplex.darwin.x86_64.gnu.opt.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build failed with GMP=false and LPS=spx: use GMP=true or make sure that SoPlex is also built without GMP support (make GMP=false)
I tried like make ZLIB=false GMP=true READLINE=false. Even same with GMP=true.
How can I install it successively?
#Edit, verbose result is on the link.
Soplex 3.0 - make - terminal run and output:
Soners-MacBook-Pro:soplex-3.0.0 soner$ make COMP=gnu GMP=false
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/changesoplex.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/enter.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/gzstream.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/leave.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/ratrecon.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solvedbds.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solverational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solvereal.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/soplex.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/soplexlegacy.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxautopr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxbasis.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxboundflippingrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxbounds.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxchangebasis.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdantzigpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdefaultrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdesc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdevexpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxequilisc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxleastsqsc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxfastrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxfileio.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxgeometsc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxharrisrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxhybridpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxlpbase_rational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxlpbase_real.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxmainsm.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxparmultpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxquality.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxscaler.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxshift.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsolve.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsolver.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxstarter.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsteeppr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsumst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxvecs.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxvectorst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxweightpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxweightst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxwritestate.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/statistics.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/testsoplex.o
-> generating library lib/libsoplex-3.0.0.darwin.x86_64.gnu.opt.a
-> compiling obj/O.darwin.x86_64.gnu.opt/bin/soplexmain.o
-> linking bin/soplex-3.0.0.darwin.x86_64.gnu.opt
Soners-MacBook-Pro:soplex-3.0.0 soner$
Soplex 3.0 - sudo -s make install INSTALLDIR=/usr/local result,
Soners-MacBook-Pro:soplex-3.0.0 soner$ sudo -s make install INSTALLDIR=/usr/local
Password:
-> install SoPlex headers into INSTALLDIR </usr/local>
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/changesoplex.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/clufactor.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/clufactor_rational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/enter.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/leave.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/rational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/ratrecon.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/slufactor.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solvedbds.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/slufactor_rational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solverational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/solvereal.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/soplex.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/soplexlegacy.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxautopr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxbasis.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxboundflippingrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxbounds.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxchangebasis.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdantzigpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdefaultrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdesc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxdevexpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxequilisc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxleastsqsc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxfastrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxfileio.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxgeometsc.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxharrisrt.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxhybridpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxlpbase_rational.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxlpbase_real.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxmainsm.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxparmultpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxquality.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxscaler.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxshift.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsolve.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsolver.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxstarter.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsteeppr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxsumst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxvecs.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxvectorst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxweightpr.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxweightst.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/spxwritestate.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/statistics.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/updatevector.o
-> compiling obj/O.darwin.x86_64.gnu.opt/lib/testsoplex.o
-> generating library lib/libsoplex-3.0.0.darwin.x86_64.gnu.opt.a
-> compiling obj/O.darwin.x86_64.gnu.opt/bin/soplexmain.o
-> linking bin/soplex-3.0.0.darwin.x86_64.gnu.opt
-> install SoPlex libraries into INSTALLDIR </usr/local>
-> install SoPlex binary into INSTALLDIR </usr/local>
Soners-MacBook-Pro:soplex-3.0.0 soner$
Scip 4.0 error on terminal
Soners-MacBook-Pro:scip-4.0.1 soner$ make ZLIB=false READLINE=false GMP=false
make/make.project:481: ZIMPL was deactived because of missing GMP support.
-> generating necessary links
- Current settings: LPS=spx2 OSTYPE=darwin ARCH=x86_64 COMP=gnu SHARED=false SUFFIX= ZIMPL=false ZIMPLOPT=opt IPOPT=false IPOPTOPT=opt EXPRINT=cppad GAMS=false
* SCIP needs some softlinks to external programs, in particular, LP-solvers.
* Please insert the paths to the corresponding directories/libraries below.
* The links will be installed in the 'lib/include' and 'lib/static' directories.
* For more information and if you experience problems see the INSTALL file.
-> "spxinc" is the path to the SoPlex "src" directory, e.g., "<SoPlex-path>/src".
-> "libsoplex.*" is the path to the SoPlex library, e.g., "<SoPlex-path>/lib/libsoplex.linux.x86.gnu.opt.a"
> Enter soft-link target file or directory for "lib/include/spxinc" (return if not needed):
> /usr/local
-> creating softlink "lib/include/spxinc" -> "/usr/local"
> Enter soft-link target file or directory for "lib/static/libsoplex.darwin.x86_64.gnu.opt.a" (return if not needed):
> /usr/local
-> creating softlink "lib/static/libsoplex.darwin.x86_64.gnu.opt.a" -> "/usr/local"
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_allfullstrong.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_cloud.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_distribution.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_fullstrong.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_inference.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_leastinf.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_mostinf.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_multaggr.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_nodereopt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_pscost.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_random.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch_relpscost.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_abspower.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/compr_largestrepr.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/compr_weakcompr.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/concsolver_scip.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_and.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_bivariate.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_bounddisjunction.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_cardinality.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_conjunction.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_countsols.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_cumulative.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_disjunction.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_indicator.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_integral.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_knapsack.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_linear.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_linking.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_logicor.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_nonlinear.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_or.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_orbitope.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_pseudoboolean.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_quadratic.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_setppc.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_soc.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_sos1.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_sos2.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_superindicator.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_varbound.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_xor.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons_components.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/dialog_default.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/event_softtimelimit.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/disp_default.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/event_solvingphase.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_sync.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/event_globalbnd.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_sync.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_actconsdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_bound.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_clique.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_coefdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_completesol.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_crossover.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_dins.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_distributiondiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_dualval.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_feaspump.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_fixandinfer.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_fracdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_gins.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_guideddiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_indicator.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_intdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_intshifting.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_linesearchdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_localbranching.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_lpface.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_locks.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_mutation.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_multistart.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_nlpdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_objpscostdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_octane.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_ofins.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_oneopt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_proximity.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_pscostdiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_reoptsols.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_repair.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_randrounding.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_rens.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_rins.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_rootsoldiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_rounding.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_shiftandpropagate.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_shifting.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_simplerounding.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_subnlp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_trivial.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_trivialnegation.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_trysol.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_twoopt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_undercover.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_vbounds.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_veclendiving.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_zeroobj.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur_zirounding.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/message_default.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_bfs.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_breadthfirst.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_dfs.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_estimate.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_hybridestim.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_restartdfs.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/nodesel_uct.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_boundshift.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_convertinttobin.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_domcol.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_dualagg.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_dualcomp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_dualinfer.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_gateextraction.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_implfree.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_implics.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_inttobinary.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_qpkktref.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_redvub.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_trivial.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_tworowbnd.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/presol_stuffing.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_dualfix.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_genvbounds.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_nlobbt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_obbt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_probing.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_pseudoobj.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_redcost.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_rootredcost.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/prop_vbounds.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_bnd.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_ccg.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_cip.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_cnf.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_diff.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_fix.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_fzn.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_gms.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_lp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_mps.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_mst.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_opb.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_osil.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_pip.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_pbm.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_ppm.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_rlp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_sol.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_wbo.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/reader_zpl.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_cgmip.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_clique.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_closecuts.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_cmir.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_convexproj.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_disjunctive.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_eccuts.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_flowcover.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_gauge.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_gomory.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_impliedbounds.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_intobj.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_mcf.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_oddcycle.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_rapidlearning.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_strongcg.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/sepa_zerohalf.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/boundstore.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/branch.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/clock.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/concsolver.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/concurrent.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/conflict.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/conflictstore.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cons.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cutpool.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/cuts.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/debug.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/dialog.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/disp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/event.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/fileio.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heur.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/heuristics.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/compr.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/history.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/implics.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/interrupt.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/intervalarith.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/lp.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/matrix.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/mem.o
-> compiling
// There some other compiling just I remove because of message limitation stackoverflow
obj/static/O.darwin.x86_64.gnu.opt/lib/dijkstra/dijkstra.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/lpi/lpi_spx2.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/bitencode.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/blockmemshell/memory.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/scip/message.o
-> generating library lib/static/liblpispx2-4.0.1.darwin.x86_64.gnu.opt.a
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/tpi/tpi_none.o
-> generating library lib/static/libtpinone-4.0.1.darwin.x86_64.gnu.opt.a
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/nlpi.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/nlpioracle.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/expr.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/nlpi_ipopt_dummy.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/intervalarithext.o
-> compiling obj/static/O.darwin.x86_64.gnu.opt/lib/nlpi/exprinterpret_cppad.o
-> generating library lib/static/libnlpi.cppad-4.0.1.darwin.x86_64.gnu.opt.a
-> compiling obj/static/O.darwin.x86_64.gnu.opt/bin/main.o
-> linking bin/scip-4.0.1.darwin.x86_64.gnu.opt.spx2.none
ld: can't map file, errno=22 file './/lib/static/libsoplex.darwin.x86_64.gnu.opt.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build failed with GMP=false and LPS=spx2: use GMP=true or make sure that SoPlex is also built without GMP support (make GMP=false)
Soners-MacBook-Pro:scip-4.0.1 soner$ make ZLIB=false READLINE=false GMP=false
make/make.project:481: ZIMPL was deactived because of missing GMP support.
-> linking bin/scip-4.0.1.darwin.x86_64.gnu.opt.spx2.none
ld: can't map file, errno=22 file './/lib/static/libsoplex.darwin.x86_64.gnu.opt.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build failed with GMP=false and LPS=spx2: use GMP=true or make sure that SoPlex is also built without GMP support (make GMP=false)
Soners-MacBook-Pro:scip-4.0.1 soner$ make ZLIB=false READLINE=false GMP=false
make/make.project:481: ZIMPL was deactived because of missing GMP support.
-> linking bin/scip-4.0.1.darwin.x86_64.gnu.opt.spx2.none
ld: can't map file, errno=22 file './/lib/static/libsoplex.darwin.x86_64.gnu.opt.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build failed with GMP=false and LPS=spx2: use GMP=true or make sure that SoPlex is also built without GMP support (make GMP=false)
Soners-MacBook-Pro:scip-4.0.1 soner$

You cannot just specify /usr/local for the two links that should be created. lib/include/spxinc should point to a directory, where the SoPlex headers are, which is probably something like /usr/local/include/soplex and lib/static/libsoplex.darwin.x86_64.gnu.opt.a should point to the library itself, so probably /usr/local/lib/libsoplex...., see the output during the compilation process.
If you want to make your life easier and since you probably downloaded the SCIP optimization suite anyway, you can just call make and make install in the root directory of the optimization suite and it will compile SCIP, Soplex, and ZIMPL and also set the links as needed.

You should give CMake a try. This usually works better on non-Linux systems. Have a look here for information on how to use CMake: http://scip.zib.de/doc/html/CMAKE.php
Concerning your error message: It seems that the SoPlex library was not successfully built or at least cannot be found when trying to link SCIP.

Related

Missing external crate when trying to build near-lake

I was trying to build near-lake on a fresh repo cloned from https://github.com/near/near-lake
the build fails with no external crate `itertools` on tokio-stream
cargo build --release
Compiling parity-secp256k1 v0.7.0
Compiling brotli-sys v0.3.2
Compiling libz-sys v1.1.3
Compiling bzip2-sys v0.1.11+1.0.8
Compiling zstd-sys v1.6.3+zstd.1.5.2
Compiling librocksdb-sys v0.6.1+6.28.2
Compiling lzma-sys v0.1.17
Compiling openssl v0.10.38
Compiling openssl-sys v0.9.72
Compiling tokio-openssl v0.6.2
Compiling borsh v0.9.2
Compiling backtrace v0.3.64
Compiling tokio-stream v0.1.8
Compiling tower v0.4.12
Compiling tokio-native-tls v0.3.0
error[E0432]: unresolved import `itertools`
--> /Users/USR/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-stream-0.1.8/src/wrappers/mpsc_bounded.rs:2:5
|
2 | use itertools;
| ^^^^^^^^^ no external crate `itertools`
Compiling brotli2 v0.3.2
For more information about this error, try `rustc --explain E0432`.
error: could not compile `tokio-stream` due to previous error
warning: build failed, waiting for other jobs to finish...
Building [====================> ] 551/633: librocksdb-sys(build)
error: build failed
rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)

Install python package on Synology DiskStation

tldr: Cannot install python-docx and lxml on my Synology DiskStation via pip3 or python 3 -m pip install.
Long version:
I already had some problem installing pip3 and django, but I got it working. Now I wanted to create doc files within django. So, python-docx was recommended. However I cannot just say "pip3 install python-docx".
[Here I have erased the old output, because it was not valid anymore.]
I do not know what to do next. I also tried to install libxml2:
python3 -m pip install libxml2
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement libxml2 (from versions: none)
ERROR: No matching distribution found for libxml2
I googled, but many sites just recommend how to install certain dev packages on debian, which is not helping me.
Can you please tell me how to proceed?
Edit
After reading for hours and trying different things, including an install of entware, I have now a slightly different output.
python3 -m pip install python-docx
Defaulting to user installation because normal site-packages is not writeable
Processing /volume1/homes/admin/.cache/pip/wheels/5c/b3/f7/0b2150abcd02387566859213e86c490e38070d0aad388c1105/python_docx-0.8.10-py3-none-any.whl
Collecting lxml>=2.3.2
Using cached lxml-4.5.0.tar.gz (4.5 MB)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-h4ugg_2s
cwd: /tmp/pip-install-9_1bbtke/lxml/
Complete output (91 lines):
Building lxml version 4.5.0.
Building without Cython.
ERROR: b'/bin/sh: xslt-config: command not found\n'
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/cssselect.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/__init__.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/builder.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/sax.py -> build/lib.linux-armv7l-3.5/lxml
creating build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-armv7l-3.5/lxml/html
creating build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.5
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/lxml
/opt/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -mhard-float -mfpu=vfpv3-d16 -march=armv7-a -mcpu=marvell-pj4 -mtune=marvell-pj4 -DSYNOPLAT_F_ARMV7 -O2 -fno-diagnostics-show-caret -Wno-unused-local-typedefs -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/volume1/#appstore/py3k/usr/local/include/python3.5m -c src/lxml/etree.c -o build/temp.linux-armv7l-3.5/src/lxml/etree.o -w
gcc: error trying to exec 'as': execvp: No such file or directory
cc1: fatal error: /usr/syno/include/platformconfig.h: No such file or directory
compilation terminated.
Compile failed: command '/opt/bin/gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit_wqm9l9k.c -o tmp/xmlXPathInit_wqm9l9k.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command '/opt/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, python-docx
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_uhfue_j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /var/services/homes/admin/.local/include/python3.5m/lxml
cwd: /tmp/pip-install-9_1bbtke/lxml/
Complete output (90 lines):
Building lxml version 4.5.0.
Building without Cython.
ERROR: b'/bin/sh: xslt-config: command not found\n'
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/cssselect.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/__init__.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/builder.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/sax.py -> build/lib.linux-armv7l-3.5/lxml
creating build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-armv7l-3.5/lxml/html
creating build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.5
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/lxml
/opt/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -mhard-float -mfpu=vfpv3-d16 -march=armv7-a -mcpu=marvell-pj4 -mtune=marvell-pj4 -DSYNOPLAT_F_ARMV7 -O2 -fno-diagnostics-show-caret -Wno-unused-local-typedefs -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/volume1/#appstore/py3k/usr/local/include/python3.5m -c src/lxml/etree.c -o build/temp.linux-armv7l-3.5/src/lxml/etree.o -w
gcc: error trying to exec 'as': execvp: No such file or directory
cc1: fatal error: /usr/syno/include/platformconfig.h: No such file or directory
compilation terminated.
Compile failed: command '/opt/bin/gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit31sc0ump.c -o tmp/xmlXPathInit31sc0ump.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command '/opt/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_uhfue_j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /var/services/homes/admin/.local/include/python3.5m/lxml Check the logs for full command output.
If I see this correct, there is something wrong about something called "CC". But I still do not know what to do.
I may have found a solution. But I still have to test it. In the meantime you do not have to answer.
Via opkg I could install some of the packages and I also got a new install of python3. Somewhat confusing for me. So now I have a 2.7 that I never wanted from Synology and a 3.5 from the Synology package center and obviously a newer one from opkg.
However, I could install some packages, but others not. For example, I tried to install reportlab as a way to produce PDFs if python-docx would not run. But I could not install reportlab either, because it seems to miss something like libjpeg-dev or so. And I could also not find this in the opkg repo. However, suddenly python-docx could be installed and I am working with that now.
I am sorry that I cannot provide a better description for others who might have the same problem, but at least I tried to make my steps comprehensible.
Best regards

Unable to compile lxml using pip and NetBSD

I'm running NetBSD 7.1 and I'm trying to install Python's lxml package, using pip.
However I get this compilation error:
# pip install lxml
Collecting lxml
Using cached lxml-3.8.0.tar.gz
Installing collected packages: lxml
Running setup.py install for lxml ... error
Complete output from command /usr/pkg/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Xb5RT3/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-N6HUOc-record/install-record.txt --single-version-externally-managed --compile:
Building lxml version 3.8.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in one of the following directories:
/usr/pkg/lib
/usr/lib
running install
running build
running build_py
creating build
creating build/lib.netbsd-7.1-amd64-2.7
creating build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/sax.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
creating build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
creating build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/includes/etreepublic.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/rng
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.netbsd-7.1-amd64-2.7
creating build/temp.netbsd-7.1-amd64-2.7/src
creating build/temp.netbsd-7.1-amd64-2.7/src/lxml
gcc -fno-strict-aliasing -O2 -pthread -I/usr/include -I/usr/pkg/include -DNDEBUG -O2 -pthread -I/usr/include -I/usr/pkg/include -fPIC -I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/include -Isrc/lxml/includes -I/usr/pkg/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.netbsd-7.1-amd64-2.7/src/lxml/lxml.etree.o -w
In file included from /usr/pkg/include/libxml2/limits.h:168:0,
from /usr/pkg/include/libxml2/syslimits.h:7,
from /usr/pkg/include/libxml2/limits.h:34,
from /usr/pkg/include/python2.7/Python.h:19,
from src/lxml/lxml.etree.c:84:
/usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
creating tmp
cc -I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/include -I/usr/include/libxml2 -c /tmp/xmlXPathInit_nXifU.c -o tmp/xmlXPathInit_nXifU.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/pkg/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Xb5RT3/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-N6HUOc-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Xb5RT3/lxml/
I'm on a clean NetBSD 7.1 minimal installation, but have added the following using pkgsrc:
# pkg_info
xmlcatmgr-2.2nb1 XML and SGML catalog manager
libxml2-2.9.4nb3 XML parser library from the GNOME project
libgpg-error-1.27 Definitions of common error values for all GnuPG components
libgcrypt-1.7.6 GNU cryptographic library
libxslt-1.1.29nb2 XSLT parser library from the GNOME project
mozilla-rootcerts-1.0.20170121nb5 Root CA certificates from the Mozilla Project
libffi-3.2.1nb2 Foreign function interface
python27-2.7.13nb1 Interpreted, interactive, object-oriented programming language
py27-expat-2.7.13 Python interface to expat
py27-appdirs-1.4.0 Module for determining appropriate, platform-specific dirs
py27-pyparsing-2.1.10 Pyparsing module for Python
py27-six-1.10.0 Python 2 and 3 compatibility utilities
py27-packaging-16.8 Core utilities for Python packages
py27-setuptools-34.3.2 New Python packaging system
py27-pip-9.0.1 Installs Python packages as an easy_install replacement
libxml-1.8.17nb4 XML parser (version 1), mainly used by the GNOME project
py27-libxml2-2.9.4nb2 Python wrapper for libxml2
py27-libxslt-1.1.29 Python wrapper for libxslt
gccmakedep-1.0.3 Create dependencies in Makefiles using gcc
gcc5-5.4.0nb2 The GNU Compiler Collection (GCC) - 5 Release Series
boost-headers-1.63.0 Free, peer-reviewed portable C++ source libraries (build-time headers)
compat_headers-0.2 Compatibility headers
This was due to the compiler set not being installed, as it's not part of the "minimal installation" package.
To keep things at minimum, one can choose "Custom installation" option instead and set Compiler Tools to "Yes".
Another way is to download and install the comp.tgz manually:
# cd /
# ftp ftp://ftp.netbsd.org (as an anonymous user)
> cd pub/NetBSD/NetBSD-7.1/amd64/binary/sets
> get comp.tgz
> exit
# tar --unlink -zxvpf comp.tgz
More details available on NetBSD's FAQ.

Visual C++ 10.0 issue when installing Python module; cl.exe failed with exit status 2 (h5py)

I've been at this for the last 5 hours or so. I've reinstalled a bunch, but essentially I'm trying to install the Python module h5py on a Windows 8.1 machine running Python 3.4.1.
The stack is as follows:
Collecting h5py
Using cached h5py-2.6.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in c:\python34\lib\site-packages (from h5py)
Requirement already satisfied (use --upgrade to upgrade): six in c:\python34\lib\site-packages (from h5py)
Building wheels for collected packages: h5py
Running setup.py bdist_wheel for h5py: started
Running setup.py bdist_wheel for h5py: finished with status 'error'
Complete output from command C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\CHARLE~1\AppData\Local\Temp\tmpbpg7zmwapip-wheel- --python-tag cp34:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\h5py
copying h5py\highlevel.py -> build\lib.win32-3.4\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.4\h5py
copying h5py\version.py -> build\lib.win32-3.4\h5py
copying h5py\__init__.py -> build\lib.win32-3.4\h5py
creating build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.4\h5py\_hl
creating build\lib.win32-3.4\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.4\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.4\h5py\tests
creating build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\common.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs_data.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_base.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dataset.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_datatype.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dimension_scales.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_file.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_group.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5f.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5p.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5t.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_objects.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_selections.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_slicing.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\__init__.py -> build\lib.win32-3.4\h5py\tests\old
creating build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_attribute_create.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_getitem.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_swmr.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_datatype.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dims_dimensionproxy.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_file.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_threads.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\__init__.py -> build\lib.win32-3.4\h5py\tests\hl
running build_ext
Autodetection skipped [[WinError 126] The specified module could not be found]
********************************************************************************
Summary of the h5py configuration
Path to HDF5: None
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: False
********************************************************************************
Executing api_gen rebuild of defs
Executing cythonize()
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_errors.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_objects.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_proxy.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5fd.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5z.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5i.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5r.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\utils.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_conv.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5t.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5s.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5p.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5d.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5a.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5f.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5g.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5l.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5o.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ds.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ac.pyx because it changed.
[ 1/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_conv.pyx
[ 2/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_errors.pyx
[ 3/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_objects.pyx
[ 4/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_proxy.pyx
[ 5/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.pyx
[ 6/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5.pyx
[ 7/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5a.pyx
[ 8/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ac.pyx
[ 9/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5d.pyx
[10/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ds.pyx
[11/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5f.pyx
[12/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5fd.pyx
[13/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5g.pyx
[14/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5i.pyx
[15/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5l.pyx
[16/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5o.pyx
[17/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5p.pyx
[18/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5r.pyx
[19/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5s.pyx
[20/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5t.pyx
[21/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5z.pyx
[22/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\utils.pyx
building 'h5py.defs' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
creating build\temp.win32-3.4\Release\users
creating build\temp.win32-3.4\Release\users\charle~1
creating build\temp.win32-3.4\Release\users\charle~1\appdata
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DH5_USE_16_API -D_HDF5USEDLL_ -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\lzf -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\windows -IC:\Python34\lib\site-packages\numpy\core\include -IC:\Python34\include -IC:\Python34\include /Tcc:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.c /Fobuild\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.obj
defs.c
c:\python34\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\charles kronk\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\api_compat.h(27) : fatal error C1083: Cannot open include file: 'hdf5.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
Running setup.py clean for h5py
Failed to build h5py
Installing collected packages: h5py
Running setup.py install for h5py: started
Running setup.py install for h5py: finished with status 'error'
Complete output from command C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\CHARLE~1\AppData\Local\Temp\pip-fis5451x-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\h5py
copying h5py\highlevel.py -> build\lib.win32-3.4\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.4\h5py
copying h5py\version.py -> build\lib.win32-3.4\h5py
copying h5py\__init__.py -> build\lib.win32-3.4\h5py
creating build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.4\h5py\_hl
creating build\lib.win32-3.4\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.4\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.4\h5py\tests
creating build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\common.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs_data.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_base.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dataset.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_datatype.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dimension_scales.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_file.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_group.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5f.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5p.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5t.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_objects.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_selections.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_slicing.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\__init__.py -> build\lib.win32-3.4\h5py\tests\old
creating build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_attribute_create.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_getitem.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_swmr.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_datatype.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dims_dimensionproxy.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_file.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_threads.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\__init__.py -> build\lib.win32-3.4\h5py\tests\hl
running build_ext
Autodetection skipped [[WinError 126] The specified module could not be found]
********************************************************************************
Summary of the h5py configuration
Path to HDF5: None
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: False
********************************************************************************
Executing cythonize()
building 'h5py.defs' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
creating build\temp.win32-3.4\Release\users
creating build\temp.win32-3.4\Release\users\charle~1
creating build\temp.win32-3.4\Release\users\charle~1\appdata
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DH5_USE_16_API -D_HDF5USEDLL_ -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\lzf -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\windows -IC:\Python34\lib\site-packages\numpy\core\include -IC:\Python34\include -IC:\Python34\include /Tcc:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.c /Fobuild\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.obj
defs.c
c:\python34\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\charles kronk\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\api_compat.h(27) : fatal error C1083: Cannot open include file: 'hdf5.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
Further, the error printed to the command line is:
←[31m Failed building wheel for h5py←[0m
←[31mCommand "C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__
='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py'
;exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '
\n'), __file__, 'exec'))" install --record C:\Users\CHARLE~1\AppData\Local\Temp\
pip-fis5451x-record\install-record.txt --single-version-externally-managed --com
pile" failed with error code 1 in C:\Users\CHARLE~1\AppData\Local\Temp\pip-build
-bw8g_xls\h5py\←[0m
Things I've tried so far:
Uninstalling and reinstalling Microsoft Visual Studio 10.0.
Installing Windows SDK 7.1.
Installing MySQL Connector C 6.0.2 and mklinking it in Program Files (x86).
Running with pip and easy_install. The same error results both times.
Installing other modules. I can't repeat the error thus far.
pip wheel h5py fails on the same stack.
I checked vcvarsall.bat and it appears to have the correct configuration (CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64)
OK! So I did it.
Here's how:
I uninstalled all Python versions and deleted all Python-related files, folders, etc. (included PATH variables and packages).
I uninstalled all Microsoft Visual Studio C++ 2010 Redistributable, Microsoft Windows SDK for Windows 7, and .NET Framework 4 programs (BE CAREFUL WITH THIS. If you just do the correct files, then you will be fine. I uninstalled other Microsoft programs and ran into several registry errors...).
Reinstall Microsoft Windows SDK for Windows 7 and .NET Framework 4.
Reinstall Microsoft Visual C++ 2010 Redistributable Package (x64).
Reinstall Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1.
Reinstall Python 3.4.0 (to C:\Python34).
Add C:\Python34 and C:\Python34\Scripts to the PATH system variable.
Download H5py from this website here (specifically h5py-2.6.0-cp34-cp34m-win_amd64.whl).
Run pip3 install h5py-2.6.0-cp34-cp34m-win_amd64.whl. This will generate the following:
Processing c:\python34\h5py-2.6.0-cp34-cp34m-win_amd64.whl
Collecting numpy>=1.6.1 (from h5py==2.6.0)
Downloading numpy-1.11.1-cp34-none-win_amd64.whl (7.4MB)
100% |################################| 7.4MB 46kB/s
Collecting six (from h5py==2.6.0)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: numpy, six, h5py
Successfully installed h5py-2.6.0 numpy-1.11.1 six-1.10.0
Next I ran my program to make sure the import worked correctly, and it did! I hope this helps anyone trying this, just be VERY careful with step (2).
I had the same problem trying to install from the command prompt on my Windows 10 machine. To bypass this error:
I manually downloaded the application from website
Extracted it to my C:/"Path where you want to setup the application"
Went back into command prompt open up the path where you just extracted the application
Run the setup file in the downloaded package from there.
It worked me!!!
Cheers

py2exe mingw compile

So, I'd like to compile py2exe using mingw & I got an error. Does anybody know how to fix that?
D:\devel\py2exe-0.6.9>python setup.py build -cmingw32
running build
running build_py
creating build
creating build\lib.win32-2.7
copying zipextimporter.py -> build\lib.win32-2.7
creating build\lib.win32-2.7\py2exe
copying py2exe\boot_common.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_com_servers.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_ctypes_com_server.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_service.py -> build\lib.win32-2.7\py2exe
copying py2exe\build_exe.py -> build\lib.win32-2.7\py2exe
copying py2exe\mf.py -> build\lib.win32-2.7\py2exe
copying py2exe\__init__.py -> build\lib.win32-2.7\py2exe
creating build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\StringTables.py -> build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\VersionInfo.py -> build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\__init__.py -> build\lib.win32-2.7\py2exe\resources
running build_ext
building '_memimporter' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\source
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHONDLL=\"PYTHON27.DLL\" -DPYTHONCOM=\"pythoncom27.dll\" -IC:\Python27\include -IC:\Python27\PC -c source/MemoryModule.c -o build\temp.win32-2.7\Release\source\memorymodule.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
How to remove -mno-cygwin from build options?
This is a known problem due to unmaintenance by the Python devs to follow MinGW GCC development:
http://bugs.python.org/issue12641
Since 2010-something GCC removed that option due to confusing the people who used the switch. The bug report contains a fix to one of Python's distutils configuration files that you can apply without rebuilding Python or anything.
UPDATE: the error is clear, the code you are compiling is redefining a type that is defined in a Python header:
source/Python-version.h:13:18: error: redefinition of typedef 'Py_ssize_t'
C:\Python27\include/pyport.h:172:25: note: previous declaration of 'Py_ssize_t'
Remove the typedef of Py_ssize_t in your code. There might be some configury stuff going wrong. Be sure to do a clean rebuild after fixing the -mno-cygwin problem.

Resources