やりたいこと と困っていること
Mac のターミナルを使用しています。Rパッケージ (methylKitなど) をインストールしているのですが、OS10.15ではうまくいった方法が、OS12でうまくいかないのでどこが問題なのか、教えていただきたく思います。OS12はzsh、OS10.15は、bashで使用しています。(ターミナルがそう立ち上がってくるからというだけの理由です。)
R
1BiocManager::install("methylKit")
(最終的にインストールできない状態です)
自分で試したこと
(1) OS10.15で上手くいった方法
R(OS12)
1% R の後、 2> BiocManager::install("methylKit") 3 4# YES/No/cancelを聞かれる箇所ではYESを選択
(2) https://www.bioconductor.org/packages/release/bioc/html/methylKit.html
から、Installationに従う方法 [(1)とほぼ同じです]
R(OS12)
1if (!require("BiocManager", quietly = TRUE)) 2 install.packages("BiocManager") 3 4BiocManager::install("methylKit")
(3) YES/No/cancelを聞かれる直前に出てくるエラーメッセージへの対応
R(OS12)
1ソースコードの形でのみ利用可能なパッケージです,C/C++/Fortran 2 でコンパイルの必要があるかもしれません : ‘GenomicAlignments’ 3 ‘Rsamtools’ ‘rtracklayer’ ‘Rhtslib’ ‘methylKit’
と表示されます。
古いネット情報で、
install.packages("○○", type = "source")
とすれば良いとしているサイトがありましたが、無効でした。 ○○ がmethylKitに相当します。
(4) エラーメッセージの中では、
最後の方で、
cram/cra 1:10: fatal error: 'lzma.h' file not found
と出ます。
[i] lzma.hは、minoconda3の中にあるのですが、whichで認識できません。export PATH でPATHを通して、echo $PATHでは、下記のように出るようにしてみたのですが、上手くゆきません。
/miniconda3/pkgs/xz-5.2.5-h1de35cc_0/include/lzma.h
ちなみに、OS10.15でも、lzma.hは同様の場所にありますが、installできます。
[ii] GitHub https://github.com/atks/vt/issues/70 で、
$ brew install homebrew/science/vt
が有効と最後に書かれていますが、homebrew/scienceは現在は継続されていないというエラーが出ます。
[iii] % brew doctorを行うと、下記のメッセージが出てくる状態です。
Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and which additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew-provided script of the same name. We found the following "config" scripts: /miniconda3/bin/vdb-config /miniconda3/bin/krb5-config /miniconda3/bin/python3.9-config /miniconda3/bin/python3-config /miniconda3/bin/curl-config /miniconda3/bin/ncursesw6-config
brew doctorで出る警告は関係しているのでしょうか。よろしくお願いいたします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/06/28 06:21