-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Problem in installing vagrant-libvirt and vagrant-kvm #5118
Comments
I have worked on getting vagrant with libvirt (and lxc) running on fedora21. There is a trick I found to work: use the gold linker instead of the bfd one: alternatives --set ld /usr/bin/ld.gold Here is the long story: |
I think the lession is that it is not a good idea to ship some C-libraries in embedded. Why are the libs like liblzma shipped at all in the first place? |
FYI fedora 21 has now official vagrant and vagrant-libvirt RPMs. As far as I know vagrant-kvm project becomes abandoned (see https://github.com/adrahon/vagrant-kvm). |
@obnoxxx They're shipped because we've run into the inverse issue when we used to not ship them: the system libraries can't be used by the embedded binaries. :) You can't win there. Please use @obnoxxx's workaround. I don't see any other possible workaround here other than to get it to compile to the embedded LZMA. |
Just two cents: having crashed into the same problem, I personally went for replacing vagrant's liblzma by a symlink to the system's liblzma. This fixed the problem, and avoided the pile of issues one can have when using ld.gold. |
what are the issues with ld.gold ? |
Did a bit of googling: http://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience In any case, I prefer promoting a fix local to vagrant (the symlink) rather than a global change -- and as fundamental -- as changing the linker. If my distribution developers decided to not give me the choice of changing the linker, I personally assume that they had good reasons rather than having to find out what the hell is going on later. |
I saw the error I resolved it after installing ruby-devel and gcc ( |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
As I wrote in vagrant-libvirt/vagrant-libvirt#290 ...
I tried to install vagrant-libvirt on a fresh Fedora 21 Installation.
I did a:
And
mkfm.log
I also installed the know dependencies:
libxslt-devel
,libxml2-devel
andlibvirt-devel
Installing
vagrant-kvm
produces the same error.There is a workaround:
So I guess the embedded lib versions are linked wrong. I checked this with
objdump
and got this as result, the.xxx
is the original vagrant, the others the OS versions.and my system libs have following dynamic symbol table:
Since I'm not a programmer I hope the dynamic symbol tables make any sense.
The text was updated successfully, but these errors were encountered: