Miso Installation Error In Mac Os X
1
0
Entering edit mode
10.9 years ago
alittleboy ▴ 220

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!

miso • 3.3k views
ADD COMMENT
0
Entering edit mode

Any reason for installing from source, rather than using easy_install as recommended by the authors?

ADD REPLY
0
Entering edit mode

I got the same error message, besides another one: clang: error: linker command failed with exit code 1 (use -v to see invocation)

ADD REPLY
0
Entering edit mode
10.9 years ago
wadunn83 ▴ 90

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)

ADD COMMENT
0
Entering edit mode

The errors suggest badly-written C code to me.

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 3873 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6