stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.04k stars 265 forks source link

Error in compiling with unrecognized command line option '-m' #672

Open hitrp opened 5 years ago

hitrp commented 5 years ago

Summary:

Please provide a short summary (no more than a sentence or two). unrecognized command line option '-m' appears when compile "Rstan" package in R command line

Description:

Describe the issue as clearly as possible. when i install R package "Rstan" from install.packages("rstan"), it downloaded successfully, while comes out a problem that " g++: error: unrecognized command line option '-m' "

Reproducible Steps:

Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.

If you have a reproducible example, please include it.

Current Output:

If applicable, any relevant output from RStan.

Expected Output:

If applicable, the output you expected from RStan. installed successfully

RStan Version:

The version of RStan you are running (e.g., from packageVersion("rstan")) 2.19.2

R Version:

The version of R you are running (e.g., from R.version.string) 3.5.1

Operating System:

Your operating system (e.g., OS X 10.11.3) Centos7

bgoodri commented 4 years ago

Do you have something about -m in your ~/.R/Makevars file? If so, just delete it. It is not needed except occasionally on Windows.