help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave gcc problem (Homebrew Mac)


From: Sebastian Schöps
Subject: Re: Octave gcc problem (Homebrew Mac)
Date: Fri, 5 May 2017 14:59:11 +0200

Ok, what about this?

# get new versions
brew update 

# install new versions
brew upgrade 

# uninstall broken octave
brew uninstall octave

# reinstall octave from source
brew install --build-from-source octave

Bye
Sebastian

> Am 05.05.2017 um 14:55 schrieb Vic Norton <address@hidden>:
> 
> Unfortunately your advice didn’t work for me, Sebastian. - Vic
> 
> ~$ brew install --build-from-source octave
> Updating Homebrew...
> ==> Auto-updated Homebrew!
> Updated 3 taps (caskroom/cask, homebrew/core, homebrew/science).
> ==> Updated Formulae
> certbot                                  homebrew/science/plink2
> git-extras                               homebrew/science/poretools
> homebrew/science/calculix-ccx            homebrew/science/qrupdate ✔
> homebrew/science/gmsh                    kubernetes-helm
> homebrew/science/p4est                   todoman
> homebrew/science/pastix                  yadm
> homebrew/science/plasma
> 
> Warning: homebrew/science/octave-4.2.1_2 already installed
> ~$ octave
> dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
>  Referenced from: /usr/local/bin/octave-cli
>  Reason: image not found
> Abort trap: 6
> 
>> On May 5, 2017, at 8:29 AM, Sebastian Schöps <address@hidden> wrote:
>> 
>> Dear Vic, 
>> 
>> you updated by purpose or accident your gcc. This may of course break 
>> dependencies like octave. The proper way is to recompile all dependencies, 
>> including octave
>> 
>> brew install --build-from-source octave 
>> 
>> This is necessary as there is currently no octave binary for the new gcc. 
>> However, there will be a new one soon since this is a known issue:
>> 
>> https://github.com/Homebrew/homebrew-science/issues/4972#issuecomment-299394176
>> 
>> Sebastian
>> 
>>> Am 05.05.2017 um 14:18 schrieb Vic Norton <address@hidden>:
>>> 
>>>> On May 4, 2017, at 5:25 PM, Vic Norton <address@hidden> wrote:
>>>> 
>>>> 
>>>>> On May 4, 2017, at 4:40 PM, Vic Norton <address@hidden> wrote:
>>>>> 
>>>>> Hi Sebastian,
>>>>> 
>>>>> I just did a brew upgrade and it killed octave. Here is the error message 
>>>>> I get.
>>>>> ~$ octave
>>>>> dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgfortran.3.dylib
>>>>> Referenced from: /usr/local/bin/octave-cli
>>>>> Reason: image not found
>>>>> Abort trap: 6
>>>>> 
>>>>> Apparently the problem is that
>>>>> /usr/local/opt/gcc
>>>>> has just become a symbolic link to
>>>>> /usr/local/Cellar/gcc/7.1.0
>>>>> rather than the previous
>>>>> /usr/local/Cellar/gcc/6.3.0_1.
>>>>> And a new libgfortran.4.dylib resides in the 7.1.0 version of gcc.
>>>>> 
>>>>> I hate to mess with Homebrew. I expect the problem might be fixed by 
>>>>> forcing
>>>>> /usr/local/opt/gcc
>>>>> to link to
>>>>> /usr/local/Cellar/gcc/6.3.0_1
>>>>> as before, but it does seem that Homebrew’s octave-cli should be adjusted 
>>>>> for the new address@hidden
>>>>> 
>>>>> What is your advice? Right now I am dead in the water.
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Vic 
>>>> 
>>>> Well, I hated to mess with Homebrew, but the above solution did work. I 
>>>> now have a working Octave. Here is what I did in Terminal.
>>>> 
>>>> 1. I changed my directory to /usr/local/opt
>>>> 2. I relabeled gcc as gcc-new
>>>> 3. I ran
>>>> $ ln -s /usr/local/Cellar/gcc/6.3.0_1 gcc
>>>> 
>>>> Now Octave 4.2.1 works as before, but I’ve messed up the latest Homebrew 
>>>> gcc in /usr/local/opt.
>>>> 
>>>> I don’t like this solution. I’d rather have an Octave that can use 
>>>> Homebrew’s address@hidden
>>>> 
>>>> -
>>>> Vic
>>> 
>>> This morning the Homebrew Octave was upgraded to 4.2.1_2, which now links 
>>> to address@hidden, so I undid the above kludge. Now the original error 
>>> message 
>>>>> ~$ octave
>>>>> dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgfortran.3.dylib
>>>>> Referenced from: /usr/local/bin/octave-cli
>>>>> Reason: image not found
>>>>> Abort trap: 6
>>> has gone away, but a new one has taken its place:
>>> ~$ octave
>>> dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgfortran.3.dylib
>>>  Referenced from: /usr/local/opt/qrupdate/lib/libqrupdate.1.dylib
>>>  Reason: image not found
>>> Abort trap: 6
>>> Apparently qrupdate has not been upgraded to link to address@hidden
>>> 
>>> I am giving up my kludges. Is there any way I can get good Octave from 
>>> Homebrew?
>>> 
>>> -
>>> Vic
>>> 
>>> 
>> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]