Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
Packages and Features
Light LogoDark Logo
Version 10.6 Reference Manual
Back to top

_prereq: Represents system packages required for installing SageMath from source

Description

This dummy package represents the minimal requirements (system packages)for installing SageMath from source.

In addition to standardPOSIX utilitiesand thebash shell,the following standard command-line development tools must be installed on yourcomputer:

  • 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 andranlib: can be obtained as part of GNU binutils.

  • tar: GNU tar version 1.17 or later, or BSD tar (as provided on macOS).

  • python: Python 3.4 or later, or Python 2.7.(This range of versions is a minimal requirement for internal purposes of the SageMathbuild system, which is referred to assage-bootstrap-python.)

Other versions of these may work, but they are untested.

On macOS, suitable versions of all of these tools are providedby the Xcode Command Line Tools. To install them, open a terminalwindow and runxcode-select--install; then click “Install” in thepop-up window. If the Xcode Command Line Tools are already installed,you may want to check if they need to be updated by typingsoftwareupdate-l.

On Linux,ar andranlib are in thebinutils package. The otherprograms are usually located in packages with their respective names.

On Redhat-derived systems not all perl components are installed bydefault and you might have to install theperl-ExtUtils-MakeMakerpackage.

To check if you have the above prerequisites installed, for exampleperl,type:

$ command -v perl

or:

$ which perl

on the command line. If it gives an error (or returns nothing), theneitherperl is not installed, or it is installed but not in yourPATH.

Type

standard

Dependencies

Version Information

Equivalent System Packages

$apkaddbinutilsmakem4perlpython3tarbcgccg++ca-certificates\coreutils
$sudopacman-Sbinutilsmakem4perlpythontarbcgccwhich
$condainstallcompilersmakem4perlpythontarbc
$sudoapt-getinstallbinutilsmakem4perlflexpython3tarbcgcc\g++ca-certificates
$sudoyuminstallbinutilsmakem4python3perl\perl-ExtUtils-MakeMakertargccgcc-c++findutilswhichdiffutils\perl-IPC-Cmdflex
$sudopkginstallgmakeautomakebashdashpython
$sudoemergesys-devel/binutilssys-libs/binutils-libsdev-build/make\dev-scheme/guiledev-libs/libffiapp-arch/tarsys-devel/gcc\dev-libs/mpcsys-libs/glibcsys-kernel/linux-headers\dev-lang/perlsys-devel/m4sys-devel/bcdev-lang/python\sys-devel/flexapp-misc/ca-certificatesdev-libs/libxml2\sys-apps/findutilssys-apps/whichsys-apps/diffutils

No package needed.

No package needed.

$nix-env--installbinutilsgnumakegnum4perlpython3gnutarbcgcc\bash
$sudozypperinstallbinutilsmakem4gawkperlpython3tarbcwhich\glibc-locale-basegccgcc-c++ca-certificatesgzipfindutils\diffutils
$sudoslackpkginstallbinutilsmakeguilegclibffigcc-13gcc-g++-13\libmpcglibckernel-headersperlm4bcpython3flex\ca-certificateslibxml2cyrus-sasl
$sudoxbps-installbcbinutilsgcclibgomp-develm4makeperlpython3\tarbashwhichdiffutilsgzippython3-develbzip2-develxz\liblzma-devellibffi-develzlib-devellibxcrypt-devel

If the system package is installed,./configure will check if it can be used.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp