Closed Siwon-S-Kim closed 1 year ago
I hope everything is clear as error report and does not violate community guidelines.
The report is very clear and detailed, thank you!
I don't know what's going on with autoconf, but the issue with backtrace seems to be cause by cmake pointing to libboost_stacktrace_backtrace-mt.a
instead of libboost_stacktrace_backtrace.a
. I can look into it, but it might be a while ...
However, the only reason brew wants to rebuild from source is this warning:
Warning: Building macaulay2/tap/macaulay2 from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/myid42/M/homebrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/myid42/M/homebrew)
Could you try seeing if applying this patch to $(brew --repo macaulay2/tap)/Formula/macaulay2.rb
and rerunning brew install M2
forces brew to use the bottle instead?
diff --git a/Formula/macaulay2.rb b/Formula/macaulay2.rb
index 3fa06c0..4bed4c9 100644
--- a/Formula/macaulay2.rb
+++ b/Formula/macaulay2.rb
@@ -20,7 +20,7 @@ class Macaulay2 < Formula
sha256 cellar: :any, arm64_ventura: "eb5ac622fbcc2a13895470b018557e53ad6c9c6d6e8150a47c358abeaab2edd5"
sha256 cellar: :any, monterey: "abc1029ff3ac237fa184978dc74fb4392eaaa03d12ea88670a31f58dd5136a76"
sha256 cellar: :any, big_sur: "bacd18b9869adc8e22246acf793d51fee83c2a49d3983ead69772e2566c6f165"
- sha256 x86_64_linux: "850f0c224d6e1fdee5f09efe75f5d261d3b6505b203281bc9dab203e61601887"
+ sha256 cellar: :any_skip_relocation, x86_64_linux: "850f0c224d6e1fdee5f09efe75f5d261d3b6505b203281bc9dab203e61601887"
end
head do
This may cause other issues, but you might get lucky.
I also made a new issue for making the M2 bottle truly relocatable.
It worked! Thank you very much.
I used command brew --repo macaulay2/tap
then edited file in a 'tap' ; homebrew/Library/Taps/macaulay2/homebrew-tap/Formula/macaulay2.rb .
Changed
- sha256 x86_64_linux: "850f0c224d6e1fdee5f09efe75f5d261d3b6505b203281bc9dab203e61601887"
+ sha256 cellar: :any_skip_relocation, x86_64_linux: "850f0c224d6e1fdee5f09efe75f5d261d3b6505b203281bc9dab203e61601887"
After that brew install M2
did show change. It tried to download some things and when I checked my computer later it was installed.
Again thank you very much.
Hello
Kernel: Linux 5.4.0-42-generic x86_64 GNU/Linux OS: Ubuntu 20.04.1 LTS (focal)
I was trying to install M2 without sudo command, with homebrew, and faced this problem. I am installing M2 to my account in server with ssh, so I hope this might not be problem with root access. I installed homebrew without root access on folder 'myid42/M' inside my user folder 'myid42', following "Alternative installs". (I don't remember exactly why but I think error I got from standard method suggested me to do so) And I must say that I am not familiar with Ubuntu nor Linux but trying my best without properly studying the basics. So let me know if I am missing any information.
(on ~/M/)
Then I got this problem with latest message "cannot find -lbacktrace"
I don't know if it would help but before having this error there was another error while installing dependency:
So I installed and reinstalled autoconf manually, and continued with command
brew install M2
that's when I started to get same error message on missing file or directory whenever I try to reinstall or install.I hope everything is clear as error report and does not violate community guidelines.
brew config: