What should I install to correct “ld: cannot find -lgbm and -linput” so that I can compile a Rust program?2019 Community Moderator ElectionHow should I install Fedora or any other Linux in USB hard disk and configure booting?What is the `[` program that resides in my system's /bin?Find and remove the packages that provides desktops environmentsHow to find and install specify package by command?How do I determine if a program is running when I start a shell and start that program if it is not already running?Cannot find certain packages to install in Fedora 22Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?How can I find out what plugin is missing in nmcli?Can gnome network manager automatically find certificate to install for WPA2 enterprise wifi?dnf and yum: can not find package

What should I install to correct "ld: cannot find -lgbm and -linput" so that I can compile a Rust program?

Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?

Can other pieces capture a threatening piece and prevent a checkmate?

What does "^L" mean in C?

How to define limit operations in general topological spaces? Are nets able to do this?

Open new file while keeping the focus on the the current buffer

Turning a hard to access nut?

I got the following comment from a reputed math journal. What does it mean?

Is this an example of a Neapolitan chord?

What is the plural TO / OF something

Constant Current LED Circuit

Recruiter wants very extensive technical details about all of my previous work

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

Practical application of matrices and determinants

What does "Four-F." mean?

Usage and meaning of "up" in "...worth at least a thousand pounds up in London"

Tikz: place node leftmost of two nodes of different widths

Why is indicated airspeed rather than ground speed used during the takeoff roll?

Dual Irish/Britsh citizens

Variable completely messes up echoed string

Unfrosted light bulb

The average age of first marriage in Russia

Have the tides ever turned twice on any open problem?

If "dar" means "to give", what does "daros" mean?



What should I install to correct “ld: cannot find -lgbm and -linput” so that I can compile a Rust program?



2019 Community Moderator ElectionHow should I install Fedora or any other Linux in USB hard disk and configure booting?What is the `[` program that resides in my system's /bin?Find and remove the packages that provides desktops environmentsHow to find and install specify package by command?How do I determine if a program is running when I start a shell and start that program if it is not already running?Cannot find certain packages to install in Fedora 22Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?How can I find out what plugin is missing in nmcli?Can gnome network manager automatically find certificate to install for WPA2 enterprise wifi?dnf and yum: can not find package










2















dnf search linput and dnf search lgbm don't yield any results. How can I get these in Fedora?



Edit: Backstory



I'm trying to build a Rust program, but it won't compile because apparently I'm missing some things. It said:



 = note: /usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


I installed libxkbcommon via dnf install libxkbcommon-devel and then the output looked like this:



 = note: /usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


So I figured I needed something called linput and lgbm as well, only I cannot find those with dnf search and I'm coming up empty-handed with google, hence the question! Guess I'm so new at Linux I didn't realize a backstory would be necessary for this. Now that I've supplied one, I wonder if that downvote could be reversed?










share|improve this question
























  • I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

    – Rokit
    2 hours ago











  • Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

    – Jeff Schaller
    2 hours ago











  • @JeffSchaller Question updated.

    – Rokit
    2 hours ago






  • 3





    That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

    – Jeff Schaller
    1 hour ago






  • 1





    It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

    – Jeff Schaller
    1 hour ago
















2















dnf search linput and dnf search lgbm don't yield any results. How can I get these in Fedora?



Edit: Backstory



I'm trying to build a Rust program, but it won't compile because apparently I'm missing some things. It said:



 = note: /usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


I installed libxkbcommon via dnf install libxkbcommon-devel and then the output looked like this:



 = note: /usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


So I figured I needed something called linput and lgbm as well, only I cannot find those with dnf search and I'm coming up empty-handed with google, hence the question! Guess I'm so new at Linux I didn't realize a backstory would be necessary for this. Now that I've supplied one, I wonder if that downvote could be reversed?










share|improve this question
























  • I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

    – Rokit
    2 hours ago











  • Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

    – Jeff Schaller
    2 hours ago











  • @JeffSchaller Question updated.

    – Rokit
    2 hours ago






  • 3





    That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

    – Jeff Schaller
    1 hour ago






  • 1





    It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

    – Jeff Schaller
    1 hour ago














2












2








2








