简体   繁体   English

更新八度:链接安装

[英]updating octave: linking the installation

I have OSX 10.10.5 with Octave 3.4.0 running (installed, who knows how, I did it a million different ways through port, file extraction, ftp, homebrew…). 我有运行Octave 3.4.0 OSX 10.10.5 (已安装,谁知道该怎么做,我通过端口,文件提取,ftp,自制软件...做了一百万种不同的方式)。 I tried to update my Programme ( brew install octave or sudo port install octave ) and Terminal spits out: 我试图更新我的程序( brew install octavesudo port install octave ),并且终端吐出:

Warning: octave-3.8.2 already installed, it's just not linked

Okay, great. 好,太棒了。 So I have a better programme somewhere installed. 所以我在某个地方安装了更好的程序。 What now? 现在怎么办? How on earth am I supposed to “just link ” the newer installation? 我到底该如何“仅仅链接 ”较新的安装?

If you install octave with Homebrew and it doesn't link it it should tell you why. 如果您使用Homebrew安装octave并且没有链接,它将告诉您原因。 You can force Homebrew to link octave with 您可以强制Homebrew将octave

$ brew link --overwrite octave

You can also add the --dry-run option to check and see what Homebrew will do to link octave 您还可以添加--dry-run选项来检查并查看Homebrew将如何链接octave

$ brew link --overwrite --dry-run octave

A possible reason for Homebrew not linking octave is that you've installed it by another method, MacPorts for instance. Homebrew不链接octave可能原因是您通过另一种方法(例如MacPorts)安装了它。 It is not recommended that you use both Homebrew and MacPorts on the same system. 不建议您在同一系统上同时使用Homebrew和MacPorts。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM