物理学者(ポスドク)による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)
例えば今、hmatrixというパッケージを使いたいとする
最新versionは
http://hackage.haskell.org/package/hmatrix
を見ると、0.15.2.1 が最新らしい
古いversionのパッケージをインストールしても他のパッケージのdependencyが満たされていることを確認しておく必要がある
portコマンドとかと違って、そういった整合性はユーザー自身が見なければならないらしい
最新versionをインストールしたいならば、
もしかしたらGSLが必要と言われるかもしれないが、そのときは別にインストールする
次に古いversionのパッケージをcabalインストールする方法について説明する
先ほどと同じ
http://hackage.haskell.org/package/hmatrix
のページに行き、インストールしたいversionをPropertiesの下のVersionsから選択する
例えば今、0.14.0.1がインストールしたい場合は
http://hackage.haskell.org/package/hmatrix-0.14.0.1
そしてDownloadsの下にある.tarをダウンロードする
あとは解凍して、中にあるINSTALLとかREADMEとかその辺りを参考にしてインストールすればよい
今回のhmatrixの場合はGSLがすでにインストールされていれば
ツイート
最新versionは
http://hackage.haskell.org/package/hmatrix
を見ると、0.15.2.1 が最新らしい
cabal update
cabal info hmatrix
として、詳細を確認すると、cabal info hmatrix
* hmatrix (library)
Synopsis: Linear algebra and numerical computation
Versions available: 0.13.0.0, 0.13.1.0, 0.14.0.0, 0.14.0.1, 0.14.1.0,
0.15.0.0, 0.15.0.1, 0.15.2.0, 0.15.2.1 (and 31 others)
Versions installed: 0.14.0.1
Homepage: https://github.com/albertoruiz/hmatrix
Bug reports: [ Not specified ]
Description: Purely functional interface to basic linear algebra and other
numerical computations, internally implemented using GSL,
BLAS and LAPACK.
The Linear Algebra API is organized as follows:
- "Data.Packed": structure manipulation
- "Numeric.Container": simple numeric functions
- "Numeric.LinearAlgebra.Algorithms": matrix computations
- "Numeric.LinearAlgebra": everything + instances of standard
Haskell numeric classes
Category: Math
License: GPL
Author: Alberto Ruiz
Maintainer: Alberto Ruiz <aruiz@um.es>
Source repo: https://github.com/albertoruiz/hmatrix
Flags: dd, mkl, unsafe, finit, debugfpu, debugnan
Dependencies: base ==4.*, array -any, storable-complex -any, process -any,
random -any, vector >=0.8, binary -any, deepseq -any
Documentation: [ Not installed ]
Cached: No
Modules:
Data.Packed
Data.Packed.Development
Data.Packed.Matrix
Data.Packed.ST
Data.Packed.Vector
Graphics.Plot
Numeric.Container
Numeric.GSL
Numeric.GSL.Differentiation
Numeric.GSL.Fitting
Numeric.GSL.Fourier
Numeric.GSL.Integration
Numeric.GSL.Minimization
Numeric.GSL.ODE
Numeric.GSL.Polynomials
Numeric.GSL.Root
Numeric.LinearAlgebra
Numeric.LinearAlgebra.Algorithms
Numeric.LinearAlgebra.LAPACK
Numeric.LinearAlgebra.Util
表示された情報は上に貼ったURLリンクからも見ることができるSynopsis: Linear algebra and numerical computation
Versions available: 0.13.0.0, 0.13.1.0, 0.14.0.0, 0.14.0.1, 0.14.1.0,
0.15.0.0, 0.15.0.1, 0.15.2.0, 0.15.2.1 (and 31 others)
Versions installed: 0.14.0.1
Homepage: https://github.com/albertoruiz/hmatrix
Bug reports: [ Not specified ]
Description: Purely functional interface to basic linear algebra and other
numerical computations, internally implemented using GSL,
BLAS and LAPACK.
The Linear Algebra API is organized as follows:
- "Data.Packed": structure manipulation
- "Numeric.Container": simple numeric functions
- "Numeric.LinearAlgebra.Algorithms": matrix computations
- "Numeric.LinearAlgebra": everything + instances of standard
Haskell numeric classes
Category: Math
License: GPL
Author: Alberto Ruiz
Maintainer: Alberto Ruiz <aruiz@um.es>
Source repo: https://github.com/albertoruiz/hmatrix
Flags: dd, mkl, unsafe, finit, debugfpu, debugnan
Dependencies: base ==4.*, array -any, storable-complex -any, process -any,
random -any, vector >=0.8, binary -any, deepseq -any
Documentation: [ Not installed ]
Cached: No
Modules:
Data.Packed
Data.Packed.Development
Data.Packed.Matrix
Data.Packed.ST
Data.Packed.Vector
Graphics.Plot
Numeric.Container
Numeric.GSL
Numeric.GSL.Differentiation
Numeric.GSL.Fitting
Numeric.GSL.Fourier
Numeric.GSL.Integration
Numeric.GSL.Minimization
Numeric.GSL.ODE
Numeric.GSL.Polynomials
Numeric.GSL.Root
Numeric.LinearAlgebra
Numeric.LinearAlgebra.Algorithms
Numeric.LinearAlgebra.LAPACK
Numeric.LinearAlgebra.Util
古いversionのパッケージをインストールしても他のパッケージのdependencyが満たされていることを確認しておく必要がある
portコマンドとかと違って、そういった整合性はユーザー自身が見なければならないらしい
最新versionをインストールしたいならば、
cabal install hmatrix
とすればよいもしかしたらGSLが必要と言われるかもしれないが、そのときは別にインストールする
次に古いversionのパッケージをcabalインストールする方法について説明する
先ほどと同じ
http://hackage.haskell.org/package/hmatrix
のページに行き、インストールしたいversionをPropertiesの下のVersionsから選択する
例えば今、0.14.0.1がインストールしたい場合は
http://hackage.haskell.org/package/hmatrix-0.14.0.1
そしてDownloadsの下にある.tarをダウンロードする
あとは解凍して、中にあるINSTALLとかREADMEとかその辺りを参考にしてインストールすればよい
今回のhmatrixの場合はGSLがすでにインストールされていれば
cabal install
でオーケーでしたPR
プロフィール
HN:coffee
職業:物理屋(自称)
趣味:映画鑑賞、登山
出身:大阪府の南の田舎
自己紹介:
import MyProfile
import coffee_pote from TWITTER
import amazonのほしい物リスト from WISH_LIST
print "先月子供が産まれました!"
# 最終更新 2022/10/25
職業:物理屋
趣味:映画鑑賞、登山
出身:大阪府の南の田舎
自己紹介:
import MyProfile
import coffee_pote from TWITTER
import amazonのほしい物リスト from WISH_LIST
print "先月子供が産まれました!"
# 最終更新 2022/10/25
カテゴリー
ブログ内検索
リンク
相互リンク募集中です
(Twitterにてお知らせください)
Demo scripts for gnuplot version 5 (gnuplotのさまざまなデモ画像と作り方がまとめられている、眺めているだけでできるようになった気分になれる)
gnuplotスクリプトの解説 (米澤進吾さんの個人ページ、gnuplotと言えばこのかた)
gnuplot のページ (Takeno Lab、うちのブログがリンクされていたのでリンク返し)
Twitterから映画の評価が分かる & 映画の鑑賞記録が残せる coco (映画の感想をまとめられるサイト、いつもお世話になっています)
Astronomy Picture of the Day Archive (天文や宇宙関連の最新の話題について画像とともにNASAが説明しているページ)
今日のほしぞら (任意の時刻の空で見える星を表示してくれる、国立天文台が管理している)
GNUPLOTとアニメーション (応用の項目の「見せてあげよう!ラピュタの雷を!!」あたりからすごすぎる)
読書メーター (読んだ本をリストできる便利なサイト)
flickr難民の写真置き場 (20XX年、flickrは有料化の炎に包まれた。あらゆるflickr無料ユーザーは絶滅したかに見えた。 しかし、tumblr移住民は死に絶えてはいなかった。)
教授でもできるMac OS X へのLaTeX, X11, gccのインストレーションと環境設定 (阪大の山中卓さんのwebページ、タイトルにセンスが溢れている、内容は超充実してる、特にTeX関連、学振DCとかPDの申請書類作成時にはお世話になっております)
英語論文執筆用の例文検索サービス (とんでもないものを見つけてしまった・・・・ arXivに収録されている 811,761報の 英語論文から,例文を検索するための検索エンジン)
Demo scripts for gnuplot version 5 (gnuplotのさまざまなデモ画像と作り方がまとめられている、眺めているだけでできるようになった気分になれる)
gnuplotスクリプトの解説 (米澤進吾さんの個人ページ、gnuplotと言えばこのかた)
gnuplot のページ (Takeno Lab、うちのブログがリンクされていたのでリンク返し)
Twitterから映画の評価が分かる & 映画の鑑賞記録が残せる coco (映画の感想をまとめられるサイト、いつもお世話になっています)
Astronomy Picture of the Day Archive (天文や宇宙関連の最新の話題について画像とともにNASAが説明しているページ)
今日のほしぞら (任意の時刻の空で見える星を表示してくれる、国立天文台が管理している)
GNUPLOTとアニメーション (応用の項目の「見せてあげよう!ラピュタの雷を!!」あたりからすごすぎる)
読書メーター (読んだ本をリストできる便利なサイト)
flickr難民の写真置き場 (20XX年、flickrは有料化の炎に包まれた。あらゆるflickr無料ユーザーは絶滅したかに見えた。 しかし、tumblr移住民は死に絶えてはいなかった。)
教授でもできるMac OS X へのLaTeX, X11, gccのインストレーションと環境設定 (阪大の山中卓さんのwebページ、タイトルにセンスが溢れている、内容は超充実してる、特にTeX関連、学振DCとかPDの申請書類作成時にはお世話になっております)
英語論文執筆用の例文検索サービス (とんでもないものを見つけてしまった・・・・ arXivに収録されている 811,761報の 英語論文から,例文を検索するための検索エンジン)
最新記事
(11/20)
(03/05)
(02/29)
(02/21)
(02/21)
(02/21)
(02/21)
(01/13)
(01/05)
(01/05)