amuse icon indicating copy to clipboard operation
amuse copied to clipboard

Amuse installation issue

Open dfeigelson opened this issue 3 years ago • 5 comments

Hello, I am attempting to install amuse on a brand new mac and am running into some issues. I believe all prerequisites are properly installed, however, when I run pip install mpi4py I get the following:

ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects

Further, when I run pip install amuse-framework I get:

ERROR: Could not build wheels for amuse-framework, which is required to install pyproject.toml-based projects

I am not sure if this is related to the mpi4py issue or if both are caused by the same thing, but I think everything else is installed correctly. Please let me know if you have any suggestions.

On a separate note, I tried doing a development build and cloned the directory and installed it. However, when I navigate to it and run ./configure I get: configure: error: C compiler cannot create executables

If I navigate to config.log, I find the following, though I am not sure if it is enlightening: gcc version 11.2.0 (MacPorts gcc11 11.2.0_3) configure:3012: $? = 0 configure:3001: gcc -V >&5 gcc: error: unrecognized command-line option '-V' gcc: fatal error: no input files compilation terminated. configure:3012: $? = 1 configure:3001: gcc -qversion >&5 gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:3012: $? = 1 configure:3032: checking whether the C compiler works configure:3054: gcc conftest.c >&5 ld: library not found for -lSystem collect2: error: ld returned 1 exit status configure:3058: $? = 1 configure:3096: result: no

I am happy to proceed with either method of installation if one problem is easier to fix.

dfeigelson avatar Jun 15 '22 23:06 dfeigelson

hmm, if the compiler doesn't work, it will also fail for mpi4py - have you tried to compile any simple hellow world c program with gcc?

ipelupessy avatar Jun 22 '22 14:06 ipelupessy

Yes it can compile a simple program like that and as far as I can tell an up to date version is installed. When I try to install mpi4py, I am now getting the following error: error: 'Cannot compile MPI programs. Check your configuration!!!'

I get the same error when attempting to run 'pip install -e .' for a development build.

dfeigelson avatar Jun 23 '22 02:06 dfeigelson

I think the essential bit is "library not found for -lSystem"..if I google for this, it seems to be a common error on mac when the enironment is not setup correctly; I cannot test this, but maybe you can try some of them?

e.g.: https://stackoverflow.com/questions/56156520/gfortran-error-ld-library-not-found-for-lsystem-when-trying-to-compile

(also: when it does work to compile a program is that the same version (11.2.0)?)

ipelupessy avatar Jun 23 '22 09:06 ipelupessy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 30 '22 17:08 stale[bot]

I think its a system config issue, and propose to close this issue w/o further feedback.

ipelupessy avatar Aug 30 '22 19:08 ipelupessy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 31 '22 01:10 stale[bot]