stan-dev / stan-dev/cmdstan

Add install target for Linux/OSX systems

Open
#1,024 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
238
Forks
106
Avg merge
2h 29m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Makefile changes on the feature/install_target branch and start by running the documented make -j4 build and sudo make install flow on Linux. Verify that installation places CmdStan in /opt or /usr/local/opt on OSX, creates the cmdstan_model wrapper, and allows compiling a model through that command; OSX testing and command naming remain open questions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.