Add install target for Linux/OSX systems

オープン
#1,024 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

feature/install_target ブランチの Makefile の変更を確認し、まず Linux で文書化されている make -j4 build と sudo make install の手順を実行してください。インストールによって OSX では CmdStan が /opt または /usr/local/opt に配置され、cmdstan_model ラッパーが作成され、そのコマンドを使ってモデルをコンパイルできることを確認してください。OSX でのテストとコマンド名は未解決の問題として残っています。

索引モデルが issue の本文から書いたものです。

説明

Summary:

A request that's come up before is the ability to centrally install cmdstan after building. I've put together an initial attempt at a makefile target, so that a user can run:

make -j4 build
sudo make install

Which will copy the cmdstan directory to the /opt folder (/usr/local/opt in OSX) and create a wrapper around the call to make to reference the correct directory: cmdstan_model.

The user can then just call cmdstan_model path/to/model to compile stan models.

The makefile changes are on this branch

I still need to do some testing on the OSX side, but was hoping to get input on the current approach.

Is cmdstan_model a good name here? It's likely that print and diagnose will need a similar prefix to avoid clashing with system binaries.

Current Version:

v2.27.0

主要言語
C++
スター
240
フォーク
105
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stan-dev/cmdstan のほかの issue

stan-dev/cmdstan の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。