markdown 在macOS上安装RSymphony

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在macOS上安装RSymphony相关的知识,希望对你有一定的参考价值。

## Install Symphony

Install Symphony with homewbrew:

```
brew tap coin-or-tools/coinor
brew install symphony
```

Install `pkg-config`, a tool for querying installed libraries for when compiling software source code. Not sure if this is strictly necessary, but pkg-config is used in the configuration script for Rsymphony:

```
brew install pkg-config
```

And install `gfortran`if not installed.

## Installe RSymphony

First grab and unpack the source:

```
wget https://cran.rstudio.com/src/contrib/Rsymphony_0.1-28.tar.gz
tar -xzvf Rsymphony_0.1-28.tar.gz
```

Edit `Rsymphony/configure` and comment out the test for finding SYMPHONY libraries and headers, which is broken (not sure yet how to fix it):

```sh
#if test ${status} -ne 0; then
#  echo "Cannot find SYMPHONY libraries and headers."
#  echo "See <https://projects.coin-or.org/SYMPHONY>."
#  exit 1
#fi
```

Next edit `Rsymphony/src/R_symphony.cc` and change

```C
#include <coin/symphony.h>
```

to

```C
#include <symphony.h>
```

Finally, run

```sh
r CMD install Rsymphony
```

以上是关于markdown 在macOS上安装RSymphony的主要内容,如果未能解决你的问题,请参考以下文章

markdown 使用Homebrew在macOS上安装MySQL 5.7

markdown 在macOS High Sierra上安装多个Java版本

markdown 在macOS High Sierra上安装多个Java版本

markdown 在High Sierra上安装Windows 10(macOS 10.13.2)

markdown 如何使用Atom和所有的铃声和​​口哨在MacOS上安装功能性Go开发环境。

使用Doxygen生成markdown用户文档时如何获取空白页面