- Download the source Package
- Minimum system requirements: 6GB HDD, 2GB RAM.
- Command-line tools:
- A/C + + compiler: Since Sage builds its own GCC if needed, a wide variety of C + + compilers is Supporte D.
Many GCC versions work, from as-old as version 3.4.3-to-the-most recent release. Clang also works. On Solaris
Systems, the Sun compiler should also work. See also Using alternative compilers.
- Make: GNU make, Version 3.80 or later. Version 3.82 or later is recommended.
- M4: GNU M4 1.4.2 or later (NON-GNU or older versions might also work).
- perl: Version 5.8.0 or later.
- ar and Ranlib: Can is obtained as part of the GNU binutils.
- tar: GNU tar version 1.17 or later, or BSD tar.
- Command-line tool installation
1 sudo Install GCC Make Perl Tar
- System special needs, Debian/ubuntu need to install Dpkg-dev package
1 sudo Install Dpkg-dev
- Optional software
- Dvipng
- Ffmpeg
- ImageMagick
- Latex--Very recommended installation
- Install optional software, FFmpeg is not installed.
1 sudo Install dvipng ImageMagick texlive
- Start compiling
1 cd ~/sage-6.7 #进入目录 2 export sage_fat_binaty='Yes' 3 Make # cannot use root
warning:: System default GCC-4.9.2.P1 After a problem occurs, Sage uses its own GCC by default, because the version issue causes R to not install, the following error occurs
/home/user/build/sage/snapperkob/sage_git/build/local/var/tmp/sage/build/ R-3.1.1.P0/SRC/BIN/EXEC/R:/usr/lib/x86_64-linux-gnu/libgomp.so.1:version ' gomp_4.0 ' not found (required by/home/ user/build/sage/snapperkob/sage_git/build/local/var/tmp/sage/build/r-3.1.1.p0/src/lib/libr.so) make[7]: * * * Error SYSDATEMAKE[6]: * * * [ALL] Error 1make[6]: Leaving directory '/home/user/build/sage/snapperkob/sage_git/build/local/ Var/tmp/sage/build/r-3.1.1.p0/src/src/library/tools ' make[5]: * * [R] Error 1make[5]: Leaving directory '/home/user/ Build/sage/snapperkob/sage_git/build/local/var/tmp/sage/build/r-3.1.1.p0/src/src/library ' make[4]: * * * [r] Error 1MAKE[4]: Leaving directory '/home/user/build/sage/snapperkob/sage_git/build/local/var/tmp/sage/build/r-3.1.1.p0/ Src/src ' make[3]: * * [R] Error 1make[3]: Leaving directory '/home/user/build/sage/snapperkob/sage_git/build/local/var /tmp/sage/build/r-3.1.1.p0/src ' Error building R.
Setting the second step avoids the effect of the error sage_fat_binary parameter:To prepare a binary distribution that would run on the widest range of target machines.
./sage--bdisk X.y.z-fat #生成. tar.gz Package File
- Test
./sage--testall
- Time Statistics (Intel Core i5 3230m+8gb RAM +ubuntu 14.04.02 AMD64)
Project |
Make |
./sage--testall |
Take |
Approx. 2.5h |
Approx. 1.2h |
Ubuntu 14.04 LTS using source code compilation installation Sagemath 6.7 x64 (summary)