1
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.

Ubuntu 使用時におけるRstanのcompile error

Posted at

##1.はじめに
UbuntuとWindowsと同時にRstanを走らせていると、Ubuntu側のRstanで次のようなerrorがでました:anguished:

 prep_call_sampler(object) でエラー: 
  the compiled object from C++ code for this model is invalid, possible reasons:
  - compiled with save_dso=FALSE;
  - compiled on a different platform;
  - does not exist (created from reading csv files).

ググってみたのですが、このようなエラーには、stanのHPに下記のサイトがありましたが、解決にはいたりませんでした:sob:
Problems compiling in ubuntu machine

でもWindows側では同じコードのRstanは問題ありません。

##2.解決法

モデルを記述しているstanfileの名前を別名に変更すると治りました。
実に簡単でしたが、同じような症状が出ている人がいたら、試してください:grin:

1
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
1
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?