-
Notifications
You must be signed in to change notification settings - Fork 6
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
/bin/ld: cannot find -luv #28
Comments
Thanks for forwarding the report to me @raiph - that line you posted is filled in by LibraryMake, which uses the build flags from My guess is that the user installed a pre-built Unfortunately, without knowing more about how the user installed Rakudo, there's not much more I can do! |
@hoelzro I installed rakudo/perl6 with |
@hhg7 Is that rakudo/perl6 package in the default CentOS repos? Also, which version of CentOS are you using? |
Rob, have you read (answer to) How can I figure out why Linenoise is failing to install?? This led to a PR which you merged but I think it's important you read that SO answer. Also, from the merged PR:
That's not directly relevant here because that's windows and this is linux but thought I'd mention it. |
@raiph I haven't seen that SO thread - thanks for pointing it out! That issue sounds more like a problem with hardcoding DLL/SO prefixes; this issue sounds more like "MoarVM is telling Rakudo that it was built with |
I'm having the same issue on Ubuntu.
My system has a package called |
Quoting https://colabti.org/irclogger/irclogger_log/moarvm?date=2020-06-10#l55:
|
Hi @ElectricCoffee, Stefan's comment (above) suggests MoarVM normally ships with its own libuv but that your MoarVM perhaps doesn't. If you could post details about your MoarVM install beyond "Ubuntu", and especially the build log showing your MoarVM build output, that would be wonderful. |
@raiph how do I provide this information? |
Two options I can think of:
Thanks for following up. |
@raiph Here's the installation:
And here's installing Linenoise
|
\o/ That's not the build info, but it looks like the package name is enough to pursue this. The first match from a google for "2019.11+dfsg-2build2" is https://launchpad.net/ubuntu/+source/moarvm. Clicking on the 2019.11+dfsg-2build2 link on that page gets us to https://launchpad.net/ubuntu/+source/moarvm/2019.11+dfsg-2build2 which says it was uploaded by Matthias Klose, who it looks is contactable by email. I'll send an email linking to this comment and see how that goes. Thanks @ElectricCoffee! |
TL;DR:
Why does linenoise need libuv?
@con (see below) didn't come here to try figure their issue out. If they had, and had followed the procedure I followed (take something from the error message and search for it) then "luv" wouldn't have helped and "ld" would have gotten a makefile line but then what? How would I or @con have been able to figure out the issue was libuv from that? Or some other route? I suspect I'd have ended up posting an issue. Which would presumably be fine given your awesome maintainer record but I thought I'd ask if you have a favorite resource or two to point problem solvers to regarding this Linenoise module for future reference.
The long version:
In SOQ Installing Linenoise for Perl6 on CentOS: cannot find library “luv” @con shows the error they were getting when installing Linenoise:
I wildly guessed it was something to do with libuv and commented as such. (My guess was that the
-luv
was a-l
switch withuv
as its argument, and that alib
was being inserted by something. It looks like I was right.) A couple minutes later @con then answered their question and noted:In the meantime I was investigating by searching this repo for
ld
which led to this line:%LD% %LDSHARED% %LDFLAGS% %LIBS% %LDOUT%resources/libraries/%linenoise% linenoise%O%
I was 99% sure this was the right line because of the
resources/libraries/
bit which matched the make error message line. But before I got any further @con had figured the answer out from my libuv hint.The text was updated successfully, but these errors were encountered: