我正在尝试使用Brew在Mac OS Mavericks上安装Octave.我跑了
brew install octave --without-docs
Run Code Online (Sandbox Code Playgroud)
几乎立即给了我
Error: You must `brew link ghostscript' before octave can be installed
Run Code Online (Sandbox Code Playgroud)
我做到了,它给了我以下内容:
Error: Could not symlink bin/dvipdf
Target /usr/local/bin/dvipdf
already exists. You may want to remove it:
rm /usr/local/bin/dvipdf
To force the link and overwrite all conflicting files:
brew link --overwrite ghostscript
To list all files that would be deleted:
brew link --overwrite --dry-run ghostscript
Run Code Online (Sandbox Code Playgroud)
我跑了最后一个,它向我展示了一堆我以前从未见过的文件.我该怎么办?用brew链接删除它们 - 覆盖ghostscript,还是做点什么?
谢谢
不仅仅是一般情况,我有一个非常具体的例子:在GSL(GNU科学库)中,使用的主要函数类型(为了执行集成,根查找,...)是gsl_function,它有一个属性function类型是 double(*)(double, void *)
说我想创建一个gsl_function从double a_squared(double a) {return a*a};.我a__squared的类型是double(*)(double)我想创建一个convert函数接受参数(double(*)(double) f)并返回一个double(*)(double, void *)满足的类型的对象convert(f)(double a, NULL) == f(a)
但经过一些研究,似乎我无法在我的convert函数中定义另一个函数.如何进行 ?