The errors suggest badly-written C code to me.
I am installing MISO on my Mac OS X system. I downloaded the latest release (.tar.gz) file, extract, and then do
python setup.py install
The MISO module is installed properly (I can run import misopy), but at the very end of the installation, I see the following error messages:
pysplicing/src/random.c:860: error: static declaration of ‘expm1’ follows non-static declaration
pysplicing/src/random.c:888: error: static declaration of ‘rint’ follows non-static declaration
pysplicing/src/random.c:896: error: static declaration of ‘rintf’ follows non-static declaration
error: command 'gcc' failed with exit status 1
Thus, I cannot run import pysplicing in my Python session. Is there a solution? Thanks!
1 answer
Most likely you are trying to install something that requires compilation, but you have not installed Apple's developer tools.
Apple bills itself as a full Unix system but does not ship with gcc or any other compiler. You need to register as a developer with the apple site and download the latest version of Xcode (I think this comes with the compilers bundled inside now). Its a BIG download so schedule some time depending on your connection.
After installing Xcode, try it again.
Gus
(left mac bc of crap like that)
not sure to what you are referring... My suggestion or the well known inability of a Mac without developer tools to install anything that requires compilation? No amount of good or bad C code will compile if there is no compiler. Do you mean that it is an unhelpful error? In that case I agree completely.
I'm referring to the observation that a Google search for that type of error returns very many results, many of which mention poorly-written code and few of which mention Xcode.
Log in to answer this question.
Any reason for installing from source, rather than using easy_install as recommended by the authors?
I got the same error message, besides another one: clang: error: linker command failed with exit code 1 (use -v to see invocation)