dnf search linput and dnf search lgbm don't yield any results. How can I get these in Fedora?



Edit: Backstory



I'm trying to build a Rust program, but it won't compile because apparently I'm missing some things. It said:



 = note: /usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


I installed libxkbcommon via dnf install libxkbcommon-devel and then the output looked like this:



 = note: /usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


So I figured I needed something called linput and lgbm as well, only I cannot find those with dnf search and I'm coming up empty-handed with google, hence the question! Guess I'm so new at Linux I didn't realize a backstory would be necessary for this. Now that I've supplied one, I wonder if that downvote could be reversed?










share|improve this question
















dnf search linput and dnf search lgbm don't yield any results. How can I get these in Fedora?



Edit: Backstory



I'm trying to build a Rust program, but it won't compile because apparently I'm missing some things. It said:



 = note: /usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -lxkbcommon
/usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


I installed libxkbcommon via dnf install libxkbcommon-devel and then the output looked like this:



 = note: /usr/bin/ld: cannot find -linput
/usr/bin/ld: cannot find -lgbm
collect2: error: ld returned 1 exit status


So I figured I needed something called linput and lgbm as well, only I cannot find those with dnf search and I'm coming up empty-handed with google, hence the question! Guess I'm so new at Linux I didn't realize a backstory would be necessary for this. Now that I've supplied one, I wonder if that downvote could be reversed?







fedora repository






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 12 mins ago







Rokit

















asked 2 hours ago









RokitRokit

1244




1244












  • I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

    – Rokit
    2 hours ago











  • Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

    – Jeff Schaller
    2 hours ago











  • @JeffSchaller Question updated.

    – Rokit
    2 hours ago






  • 3





    That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

    – Jeff Schaller
    1 hour ago






  • 1





    It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

    – Jeff Schaller
    1 hour ago


















  • I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

    – Rokit
    2 hours ago











  • Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

    – Jeff Schaller
    2 hours ago











  • @JeffSchaller Question updated.

    – Rokit
    2 hours ago






  • 3





    That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

    – Jeff Schaller
    1 hour ago






  • 1





    It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

    – Jeff Schaller
    1 hour ago

















I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

– Rokit
2 hours ago





I don't understand why I got downvoted. I googled "fedora linput", "linux linput", and "linux input" hoping to find some repository I could add to dnf or find whatever package it lives in so I can install it. Nothing comes up.

– Rokit
2 hours ago













Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

– Jeff Schaller
2 hours ago





Could you give a little backstory as to how you came across those packages? Why do you believe they exist and are called that?

– Jeff Schaller
2 hours ago













@JeffSchaller Question updated.

– Rokit
2 hours ago





@JeffSchaller Question updated.

– Rokit
2 hours ago




3




3





That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

– Jeff Schaller
1 hour ago





That is an excellent update, thank you! It helps potential answerers understand why you want what you're asking for and what the potential misunderstanding(s) are.

– Jeff Schaller
1 hour ago




1




1





It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

– Jeff Schaller
1 hour ago






It's important to be careful how you word things here; there's a phenomenon known as an "XY problem" where you think you need "X" but it turns out you really need "Y". If, for example, there happened to be a Fedora repo named "lgbm", an answerer could have solved your apparent problem by showing how to add that repo, when in reality your problem lies with compiling a rust program and having ld complain about missing libraries. (I may have swapped "X" and "Y", but I hope you followed)

– Jeff Schaller
1 hour ago











2 Answers
2






active

oldest

votes


















4














What you are getting are error messages from the linker (ld), which is complaining that the libraries you are looking for are not available.



A message such as /usr/bin/ld: cannot find -linput actually means it was looking for a file named libinput.so. The -l flag is a command-line argument (to ld or to gcc) that expects the library name to follow and then the library name is used to form the file name which includes the lib prefix and the .so suffix (for dynamically loadable library, which is what is typically used in most distributions, Fedora included.)



So it turns out that the files you need are libinput.so and libgbm.so.



You can then use dnf provides to search for those files. Assuming you're using a 64-bit distribution, these libraries would be in /usr/lib64, so the full commands would be:



$ dnf provides /usr/lib64/libinput.so
libinput-devel-1.12.6-3.fc30.x86_64 : Development files for libinput
Repo : rawhide
Matched from:
Filename : /usr/lib64/libinput.so

$ dnf provides /usr/lib64/libgbm.so
mesa-libgbm-devel-19.0.0~rc7-1.fc30.x86_64 : Mesa libgbm development package
Repo : rawhide
Matched from:
Filename : /usr/lib64/libgbm.so


If you don't know the exact directory, you can also use dnf provides '*/libinput.so' or other wildcards if you know even less information about the files you want to search (and are willing to sort through more search results in look for something useful.)



In your case, it seems what you need is to:



$ sudo dnf install libinput-devel mesa-libgbm-devel


From that point on, dnf should also bring all other dependencies you need. Hopefully this is all you're missing to build the software you're building. But if you have further issues of missing libraries, using this information you might be able to find packages that ship those, assuming they're available in Fedora.






share|improve this answer




















  • 2





    Excellent providing-of-fish and teaching-how-to-fish!

    – Jeff Schaller
    46 mins ago











  • That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

    – Rokit
    19 mins ago






  • 1





    @Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

    – filbranden
    14 mins ago






  • 1





    Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

    – filbranden
    12 mins ago


















0














If this is the same thing I found related to this:



https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html




lightGBM is a gradient boosting framework that uses tree-based learning algorithms. It is designed to be distributed and efficient with the following advantages:



  • Faster training speed and higher efficiency.

  • Lower memory usage.

  • Better accuracy.

  • Support of parallel and GPU learning.

  • Capable of handling large-scale data.



On Linux LightGBM can be built using CMake and gcc or Clang.



Install CMake.



Run the following commands:



git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4





share|improve this answer

























  • good so far; are you able to address the -linput portion?

    – Jeff Schaller
    1 hour ago






  • 1





    I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

    – filbranden
    59 mins ago






  • 2





    I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

    – Rokit
    49 mins ago






  • 1





    @Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

    – cat
    1 min ago







  • 1





    @Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

    – cat
    45 secs ago










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506866%2fwhat-should-i-install-to-correct-ld-cannot-find-lgbm-and-linput-so-that-i-c%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














What you are getting are error messages from the linker (ld), which is complaining that the libraries you are looking for are not available.



A message such as /usr/bin/ld: cannot find -linput actually means it was looking for a file named libinput.so. The -l flag is a command-line argument (to ld or to gcc) that expects the library name to follow and then the library name is used to form the file name which includes the lib prefix and the .so suffix (for dynamically loadable library, which is what is typically used in most distributions, Fedora included.)



So it turns out that the files you need are libinput.so and libgbm.so.



You can then use dnf provides to search for those files. Assuming you're using a 64-bit distribution, these libraries would be in /usr/lib64, so the full commands would be:



$ dnf provides /usr/lib64/libinput.so
libinput-devel-1.12.6-3.fc30.x86_64 : Development files for libinput
Repo : rawhide
Matched from:
Filename : /usr/lib64/libinput.so

$ dnf provides /usr/lib64/libgbm.so
mesa-libgbm-devel-19.0.0~rc7-1.fc30.x86_64 : Mesa libgbm development package
Repo : rawhide
Matched from:
Filename : /usr/lib64/libgbm.so


If you don't know the exact directory, you can also use dnf provides '*/libinput.so' or other wildcards if you know even less information about the files you want to search (and are willing to sort through more search results in look for something useful.)



In your case, it seems what you need is to:



$ sudo dnf install libinput-devel mesa-libgbm-devel


From that point on, dnf should also bring all other dependencies you need. Hopefully this is all you're missing to build the software you're building. But if you have further issues of missing libraries, using this information you might be able to find packages that ship those, assuming they're available in Fedora.






share|improve this answer




















  • 2





    Excellent providing-of-fish and teaching-how-to-fish!

    – Jeff Schaller
    46 mins ago











  • That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

    – Rokit
    19 mins ago






  • 1





    @Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

    – filbranden
    14 mins ago






  • 1





    Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

    – filbranden
    12 mins ago















4














What you are getting are error messages from the linker (ld), which is complaining that the libraries you are looking for are not available.



A message such as /usr/bin/ld: cannot find -linput actually means it was looking for a file named libinput.so. The -l flag is a command-line argument (to ld or to gcc) that expects the library name to follow and then the library name is used to form the file name which includes the lib prefix and the .so suffix (for dynamically loadable library, which is what is typically used in most distributions, Fedora included.)



So it turns out that the files you need are libinput.so and libgbm.so.



You can then use dnf provides to search for those files. Assuming you're using a 64-bit distribution, these libraries would be in /usr/lib64, so the full commands would be:



$ dnf provides /usr/lib64/libinput.so
libinput-devel-1.12.6-3.fc30.x86_64 : Development files for libinput
Repo : rawhide
Matched from:
Filename : /usr/lib64/libinput.so

$ dnf provides /usr/lib64/libgbm.so
mesa-libgbm-devel-19.0.0~rc7-1.fc30.x86_64 : Mesa libgbm development package
Repo : rawhide
Matched from:
Filename : /usr/lib64/libgbm.so


If you don't know the exact directory, you can also use dnf provides '*/libinput.so' or other wildcards if you know even less information about the files you want to search (and are willing to sort through more search results in look for something useful.)



In your case, it seems what you need is to:



$ sudo dnf install libinput-devel mesa-libgbm-devel


From that point on, dnf should also bring all other dependencies you need. Hopefully this is all you're missing to build the software you're building. But if you have further issues of missing libraries, using this information you might be able to find packages that ship those, assuming they're available in Fedora.






share|improve this answer




















  • 2





    Excellent providing-of-fish and teaching-how-to-fish!

    – Jeff Schaller
    46 mins ago











  • That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

    – Rokit
    19 mins ago






  • 1





    @Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

    – filbranden
    14 mins ago






  • 1





    Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

    – filbranden
    12 mins ago













4












4








4







What you are getting are error messages from the linker (ld), which is complaining that the libraries you are looking for are not available.



A message such as /usr/bin/ld: cannot find -linput actually means it was looking for a file named libinput.so. The -l flag is a command-line argument (to ld or to gcc) that expects the library name to follow and then the library name is used to form the file name which includes the lib prefix and the .so suffix (for dynamically loadable library, which is what is typically used in most distributions, Fedora included.)



So it turns out that the files you need are libinput.so and libgbm.so.



You can then use dnf provides to search for those files. Assuming you're using a 64-bit distribution, these libraries would be in /usr/lib64, so the full commands would be:



$ dnf provides /usr/lib64/libinput.so
libinput-devel-1.12.6-3.fc30.x86_64 : Development files for libinput
Repo : rawhide
Matched from:
Filename : /usr/lib64/libinput.so

$ dnf provides /usr/lib64/libgbm.so
mesa-libgbm-devel-19.0.0~rc7-1.fc30.x86_64 : Mesa libgbm development package
Repo : rawhide
Matched from:
Filename : /usr/lib64/libgbm.so


If you don't know the exact directory, you can also use dnf provides '*/libinput.so' or other wildcards if you know even less information about the files you want to search (and are willing to sort through more search results in look for something useful.)



In your case, it seems what you need is to:



$ sudo dnf install libinput-devel mesa-libgbm-devel


From that point on, dnf should also bring all other dependencies you need. Hopefully this is all you're missing to build the software you're building. But if you have further issues of missing libraries, using this information you might be able to find packages that ship those, assuming they're available in Fedora.






share|improve this answer















What you are getting are error messages from the linker (ld), which is complaining that the libraries you are looking for are not available.



A message such as /usr/bin/ld: cannot find -linput actually means it was looking for a file named libinput.so. The -l flag is a command-line argument (to ld or to gcc) that expects the library name to follow and then the library name is used to form the file name which includes the lib prefix and the .so suffix (for dynamically loadable library, which is what is typically used in most distributions, Fedora included.)



So it turns out that the files you need are libinput.so and libgbm.so.



You can then use dnf provides to search for those files. Assuming you're using a 64-bit distribution, these libraries would be in /usr/lib64, so the full commands would be:



$ dnf provides /usr/lib64/libinput.so
libinput-devel-1.12.6-3.fc30.x86_64 : Development files for libinput
Repo : rawhide
Matched from:
Filename : /usr/lib64/libinput.so

