Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: file not found: -lsigrok when installing sigrok-cli #10

Open
soyeb opened this issue Jun 15, 2016 · 1 comment
Open

ld: file not found: -lsigrok when installing sigrok-cli #10

soyeb opened this issue Jun 15, 2016 · 1 comment

Comments

@soyeb
Copy link

soyeb commented Jun 15, 2016

I have a fairly fresh brew installation on my machine. I followed the procedure to install sigrok on the website, but when I get the step to install sigrok-cli, I get the following:

$ brew install --HEAD --with-libserialport sigrok-cli
==> Installing sigrok-cli from rene-dev/sigrok
==> Cloning git://sigrok.org/sigrok-cli
Updating /Users/soyeb/Library/Caches/Homebrew/sigrok-cli--git
==> Checking out branch master
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/sigrok-cli/HEAD
==> make install
Last 15 lines from /Users/soyeb/Library/Logs/Homebrew/sigrok-cli/03.make:
install

CC main.o
CC show.o
CC device.o
CC session.o
CC input.o
CC decode.o
CC parsers.o
CC anykey.o
CC options.o
CCLD sigrok-cli
ld: file not found: -lsigrok
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sigrok-cli] Error 1
/usr/local/Library/Homebrew/build.rb:180:in dump': can't dump anonymous class #<Class:0x007f957d857e28> (TypeError) from /usr/local/Library/Homebrew/build.rb:180:inrescue in

'
from /usr/local/Library/Homebrew/build.rb:169:in <main>' Error: marshal data too short Please report this bug: https://git.io/brew-troubleshooting /usr/local/Library/Homebrew/utils/fork.rb:39:inload'
/usr/local/Library/Homebrew/utils/fork.rb:39:in block (3 levels) in safe_fork' /usr/local/Library/Homebrew/utils.rb:468:inignore_interrupts'
/usr/local/Library/Homebrew/utils/fork.rb:26:in block (2 levels) in safe_fork' /usr/local/Library/Homebrew/utils/fork.rb:7:inopen'
/usr/local/Library/Homebrew/utils/fork.rb:7:in block in safe_fork' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:88:inmktmpdir'
/usr/local/Library/Homebrew/utils/fork.rb:6:in safe_fork' /usr/local/Library/Homebrew/formula_installer.rb:574:inbuild'
/usr/local/Library/Homebrew/formula_installer.rb:236:in install' /usr/local/Library/Homebrew/cmd/install.rb:275:ininstall_formula'
/usr/local/Library/Homebrew/cmd/install.rb:149:in block in install' /usr/local/Library/Homebrew/cmd/install.rb:149:ineach'
/usr/local/Library/Homebrew/cmd/install.rb:149:in install' /usr/local/Library/brew.rb:87:in'

But libsigrok is installed:

$ ls -l /usr/local/lib/libsigrok.*
lrwxr-xr-x 1 soyeb admin 46 6 Jun 10:31 /usr/local/lib/libsigrok.3.dylib -> ../Cellar/libsigrok/HEAD/lib/libsigrok.3.dylib
lrwxr-xr-x 1 soyeb admin 40 6 Jun 10:31 /usr/local/lib/libsigrok.a -> ../Cellar/libsigrok/HEAD/lib/libsigrok.a
lrwxr-xr-x 1 soyeb admin 44 6 Jun 10:31 /usr/local/lib/libsigrok.dylib -> ../Cellar/libsigrok/HEAD/lib/libsigrok.dylib

and it's in my DYLD path:

$ echo $DYLD_LIBRARY_PATH
/usr/local/lib

@pldubouilh
Copy link
Contributor

Might be because brew's trying to get libsigrok from homebrew/science/libsigrokdecode, and not this repo. See #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants