dpo / homebrew-openblas

Homebrew formulae for an openblas-based toolchain
BSD 2-Clause "Simplified" License
12 stars 1 forks source link

Error installing Octave #80

Open pdoak opened 6 years ago

pdoak commented 6 years ago

Hi, I am trying to install octave following the instructions in http://www.schoeps.org/home/2018/01/how-to-compile-gnu-octave-with-openblas-on-macos/ but I get the following errors:

==> Installing dpo/openblas/octave --devel --with-qt --with-java
==> Cloning https://hg.savannah.gnu.org/hgweb/octave
requesting all changes
adding changesets
adding manifests
adding file changes
added 25856 changesets with 170888 changes to 13896 files
new changesets 22412e3a4641:f7ef179096ee
updating to bookmark @
cloning subrepo gnulib from http://hg.octave.org/gnulib
requesting all changes
adding changesets
adding manifests
adding file changes
added 19691 changesets with 127883 changes to 11419 files (+17 heads)
new changesets cb836a3f733e:a9f7397854f5
3223 files updated, 0 files merged, 0 files removed, 0 files unresolved
==> Downloading https://savannah.gnu.org/bugs/download.php?file_id=42886
==> Downloading from https://savannah.gnu.org/file/octave-qt_wait_on_worker_thread-djs2017sep25.patch?file_id=42886
######################################################################## 100.0%
==> Downloading https://savannah.gnu.org/bugs/download.php?file_id=43077
==> Downloading from https://savannah.gnu.org/file/per_figure_displaypixelratio.diff?file_id=43077
######################################################################## 100.0%
==> Patching
==> Applying octave-qt_wait_on_worker_thread-djs2017sep25.patch
patching file libgui/src/main-window.cc
Hunk #1 FAILED at 217.
Hunk #2 FAILED at 1565.
2 out of 2 hunks FAILED -- saving rejects to file libgui/src/main-window.cc.rej
Error: Failure while executing; `patch -g 0 -f -p1 -i /private/tmp/octave--patch-20180907-33054-1pf6sn3/octave-qt_wait_on_worker_thread-djs2017sep25.patch` exited with 1.
>>> elapsed time 9m49s
schoeps commented 6 years ago

The patch does not apply anymore, i.e. during the development of octave the code has changed so much that the changes to match anymore. I do not recall if it is supposed to work but can you try to just remove the --devel switch and just compile the stable octave?

brew install dpo/openblas/octave --with-qt --with-java

By the way: the "official octave" of homebrew core has now the gui as well. You may try that one. It has some shortcomings though.

pdoak commented 6 years ago

@schoeps I uninstalled dpo/openblas/octave and just installed brew install octave. It runs in terminal but if I try octave --force-gui I get the following error: octave: GUI features missing or disabled in this build

Is there a way to get the GUI version on Mac OS 10.13.6

schoeps commented 6 years ago

The gui is not default, so you need brew install octave --with--qt (be warned, the gui should work mostly fine, the are a few issues with retina screens and it crashes on exit)

pdoak commented 6 years ago

@schoeps I reinstalled with brew reinstall octave --with--qt. I can run octave in terminal (no gui) but if I run octave --force-gui I still get: octave: GUI features missing or disabled in this build

Do you have any other suggestions?

schoeps commented 6 years ago

did you do brew update before? The most recent formula (https://github.com/Homebrew/homebrew-core/blob/master/Formula/octave.rb) should have qt support. If you run brew install octave --with-qt --verbose you see some more details. I cannot do much more right know. However, I will update my blog next week.

P.S. there was a typo in my previous post (only one dash between with and qt, maybe this explains the issue).

pdoak commented 6 years ago

@schoeps ran brew update and then brew install octave --with-qt --verbose but get the error octave 4.4.1 did not build

schoeps commented 6 years ago

This would justify a bug report for homebrew core :(

I am without computer right now, so I cannot help much. If you need Octave urgently then you may try our binary from http://octave-app.org....