$ dnf provides /usr/lib64/libgbm.so
mesa-libgbm-devel-19.0.0~rc7-1.fc30.x86_64 : Mesa libgbm development package
Repo : rawhide
Matched from:
Filename : /usr/lib64/libgbm.so


If you don't know the exact directory, you can also use dnf provides '*/libinput.so' or other wildcards if you know even less information about the files you want to search (and are willing to sort through more search results in look for something useful.)



In your case, it seems what you need is to:



$ sudo dnf install libinput-devel mesa-libgbm-devel


From that point on, dnf should also bring all other dependencies you need. Hopefully this is all you're missing to build the software you're building. But if you have further issues of missing libraries, using this information you might be able to find packages that ship those, assuming they're available in Fedora.







share|improve this answer














share|improve this answer



share|improve this answer








edited 16 mins ago

























answered 1 hour ago









filbrandenfilbranden

10.6k21646




10.6k21646







  • 2





    Excellent providing-of-fish and teaching-how-to-fish!

    – Jeff Schaller
    46 mins ago











  • That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

    – Rokit
    19 mins ago






  • 1





    @Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

    – filbranden
    14 mins ago






  • 1





    Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

    – filbranden
    12 mins ago












  • 2





    Excellent providing-of-fish and teaching-how-to-fish!

    – Jeff Schaller
    46 mins ago











  • That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

    – Rokit
    19 mins ago






  • 1





    @Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

    – filbranden
    14 mins ago






  • 1





    Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

    – filbranden
    12 mins ago







2




2





Excellent providing-of-fish and teaching-how-to-fish!

– Jeff Schaller
46 mins ago





Excellent providing-of-fish and teaching-how-to-fish!

– Jeff Schaller
46 mins ago













That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

– Rokit
19 mins ago





That did it! Thanks for the excellent answer. I have one question regarding the dnf search '*/libinput.so. When I execute that command I get a > in the terminal which is waiting for more input. I was expecting just a longer list. What does it need there?

– Rokit
19 mins ago




1




1





@Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

– filbranden
14 mins ago





@Rokit sorry I missed the closing quote in that command... Should have been dnf provides '*/libinput.so'. I fixed the answer to correct that. Glad this solved the issue you were having!

– filbranden
14 mins ago




1




1





Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

– filbranden
12 mins ago





Also, should have been provides (looks for files in the package) rather than search (looks for terms in package name and description.) Answer updated for that as well!

– filbranden
12 mins ago













0














If this is the same thing I found related to this:



https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html




lightGBM is a gradient boosting framework that uses tree-based learning algorithms. It is designed to be distributed and efficient with the following advantages:



  • Faster training speed and higher efficiency.

  • Lower memory usage.

  • Better accuracy.

  • Support of parallel and GPU learning.

  • Capable of handling large-scale data.



On Linux LightGBM can be built using CMake and gcc or Clang.



Install CMake.



Run the following commands:



git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4





share|improve this answer

























  • good so far; are you able to address the -linput portion?

    – Jeff Schaller
    1 hour ago






  • 1





    I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

    – filbranden
    59 mins ago






  • 2





    I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

    – Rokit
    49 mins ago






  • 1





    @Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

    – cat
    1 min ago







  • 1





    @Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

    – cat
    45 secs ago















0














If this is the same thing I found related to this:



https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html




lightGBM is a gradient boosting framework that uses tree-based learning algorithms. It is designed to be distributed and efficient with the following advantages:



  • Faster training speed and higher efficiency.

  • Lower memory usage.

  • Better accuracy.

  • Support of parallel and GPU learning.

  • Capable of handling large-scale data.



On Linux LightGBM can be built using CMake and gcc or Clang.



Install CMake.



Run the following commands:



git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4





share|improve this answer

























  • good so far; are you able to address the -linput portion?

    – Jeff Schaller
    1 hour ago






  • 1





    I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

    – filbranden
    59 mins ago






  • 2





    I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

    – Rokit
    49 mins ago






  • 1





    @Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

    – cat
    1 min ago







  • 1





    @Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

    – cat
    45 secs ago













0












0








0







If this is the same thing I found related to this:



https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html




