私はSage Math 9.5を持っていて、私が実行したaptまたは.debからインポートしたいと思います。しかし、最新の10.3バージョンにアップグレードする方法は?

私はSage Math 9.5を持っていて、私が実行したaptまたは.debからインポートしたいと思います。しかし、最新の10.3バージョンにアップグレードする方法は?

2年前にSageMathをどのようにインストールしたか覚えていません。

しかし、私の考えでは、aptコマンドを介してsudo apt install sagemath-jupyterSageMathのバージョンを9.5誰もが利用できるようにするか、ファイルを介して.deb

なぜなら、このコマンドを実行するとき:

locate sagemath | xargs -I {} dirname {} | grep -vF '/usr/share/doc/sagemath/' | sort | uniq

次のフォルダに渡されることを確認しました。

/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/sage/features
/usr/lib/python3/dist-packages/sage/features/__pycache__
/usr/lib/python3/dist-packages/sagemath_standard-9.5.egg-info
/usr/lib/python3/dist-packages/sagenb_export/nbextension/www
/usr/lib/python3/dist-packages/sage/tests/books
/usr/lib/python3/dist-packages/sage/tests/books/computational-mathematics-with-sagemath
/usr/lib/python3/dist-packages/sage/tests/books/computational-mathematics-with-sagemath/__pycache__
/usr/lib/python3/dist-packages/sage/tests/books/computational-mathematics-with-sagemath/sol
/usr/lib/python3/dist-packages/sage/tests/books/computational-mathematics-with-sagemath/sol/__pycache__
/usr/share
/usr/share/applications
/usr/share/doc
/usr/share/doc-base
/usr/share/doc/sagemath
/usr/share/doc/sagemath-database-conway-polynomials
/usr/share/doc/sagemath-database-elliptic-curves
/usr/share/doc/sagemath-database-graphs
/usr/share/doc/sagemath-database-mutually-combinatorial-designs
/usr/share/doc/sagemath-database-polytopes
/usr/share/doc/sagemath-doc
/usr/share/doc/sagemath-jupyter
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/scalable/apps
/usr/share/jupyter/kernels
/usr/share/jupyter/kernels/sagemath
/usr/share/lintian/overrides
/usr/share/mime/text
/usr/share/sagemath
/usr/share/sagemath/combinatorial_designs
/usr/share/sagemath/conway_polynomials
/usr/share/sagemath/cremona
/usr/share/sagemath/ellcurves
/usr/share/sagemath/graphs
/usr/share/sagemath/reflexive_polytopes
/usr/share/sagemath/reflexive_polytopes/Full2d
/usr/share/sagemath/reflexive_polytopes/Full3d
/var/cache/apt/archives
/var/lib/dpkg/info
/var/lib/swcatalog/icons/debian-bookworm-main/48x48
/var/lib/swcatalog/icons/debian-bookworm-main/64x64

これからは他のユーザーと「同じパス」、つまりバージョンを使用したいと思います10.x
例では:最新(10.3)

しかし、何をすべきかを理解するのは簡単ではありません。特にそのような言及:

Sage 10.2以降、よく管理され、最新のSageMathパッケージを提供する次のディストリビューションをお勧めします。Arch LinuxとVoid Linux。

最新のSageMathバージョンをインストールする方法を知っていますか?

ベストアンサー1

Debian 12(現在の安定版)とdebian sidの両方にsagemath 9.5が含まれているので、おそらく合理的な方法でインストールしたでしょうapt install sagemath-jupyter。特にやることはありません!

残念なことに、Sagemathは包装するのが難しい歴史を持っており、私のキャリアを通して何度も困難を経験したことを覚えています。 Debian が最新バージョンをパッケージ化したのを見て嬉しいです!

実際、Debian 実験でさえ Sagemath 10.2 をパッケージ化しようとしません。これは、次の3つのうちの1つを意味できます。

  1. 誰も試していません
  2. 誰かが作業していますが、まだ作業が必要な場合や時間が必要です。 sagemath を移植する前に Debian の一部を更新する必要があるからです。実験用リポジトリを有効にする必要があります。
  3. 誰かが試しましたが、sagemath 10.2に必要な依存関係は現在Debianにまったくインストールできません。

10.2サルサの分野があるので、私たちは2番目のカテゴリに属する​​と思います。だから誰かがあなたにサルサを伝えるために努力していることは明らかです!

したがって、これらのパッケージを入手するには、次の手順を実行する必要があります。

# get things we'll need to build packages:
apt update
apt install git devscripts sudo

# get the source package of sagemath, i.e. what becomes the .deb
#
#         /-------------------------- use the branch that ports 10.2 to debian
#         |             /------------ also get the actual source code of sagemath, as well
#         v             v
git clone --branch 10.2 --recursive https://salsa.debian.org/science-team/sagemath.git
cd sagemath
# now to the actual package build:
# (1) install the tools we need to even install dependencies
debian/rules build-dep-maint
# (2) install dependencies
debian/rules build-dep
# (3) build the software to go into the package
debian/rules build
# (4) build the package
fakeroot debian/rules binary

これで現在Debianでこれを試しましたが、予想通り(2)で失敗しました。なぜなら、libflint-dev はバージョン 3.0.0 ではなくバージョン 2.9.5 でのみ使用でき、そのバージョン要件を削除して次にビルドしようとしたからです。バージョン 2.9.5 ではビルドが失敗します。したがって、Debian stable/12/bookwormでは使用できません! Debianテスト/トリックでは、私たちは十分に新しいlibflint-devを得ました。 Debian testin/trixieで上記の方法を試してみてください! (もちろん、/etc/apt/apt.sources.list.d/debian.listでトリックパッケージを有効にすることはできますが、Debianを混在してインストールするため、信頼性と一致しない可能性があります。メソッドを使用して構築されました。

だから、現在 Debian Book で作業する Debian 固有の方法はないと言うのが妥当だと思います。不安定なソフトウェアを避けない場合は、自分で作成できます。しかし、(ana)condaの場合も同様です。 10.2は「ステージング」領域にあり、まだ公に使用する準備ができていません。

長い話を短く言えば、 待つ。 Sage 10.3 は準備中です。 Sage 10.2は現在、Frankesteinの信頼性の高い/テストシステムに構築されています。エンドユーザーにとって、今はこのほこりが沈むのに最適な時期です。

しかし、移植をより早く完了するには、Debianをdebian trixieに更新し(より合理的な:コンテナのインストールpodmanと実行)、上記のようにソースからsageをビルドし、結果パッケージをインストールし、開発者が発生する問題を解決するのに役立ちます。debian:testing両方

おすすめ記事