2021-12-29 04:12 UTC, Advay Goel on sage-devel: > > Hi All, > > I use macOS Big Sur Version 11.1, and need to use > the LRS Library for a project: > > def getVolume(self,eng='lrs'): > """ needs Sage 5.9 for 'lrs' engine """ > return self.poly.volume(engine=eng)*factorial(self.poly.dim()) > > Currently, whenever I run this function, I get 0, and I believe > it is because LRS Library is not properly installed on my system > (I checked using this code: link and it said LRS is not present). > However, this doesn't make much sense to me as there is an LRS > folder in my sage folder. Its location is > /Applications/SageMath/build/pkgs/lrslib > > Regardless, I downloaded LRS again and am trying to build Sage from source.
Inside the Sage source folder, build/pkgs contains a folder for each "Sage package" (or "spkg"), whether standard, optional or experimental, that Sage can install. For example, in your case, the folder /Applications/SageMath/build/pkgs/lrslib has the information about the `lrslib` spkg. That includes: - `type`, which in this case contains the word "optional" - `package-version.txt`, which has the version that Sage will try to install if it does not find a good enough system package to use - `spkg-configure.m4`, which is in charge of detecting whether there is an appropriate system lrslib that Sage can use, instead of building lrslib specially for Sage; that file was added in Sage Trac ticket #27804, merged in Sage 9.3.rc3: https://trac.sagemath.org/ticket/27804 When you build Sage on macOS, it helps to first install Homebrew, and to install many packages using Homebrew. The Homebrew installation instructions are at http://brew.sh (installing Homebrew is one line to cut and paste from that website into a terminal). Then, in a terminal, from your Sage folder, get the latest development version of Sage: $ git checkout develop $ git pull origin develop --tags -q $ git branch -vv Then make Sage aware of Homebrew and configure for the build: $ source .homebrew-build-env $ make configure $ ./configure --enable-lrslib The output of that last command will contain suggestions of packages to install via Homebrew for Sage to use rather than having to build them; and it will indicate a command to be run after installing extra Homebrew packages, to take them into account when building Sage. Once you have followed these suggestions, run $ MAKE='make -j8' # to run 8 jobs in parallel $ make -s V=0 Then you should have a fully functional Sage with lrslib. Don't hesitate if you have more questions. --Samuel -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/a9c066d0-d758-4f12-bf04-faf290d36b7bn%40googlegroups.com.