lightGBM is a gradient boosting framework that uses tree-based learning algorithms. It is designed to be distributed and efficient with the following advantages:



  • Faster training speed and higher efficiency.

  • Lower memory usage.

  • Better accuracy.

  • Support of parallel and GPU learning.

  • Capable of handling large-scale data.



On Linux LightGBM can be built using CMake and gcc or Clang.



Install CMake.



Run the following commands:



git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4





share|improve this answer















If this is the same thing I found related to this:



https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html




lightGBM is a gradient boosting framework that uses tree-based learning algorithms. It is designed to be distributed and efficient with the following advantages:



  • Faster training speed and higher efficiency.

  • Lower memory usage.

  • Better accuracy.

  • Support of parallel and GPU learning.

  • Capable of handling large-scale data.



On Linux LightGBM can be built using CMake and gcc or Clang.



Install CMake.



Run the following commands:



git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake ..
make -j4






share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago









Jeff Schaller

43.4k1160140




43.4k1160140










answered 2 hours ago









Mark ScheckMark Scheck

114




114












  • good so far; are you able to address the -linput portion?

    – Jeff Schaller
    1 hour ago






  • 1





    I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

    – filbranden
    59 mins ago






  • 2





    I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

    – Rokit
    49 mins ago






  • 1





    @Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

    – cat
    1 min ago







  • 1





    @Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

    – cat
    45 secs ago

















  • good so far; are you able to address the -linput portion?

    – Jeff Schaller
    1 hour ago






  • 1





    I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

    – filbranden
    59 mins ago






  • 2





    I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

    – Rokit
    49 mins ago






  • 1





    @Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

    – cat
    1 min ago







  • 1





    @Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

    – cat
    45 secs ago
















good so far; are you able to address the -linput portion?

– Jeff Schaller
1 hour ago





good so far; are you able to address the -linput portion?

– Jeff Schaller
1 hour ago




1




1





I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

– filbranden
59 mins ago





I think in this case -lgbm wants the "Generic Buffer Management" API of Mesa for graphics rendering, which can be found in the mesa-libgbm package in Fedora. Also, typically my first advice is to look for an available package in your own distro (in this case, Fedora) rather than building from source. When available from the distro, life is much easier...

– filbranden
59 mins ago




2




2





I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

– Rokit
49 mins ago





I just built LightGBM. I also needed gcc-c++. How do I install it once it is built? I've always just installed packages via a package manager of some sort, never built from source. I also already had mesa-libgbm installed. Thanks for the help!

– Rokit
49 mins ago




1




1





@Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

– cat
1 min ago






@Rokit just a side note: after using make it is usually possible (if the authors included an install target) to use make install (or sudo make install if the Makefile wants to install system-wide) to copy the built objects to useful directories, but note that make install can be difficult to undo in many cases

– cat
1 min ago





1




1





@Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

– cat
45 secs ago





@Rokit if there's no install target (make: no rule to make target install) then you'll have to copy the built objects to the right folders yourself

– cat
45 secs ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f506866%2fwhat-should-i-install-to-correct-ld-cannot-find-lgbm-and-linput-so-that-i-c%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

Prove that NP is closed under karp reduction?Space(n) not closed under Karp reductions - what about NTime(n)?Class P is closed under rotation?Prove or disprove that $NL$ is closed under polynomial many-one reductions$mathbfNC_2$ is closed under log-space reductionOn Karp reductionwhen can I know if a class (complexity) is closed under reduction (cook/karp)Check if class $PSPACE$ is closed under polyonomially space reductionIs NPSPACE also closed under polynomial-time reduction and under log-space reduction?Prove PSPACE is closed under complement?Prove PSPACE is closed under union?

Is my guitar’s action too high? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Strings too stiff on a recently purchased acoustic guitar | Cort AD880CEIs the action of my guitar really high?Μy little finger is too weak to play guitarWith guitar, how long should I give my fingers to strengthen / callous?When playing a fret the guitar sounds mutedPlaying (Barre) chords up the guitar neckI think my guitar strings are wound too tight and I can't play barre chordsF barre chord on an SG guitarHow to find to the right strings of a barre chord by feel?High action on higher fret on my steel acoustic guitar