Open shakthimaan opened 5 years ago
@shakthimaan I received similar errors to the ones you've posted.
I've had a look at #6 and @daly says he's using gcc version 4.8.2 . I'm using Debian buster which has gcc 8 in the repository.
So I had a look to see which Debian has a version closer to @daly 's version and it turns out that jessie has version 4.9.2
I then used debootstrap to create an environment with jessie (in a similar way to how it's described in this post )
debootstrap --foreign --arch=amd64 jessie jessie-chroot http://ftp.de.debian.org/debian/
Then, copy the axiom repository into the chroot and enter the chroot:
cp -r axiom/ jessie-chroot/
sudo chroot jessie-chroot
Then ran the 2nd stage inside the chroot to install the rest of the base system
/debootstrap/debootstrap --second-stage
If you have an unclean local axiom git clone, you can reset and remove any files that are not part of the git repo.
cd /axiom/
git reset --hard dbef4a575d95bc2b6726d4ed67a4c46e39e5590d
git clean -dfx .
From here on, I've installed the packages mentioned in the download page under the debian section, and then ran make
:
apt-get install gcc build-essential debhelper gettext gs-gpl html2text
apt-get install intltool-debian libgmp3-dev libice-dev libxau-dev libxaw7-dev
apt-get install po-debconf x-dev x11proto-input-dev x11proto-kb-dev
apt-get install libreadline5-dev gawk
apt-get install texlive-pstricks git-core texlive
git clone git://github.com/daly/axiom.git
cd axiom
export AXIOM=`pwd`/mnt/debian
export PATH=$AXIOM/bin:$PATH
make
It took some hours, but eventually the build succesfully finished.
I believe this can be a solution to @shakthimaan 's reported issue. @daly can we close this?
Thanks
Thanks for the detailed steps. I was able to follow the above instructions and compile axiom. The gs-gpl and x-dev packages were not found though. Also, I installed libreadline-gplv2-dev instead of libreadline5-dev (not available). Note: In order to copy the built artefacts to the host system, I had to copy them to /tmp inside the chroot environment, and then access them on the host system.
I am trying to build axiom on Debian 9. I have used the following steps:
The build fails with the following error messages:
The GCC version used is:
I think https://github.com/daly/axiom/issues/6 is related. Any idea on how to proceed?