<David Roe suggested that I post this here, as well as having done so on zulipchat>
Sage newbie. here, but long term Mac, etc., user and developer. Did serious early work with algebraic manipulation system, Macsyma, including doing internal mods in Lisp for 2D display of math expressions (pre-Latex). Especially interested in the manifolds package for tensor calculus.
My primary Sage installation is on an old MacBook Pro (2014-vintage, 11,3 model) but running current macOS 15..3.1, patched with OCLP 2.2.0, built from downloaded binaries. Since I expect to want to inspect and possibly modify Sage internals, I tried building from source on this machine. Very frustrating. Despite Dima's excellent repeated help, wasn't able to successfully complete the build. Encountered a circular set of errors, dealing with Python and pip versions, certificates, etc., Put the effort on the back burner pending a better understanding of the issues.
However, using this MacBook Pro with the Parallels Desktop system and a Ubuntu 22.4 VM, I did complete a from-source build. And installed Ubuntu 24.1 LTS directly on another MacBook Pro (9,3) and a Sage from-source build there. So now I'm set to explore Sage for my purposes.
But I still want to be able to do a clean build from source on current macOS versions. Are there developers in this community with similar interests? I would be interested in collaborating with you on making the build process on macOS more robust. Feel free to respond to this post or directly to me to see if there's a practical path forward.
Mike
Silicon Valley
But I still want to be able to do a clean build from source on current macOS versions. Are there developers in this community with similar interests? I would be interested in collaborating with you on making the build process on macOS more robust.
git checkout develop
git pull
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/3a9b409e-44cc-44e1-8276-5073ecbe713bn%40googlegroups.com.
Thank you, Volker, for that proof of viability of building Sage on Apple silicon (an M2 Mini) and to Kwankyu on both an M4 and Intel, all with macOS 15.3.1 (I assume). I would be happy to try again as suggested. But I expect I need to do some cleaning of accumulated crud on my system first to eliminate possible stumbling blocks. In that regard, I would appreciate any info you could provide on the following:
- Pre-existing Python and pip installations, whether part of std macOS "Sequoia" 15.3.1 or otherwise.
- Any venv environments outside those initiated inside the build.
- Expected Homebrew release level
- Any changes to the list of suggested brew-installed packages (either from the Installation Guide web pages or the README file in the repo)
- Installed certificates for secure downloads during the build process or any proxy issues. (I don't use any proxy.)
- Any special considerations for the environment variables, esp. PATH
brew install bdw-gc boost bzip2 cddlib cmake curl ecl flint fplll freetype...
I presume that all the listed packages should be installed, if at all possible. Correct?
For compilers to find libffi you may need to set:export LDFLAGS="-L/usr/local/opt/libffi/lib"export CPPFLAGS="-I/usr/local/opt/libffi/include"For pkg-config to find libffi you may need to set:export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" ==> libiconv
To what extent should the environment variables, etc., be modified in order to follow this advice?
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/70897332-0bac-4327-9138-4e12d94cd29fn%40googlegroups.com.
I'll take the incremental testing approach. As a first set of questions:
- On the Install from Source Code page, the "macOS package installation" paragraph advises the installation of a long list of binary packages with Homebrew, e.g.,
- brew install bdw-gc boost bzip2 cddlib cmake curl ecl flint fplll freetype...
I presume that all the listed packages should be installed, if at all possible. Correct?
- Such pkg installations often issue cautions and advice, e.,g.
For compilers to find libffi you may need to set:export LDFLAGS="-L/usr/local/opt/libffi/lib"export CPPFLAGS="-I/usr/local/opt/libffi/include"For pkg-config to find libffi you may need to set:export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" ==> libiconvTo what extent should the environment variables, etc., be modified in order to follow this advice?
- If I understand correctly, system binaries which fail to be installed during this preparation phase will be replaced by source from inside the repo (rts files?) which will be built during the compile phase (at the expense of increased build time). Correct?
The last question may provide an answer to my other question: How is it possible to do just the configure/make steps without the preparatory work to instal system binaries? At worst case everything will be built on the fly.
this is precisely due to the cert failures caused by the broken macOS's python.
Does not happen with a good Python install.
Hi all,Responding to a suggestion to not pay attention to binary pkgs that Homebrew failed to install, and pressing forward with the build, I did so. Took a long(!) time on this wimpy MacBook Pro 9,2 from a decade ago (but running the latest, clean install of macOS 15.3.1 Sequoia, patched with OCLP 2.2.0). As I said:
- I started with the Sage repo updated to the develop/10.6.beta7 commit of Feb 21
- The build did complete.
- It took a lo....ng time.
- The dreaded "bad certificates" issue didn't show up (which I attribute to an earlier attempt in which I did a download from python.org install of python 13.3.2, which explicitly asked to update certificates and I permitted -- causing no ene of trouble before).
- I've attached a zip file containing the full content of the logs folder resulting from the build with lots(!) of reports of pkgs that had to be built.
- The zip file also contains the full console transcript of the source download, configure and make process.
- The last few lines show my attempt to start the app and its crash on a "missing package".
Look forward to people's comments and suggestions; hope this series of build experiments are ultimately useful to the community.Mike