![](https://secure.gravatar.com/avatar/9a86268d4af8e00c5419de66347bf77c.jpg?s=120&d=mm&r=g)
John Reid wrote:
Also when I import scipy.optimize I have the following error. Could easy_install be using the solaris CC compiler? Would this cause this problem?
I found out how to change the default compiler with easy_install but now I am told I cannot compile the code on Solaris with gcc: Building modules... Building module "mvn"... Constructing wrapper function "mvnun"... value,inform = mvnun(lower,upper,means,covar,[maxpts,abseps,releps]) Constructing wrapper function "mvndst"... error,value,inform = mvndst(lower,upper,infin,correl,[maxpts,abseps,releps]) Constructing COMMON block support for "dkblck"... ivls Wrote C/API module "mvn" to file "build/src.solaris-2.10-sun4u-2.5/scipy/stats/mvnmodule.c" Fortran 77 wrappers are saved to "build/src.solaris-2.10-sun4u-2.5/scipy/stats/mvn-f2pywrappers.f" error: Setup script exited with error: don't know how to compile C/C++ code on platform 'posix' with 'gcc' compiler I created the following ~/.pydistutils.cfg [build] compiler = gcc to change the default compiler. Any help appreciated, John.