New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem installing amuse-brutus #1037
Comments
Looks like you have not installed the mpfr libraries...
Simon
…On Sun, Mar 10, 2024, 19:06 carpark421 ***@***.***> wrote:
Please can someone offer an insight into how to fix my problem?
The output is:
Building wheels for collected packages: amuse-brutus
Building wheel for amuse-brutus (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for amuse-brutus (pyproject.toml) did not run
successfully.
│ exit code: 1
╰─> [114 lines of output]
WARNING setuptools_scm._integration.setuptools pyproject.toml does not
contain a tool.setuptools_scm section
WARNING setuptools_scm.pyproject_reading toml section missing
'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/amuse
creating build/lib/amuse/community
creating build/lib/amuse/community/brutus
copying src/amuse/community/brutus/_version.py ->
build/lib/amuse/community/brutus
copying src/amuse/community/brutus/interface.py ->
build/lib/amuse/community/brutus
copying src/amuse/community/brutus/*init*.py ->
build/lib/amuse/community/brutus
running build_codes
building libraries and community codes
build, for logging, see 'build.log'
creating build/temp.macosx-11.1-arm64-cpython-311
creating build/temp.macosx-11.1-arm64-cpython-311/codes
creating build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
copying src/amuse/community/brutus/_version.py ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
copying src/amuse/community/brutus/Makefile ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
copying src/amuse/community/brutus/interface.py ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
copying src/amuse/community/brutus/*init*.py ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
copying src/amuse/community/brutus/interface.cc ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus
creating build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/mpfrc++
copying src/amuse/community/brutus/mpfrc++/mpreal.h ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/mpfrc++
creating build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Cluster.h ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Bulirsch_Stoer.cpp ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Star.cpp ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Brutus.cpp ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/makefile ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Bulirsch_Stoer.h ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Star.h ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Brutus.h ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/Cluster.cpp ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
copying src/amuse/community/brutus/src/main.cpp ->
build/temp.macosx-11.1-arm64-cpython-311/codes/brutus/src
[17:48:25] building brutus
error in call, tail output:
amusifier --type=c interface.py BrutusInterface -o worker_code.cc
amusifier --type=H -i amuse.community.interface.stopping_conditions.StoppingConditionInterface interface.py BrutusInterface -o worker_code.h
make -C src all CXXFLAGS="-g -O2 -fno-common -I./mpfrc++ -std=c++0x -I../mpfrc++"
g++ -O1 -g -O2 -fno-common -I./mpfrc++ -std=c++0x -I../mpfrc++ -c Star.cpp
In file included from Star.cpp:1:
In file included from ./Star.h:6:
../mpfrc++/mpreal.h:125:10: fatal error: 'mpfr.h' file not found
#include <mpfr.h>
^~~~~~~~
1 error generated.
make[1]: *** [Star.o] Error 1
make: *** [src/libbrutus.a] Error 2
—
Reply to this email directly, view it on GitHub
<#1037>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCPFTGWJEEARALZ7ZTVZK3YXSOJDAVCNFSM6AAAAABEPE4AJKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TOOBTGI2TENQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I did |
If you installed mpfr after installing amuse-framework, it would not be present in the amuse config, which would lead to this error.
|
Yes, what I did was naïvely uninstall amuse-framework and mpfr. I then installed mpfr, amuse-framework, and then finally tried |
Unfortunately this will indeed fail, because pip packages are cached after building them. You would have to remove the cached pip wheels (I think in ~/Library/cache/pip, but please check), and then re-install amuse-framework.
|
I thought that would be the case, so, when uninstalling the stuff, I did this: |
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. |
Please can someone offer an insight into how to fix my problem?
The output is:
The text was updated successfully, but these errors were encountered: