r - Change the version of the C compiler used by RStan
问题描述
I installed RStan on a machine running Scientific Linux 6.10. Because the default GCC 4.4.7 is too old, I first installed devtoolkit 7, which provides GCC 7.3.1. The version is selected via the Environment Modules mechanism (which basically just tweaks the appropriate environment variables).
However, even though the environment set up to use GCC 7.4.1, when RStan runs and wants to compile stuff, it still tries to use the standard system GCC (I get an error message which includes paths to the old GCC version).
Is there some method akin to Makevars which I could use to ensure that the newer compiler is picked up?
解决方案
推荐阅读
- python - 我正在构建一个人脸检测器,但我在调整捕获帧的大小以匹配模型的大小时遇到了挑战,因此出现以下错误
- python - TFGPT2LMHeadModel 未知位置
- python - 如何列出所有 pytest 设备
- java - 无法使用 Talend 上传到 Snowflake 阶段,NoSuchMethodError
- c# - 鼠标单击“OnTriggerStay”以添加分数,添加超过设定的数量
- python-3.x - 在双 with 语句中使用 psycopg2 执行多个 SQL 查询
- javascript - discord.js 响应用户消息调用函数时发生无限循环
- c++ - 如何利用对私有(结构)成员的公共常量引用进行代码封装
- ruby-on-rails - 使用 Heroku 进行部署,使用 Webpack 进行 React/Rails 部署
- html - 如何调整下拉菜单按钮的宽度?