0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RがTerminalから起動できなくなった

0
Posted at

環境

iMac (2017)
macOS Big Sir ver 11.4
miniconda3

状況

これまで使えていたのに突然Rがterminalから起動しなくなった。
(miniconda3環境下でRを使っています)

Terminal
% R
dyld: Library not loaded: @rpath/libncurses.6.dylib
  Referenced from: /Users/user_name/miniconda3/lib/libreadline.8.1.dylib
  Reason: image not found
zsh: abort      R

なぜ突然起動しなくなったかの理由はわからない。
ひとまずRコマンドのフルパスを表示してみる。

Terminal
% which R
/Users/user_name/miniconda3/bin/R

やはりRはあるみたい。

解決法

調べてみたら以下コマンドで解決するらいい。
意味はわからないけど、とりあえず実行してみた。

Terminal
% conda update -c rdonnellyr -c main --all

一旦、ターミナルを終了してもう一度起動し直す。
Rは動くかな?

Terminal
% R

R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)

R は、自由なソフトウェアであり、「完全に無保証」です。 
一定の条件に従えば、自由にこれを再配布することができます。 
配布条件の詳細に関しては、'license()' あるいは 'licence()' と入力してください。 

R は多くの貢献者による共同プロジェクトです。 
詳しくは 'contributors()' と入力してください。 
また、R や R のパッケージを出版物で引用する際の形式については 
'citation()' と入力してください。 

'demo()' と入力すればデモをみることができます。 
'help()' とすればオンラインヘルプが出ます。 
'help.start()' で HTML ブラウザによるヘルプがみられます。 
'q()' と入力すれば R を終了します。 

> 

動いた!!
突然動かなくなった理由も、なぜ動くようになったかも謎だけど、ひとまず解決。
以上です。

参照

以下の記事を参考にしました。
https://github.com/conda/conda/issues/6183

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?