This repository has been archived by the owner. It is now read-only.

graphviz: Fails to link `realpath': No such file or directory #31051

Closed
sjackman opened this Issue Jul 22, 2014 · 3 comments

Comments

Projects
None yet
3 participants
Member

sjackman commented Jul 22, 2014

graphviz fails to link. The error is when linking fdp. fdp is a symlink to dot, and the error message is /usr/local/Library/Homebrew/keg.rb:88:in 'realpath': No such file or directory - /usr/local/bin/dot (Errno::ENOENT). See below for more details.

$ brew install --with-app graphviz
$ cd /usr/local/Cellar/graphviz/2.38.0/bin
$ ls -l dot fdp                           
-r-xr-xr-x  1 sjackman  admin  22448 22 Jul 14:33 dot
lrwxr-xr-x  1 sjackman  admin      3 22 Jul 14:33 fdp -> dot
$ brew link -v graphviz
Linking /usr/local/Cellar/graphviz/2.38.0... 
ln -s ../Cellar/graphviz/2.38.0/bin/acyclic acyclic
ln -s ../Cellar/graphviz/2.38.0/bin/bcomps bcomps
ln -s ../Cellar/graphviz/2.38.0/bin/ccomps ccomps
ln -s ../Cellar/graphviz/2.38.0/bin/circo circo
ln -s ../Cellar/graphviz/2.38.0/bin/cluster cluster
ln -s ../Cellar/graphviz/2.38.0/bin/dijkstra dijkstra
ln -s ../Cellar/graphviz/2.38.0/bin/dot dot
ln -s ../Cellar/graphviz/2.38.0/bin/dot2gxl dot2gxl
ln -s ../Cellar/graphviz/2.38.0/bin/dot_builtins dot_builtins
ln -s ../Cellar/graphviz/2.38.0/bin/edgepaint edgepaint
rm /usr/local/bin/acyclic
rm /usr/local/bin/bcomps
rm /usr/local/bin/ccomps
rm /usr/local/bin/circo
rm /usr/local/bin/cluster
rm /usr/local/bin/dijkstra
rm /usr/local/bin/dot
rm /usr/local/bin/dot2gxl
rm /usr/local/bin/dot_builtins
rm /usr/local/bin/edgepaint

/usr/local/Library/Homebrew/keg.rb:88:in `realpath': No such file or directory - /usr/local/bin/dot (Errno::ENOENT)
    from /usr/local/Library/Homebrew/keg.rb:88:in `realpath'
    from /usr/local/Library/Homebrew/keg.rb:88:in `for'
    from /usr/local/Library/Homebrew/keg.rb:28:in `suggestion'
    from /usr/local/Library/Homebrew/keg.rb:41:in `to_s'
    from /usr/local/Library/brew.rb:161:in `message'
    from /usr/local/Library/brew.rb:161:in `rescue in <main>'
    from /usr/local/Library/brew.rb:66:in `<main>'
Contributor

jacknagel commented Jul 23, 2014

The realpath error is actually happening while building the exception object for the actual error that occurred. Can you comment out this line and try to reproduce it again? Hopefully we can see the real error.

Contributor

jacknagel commented Jul 23, 2014

Err, rather than comment it out, just replace it with return "" or something.

Member

sjackman commented Jul 23, 2014

Thanks for your help, Jack. There was some cruft left in /usr/local/bin by Homebrew-cask. I've opened an issue here caskroom/homebrew-cask#5491 and retitled this issue.

@adamv adamv added the bug label Jul 24, 2014

@jacknagel jacknagel self-assigned this Jul 30, 2014

@jacknagel jacknagel closed this in 7b424c9 Jul 30, 2014

aerickson added a commit to aerickson/homebrew that referenced this issue Aug 3, 2014

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.