Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Octave install failed #5446

Closed
wcbeard opened this issue May 2, 2011 · 16 comments
Closed

Octave install failed #5446

wcbeard opened this issue May 2, 2011 · 16 comments

Comments

@wcbeard
Copy link

wcbeard commented May 2, 2011

I installed Octave earlier, while I had some Macports remnants installed, but gnuplot failed (it appeared to be looking for some libcurse... something in the Macports area that didn't exist). So I uninstalled and tried to reinstall, but it's failed about 3 times. I cleaned out the rest of Macports and took some other recommendations from the brew doctor to no avail.

I didn't update Xcode since I'm not sure how to get Xcode 4 without paying for it, but thought I'd submit this issue in case it's helpful. I'm hoping not to be defamed to my mom.

The gist is 950585.

-Chris

@adamv
Copy link
Contributor

adamv commented May 2, 2011

Please post an HTTP link to the gist.

@wcbeard
Copy link
Author

wcbeard commented May 2, 2011

@adamv
Copy link
Contributor

adamv commented May 5, 2011

Can you post the entire gist, including the verbose "configure" output at the time of the formula?

Also, if you have a lcms.pc file in /usr/local/lib/pkgconfig or /opt/lib/pkgconfig, please gist that as well.

@wcbeard
Copy link
Author

wcbeard commented May 5, 2011

Gist said the output was too large, but I put up more from the beginning. Should I make another gist file with the rest, or is this enough?

https://gist.github.com/957196

@adamv
Copy link
Contributor

adamv commented Jun 14, 2011

Will need you to do brew update and then gist your brew doctor and the very end of brew install -v .... Post these if this is still an issue.

@adamv adamv closed this as completed Jun 14, 2011
@wcbeard
Copy link
Author

wcbeard commented Jun 15, 2011

I brew update d it, and did the other things. The gist is here; I wasn't sure how little of the brew install output, so I pasted everything that was on the iTerm screen.

@adamv adamv reopened this Jun 15, 2011
@adamv
Copy link
Contributor

adamv commented Jun 15, 2011

A non-Homebrew version of little-cms is being picked up:

can't read /opt/local/lib/liblcms.la: No such file or directory

Might need to mv /opt /ignoreme for a while and see if that works; Octave's config script is looking in this other folder as well.

@wcbeard
Copy link
Author

wcbeard commented Jun 16, 2011

I moved the /opt (which is empty) to a new folder /ignoreme in the root directory, and tried to brew install it again, but it gave similar errors:

grep: /opt/local/lib/liblcms.la: No such file or directory
/usr/local/bin/gsed: can't read /opt/local/lib/liblcms.la: No such file or directory
libtool: link: `/opt/local/lib/liblcms.la' is not a valid libtool archive

@wcbeard
Copy link
Author

wcbeard commented Sep 21, 2011

I suspected that there was a problem with graphicsmagick (dependency for Octave), so I uninstalled it and after trying a couple times got Octave to install. But now brew doctor tells me

 ==> You have uncommitted modifications to Homebrew core
 Unless you know what you are doing, you should: git reset --hard

I tried git reset --hard from /usr/local/ but it didn't help. Where should I reset it from?

@wcbeard wcbeard closed this as completed Sep 21, 2011
@Sharpie
Copy link
Contributor

Sharpie commented Sep 21, 2011

I tried git reset --hard from /usr/local/ but it didn't help. Where should I reset it from?

If you don't have any personal modifications to the master branch that you want to save:

cd `brew --prefix`
git checkout master
git reset --hard origin/master

@wcbeard
Copy link
Author

wcbeard commented Sep 21, 2011

Hmm...something seems amiss, but I doubt it's a big deal.

~$ cd `brew --prefix`
/usr/local$ git checkout master
Already on 'master'
/usr/local$ git reset --hard origin/master
HEAD is now at 82f85cd ffmpegthumbnailer: Update to 2.0.7
/usr/local$ brew doctor 
==> You have uncommitted modifications to Homebrew core
Unless you know what you are doing, you should: git reset --hard

/usr/local$ 

@Sharpie
Copy link
Contributor

Sharpie commented Sep 21, 2011

Ahh... you probably have untracked stuff in ``brew --prefix/Library/Contributions/examples---these "external commands" can overlay the core brew commands.

@wcbeard
Copy link
Author

wcbeard commented Sep 21, 2011

I have these things there but I'm not sure what they are. Can I just leave them there, or do they need to be deleted?

brew-audit.rb*
brew-bottle.rb*
brew-depstree.rb*
brew-dirty.rb*
brew-fetch.rb*
brew-graph*
brew-grep*
brew-leaves.rb*
brew-linkapps.rb*
brew-man*
brew-mirror-check.rb*
brew-missing.rb*
brew-options.rb*
brew-pull.rb*
brew-readall.rb*
brew-server*
brew-switch.rb*
brew-test.rb*
brew-unpack.rb*
brew-which.rb*

@Sharpie
Copy link
Contributor

Sharpie commented Sep 21, 2011

cd to that directory and run git clean -fn to see which files are untracked. Run git clean -f to remove them.

Some of these commands, such as brew-audit and brew-fetch have graduated to proper core commands. Others are simply provided but are either unsupported, undocumented or tools that the devs wrote as one-off hacks to help with certain situations.

@Sharpie
Copy link
Contributor

Sharpie commented Sep 21, 2011

Also, see the "External Commands" wiki page for a description of what they do:

https://github.com/mxcl/homebrew/wiki/External-Commands

@wcbeard
Copy link
Author

wcbeard commented Sep 21, 2011

Thanks. I got rid of those, but looks like there's more. Unless these are critical I guess I'll clean them too to satisfy the doctor.

Would remove Library/Aliases/sshfs
Would remove Library/Formula/allegro.rb
Would remove Library/Formula/distribute.rb
Would remove Library/Formula/ncursesw.rb
Would remove Library/Formula/pip.rb
Would remove Library/Homebrew/beer_events.rb
Would remove Library/Homebrew/brew.h.rb
Would remove Library/Homebrew/brew_doctor.rb
Would remove Library/Homebrew/update.rb

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants