ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 17 Apr 2020 09:28:34 -0500How do I install a GAP package in Sage?https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/ I would like to install the package DiGraphs (https://www.gap-system.org/Packages/digraphs.html) into the GAP version that is part of Sage. I just installed the latest version of Sage, Sage 8.6, on a Mac. There is a page about doing this here: https://wiki.sagemath.org/InstallingGapPackages but you will notice that at the top it says "Since GAP 4.10 release, in Sage 8.6 (Jan 2019), you should not use the following instructions!" Of course it offers no alternatives. The readme for the DiGraphs says that you should have the GAP packages IO and orb installed. I am not able to install the IO package, which I downloaded from here: https://www.gap-system.org/Packages/io.html and then put in the folder where the other GAP packages are, namely Applications/SageMath/local/share/gap/pkg/
The readme file for the IO package says to change directories to the folder containing the IO package and then run "./configure", which I have done. Next it says to run "make", but this gives me the following error:
src/io.c:14:10: fatal error: 'src/compiled.h' file not found
\#include "src/compiled.h" /* GAP headers */
Can anyone help me with this? I have had the DiGraphs package installed within GAP inside of Sage previously, but I recently got a new computer and had to reinstall everything, and it seems certain things have changed with the new version of Sage. Mon, 25 Mar 2019 14:58:00 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/Answer by Emmanuel Charpentier for <p>I would like to install the package DiGraphs (<a href="https://www.gap-system.org/Packages/digraphs.html">https://www.gap-system.org/Packages/d...</a>) into the GAP version that is part of Sage. I just installed the latest version of Sage, Sage 8.6, on a Mac. There is a page about doing this here: <a href="https://wiki.sagemath.org/InstallingGapPackages">https://wiki.sagemath.org/InstallingG...</a> but you will notice that at the top it says "Since GAP 4.10 release, in Sage 8.6 (Jan 2019), you should not use the following instructions!" Of course it offers no alternatives. The readme for the DiGraphs says that you should have the GAP packages IO and orb installed. I am not able to install the IO package, which I downloaded from here: <a href="https://www.gap-system.org/Packages/io.html">https://www.gap-system.org/Packages/i...</a> and then put in the folder where the other GAP packages are, namely Applications/SageMath/local/share/gap/pkg/</p>
<p>The readme file for the IO package says to change directories to the folder containing the IO package and then run "./configure", which I have done. Next it says to run "make", but this gives me the following error:</p>
<p>src/io.c:14:10: fatal error: 'src/compiled.h' file not found</p>
<p>#include "src/compiled.h" /* GAP headers */</p>
<p>Can anyone help me with this? I have had the DiGraphs package installed within GAP inside of Sage previously, but I recently got a new computer and had to reinstall everything, and it seems certain things have changed with the new version of Sage. </p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45906#post-id-45906`sage -i gap_packages` should do the trick.
But on a Mac, I dunno : Macs may have trouble getting packages via SSL, because the built-in certificatyes are too restrictive.Mon, 25 Mar 2019 17:49:15 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45906#post-id-45906Comment by jin for <p><code>sage -i gap_packages</code> should do the trick.</p>
<p>But on a Mac, I dunno : Macs may have trouble getting packages via SSL, because the built-in certificatyes are too restrictive.</p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=50812#post-id-50812I got an error by running `sage -i gap_packages` :`make: *** No rule to make target 'all-toolchain'. Stop.`Fri, 17 Apr 2020 09:28:34 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=50812#post-id-50812Comment by David E. Roberson for <p><code>sage -i gap_packages</code> should do the trick.</p>
<p>But on a Mac, I dunno : Macs may have trouble getting packages via SSL, because the built-in certificatyes are too restrictive.</p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45921#post-id-45921But if I now write
gap.eval('LoadPackage("io")')
in a sage worksheet, then it says "fail", rather than "true" which is what it says if for instance I write
gap.eval('LoadPackage("sonata")')Tue, 26 Mar 2019 05:41:20 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45921#post-id-45921Comment by Emmanuel Charpentier for <p><code>sage -i gap_packages</code> should do the trick.</p>
<p>But on a Mac, I dunno : Macs may have trouble getting packages via SSL, because the built-in certificatyes are too restrictive.</p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45916#post-id-45916As far as I understand it, you don't have to `make` it : the installation of the package should take care of that.
Unless the error happens during the package installation, in which case you should report it.Tue, 26 Mar 2019 02:13:10 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45916#post-id-45916Comment by David E. Roberson for <p><code>sage -i gap_packages</code> should do the trick.</p>
<p>But on a Mac, I dunno : Macs may have trouble getting packages via SSL, because the built-in certificatyes are too restrictive.</p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45910#post-id-45910Okay, I did that, but I still get the same error when running make.Mon, 25 Mar 2019 19:03:43 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?comment=45910#post-id-45910Answer by John Palmieri for <p>I would like to install the package DiGraphs (<a href="https://www.gap-system.org/Packages/digraphs.html">https://www.gap-system.org/Packages/d...</a>) into the GAP version that is part of Sage. I just installed the latest version of Sage, Sage 8.6, on a Mac. There is a page about doing this here: <a href="https://wiki.sagemath.org/InstallingGapPackages">https://wiki.sagemath.org/InstallingG...</a> but you will notice that at the top it says "Since GAP 4.10 release, in Sage 8.6 (Jan 2019), you should not use the following instructions!" Of course it offers no alternatives. The readme for the DiGraphs says that you should have the GAP packages IO and orb installed. I am not able to install the IO package, which I downloaded from here: <a href="https://www.gap-system.org/Packages/io.html">https://www.gap-system.org/Packages/i...</a> and then put in the folder where the other GAP packages are, namely Applications/SageMath/local/share/gap/pkg/</p>
<p>The readme file for the IO package says to change directories to the folder containing the IO package and then run "./configure", which I have done. Next it says to run "make", but this gives me the following error:</p>
<p>src/io.c:14:10: fatal error: 'src/compiled.h' file not found</p>
<p>#include "src/compiled.h" /* GAP headers */</p>
<p>Can anyone help me with this? I have had the DiGraphs package installed within GAP inside of Sage previously, but I recently got a new computer and had to reinstall everything, and it seems certain things have changed with the new version of Sage. </p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45931#post-id-45931The "io" package, at least, wasn't included in Sage's gap_packages until Sage 8.7, so you will have to manually install "io" or download the newest version of Sage. (I think it is not yet available in pre-built binaries for the Mac, only source code so far. But binaries should be available soon.)
I just installed "orb" by downloading it and following the directions in `README.md`: unpack the tarball "in the `pkg` subdirectory of your GAP 4 installation", which is "local/share/gap/pkg". Then run `./configure` and `make`.
I'm hoping that the same thing will work with "io", but I haven't tried it.Wed, 27 Mar 2019 17:59:06 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45931#post-id-45931Answer by David E. Roberson for <p>I would like to install the package DiGraphs (<a href="https://www.gap-system.org/Packages/digraphs.html">https://www.gap-system.org/Packages/d...</a>) into the GAP version that is part of Sage. I just installed the latest version of Sage, Sage 8.6, on a Mac. There is a page about doing this here: <a href="https://wiki.sagemath.org/InstallingGapPackages">https://wiki.sagemath.org/InstallingG...</a> but you will notice that at the top it says "Since GAP 4.10 release, in Sage 8.6 (Jan 2019), you should not use the following instructions!" Of course it offers no alternatives. The readme for the DiGraphs says that you should have the GAP packages IO and orb installed. I am not able to install the IO package, which I downloaded from here: <a href="https://www.gap-system.org/Packages/io.html">https://www.gap-system.org/Packages/i...</a> and then put in the folder where the other GAP packages are, namely Applications/SageMath/local/share/gap/pkg/</p>
<p>The readme file for the IO package says to change directories to the folder containing the IO package and then run "./configure", which I have done. Next it says to run "make", but this gives me the following error:</p>
<p>src/io.c:14:10: fatal error: 'src/compiled.h' file not found</p>
<p>#include "src/compiled.h" /* GAP headers */</p>
<p>Can anyone help me with this? I have had the DiGraphs package installed within GAP inside of Sage previously, but I recently got a new computer and had to reinstall everything, and it seems certain things have changed with the new version of Sage. </p>
https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45926#post-id-45926In the end I did the following and it seems to have worked:
I went here: http://www.cecm.sfu.ca/sage/spkg/upstream/gap_packages/index.html and downloaded the version of GAP 4.10 from there that already has io and orb and digraphs in it. Then I replaced the gap folder in /Applications/SageMath/local/share/ with this new gap folder. I opened a terminal at this new gap folder and ran "./configure" and then "make". Then I opened a terminal at the io folder inside this new gap folder and ran "./configure" and then "make", and then did the same at the digraphs folder.Tue, 26 Mar 2019 09:42:56 -0500https://ask.sagemath.org/question/45902/how-do-i-install-a-gap-package-in-sage/?answer=45926#post-id-45926