Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Unable to run 'make' on Fedora Distro #370

Closed
aanm opened this issue Jan 27, 2015 · 13 comments
Closed

Unable to run 'make' on Fedora Distro #370

aanm opened this issue Jan 27, 2015 · 13 comments
Labels
Milestone

Comments

@aanm
Copy link

aanm commented Jan 27, 2015

Hi,
I was unable to run 'make' on Fedora.
It returned:
/bin/ld: cannot find -lpcap
Although there's a libpcap-devel package, it doesn't provide the "libpcap.a".
To fix it, you just have to build it from libpcap.a from sources (http://www.tcpdump.org/release/).
And copy it to /usr/lib/libpcap.a

@rade
Copy link
Member

rade commented Jan 27, 2015

The other issue was the absence of the static libs for libpthread and libc. This was fixed by installing glibc-static.

@rade rade added the chore label Jan 28, 2015
@rade
Copy link
Member

rade commented Jan 28, 2015

We should update our docs

@rade
Copy link
Member

rade commented Jan 29, 2015

@dpw iirc you mentioned that you ran into a bunch of problems building weave on Fedora. Anything other than the above?

@dpw
Copy link
Contributor

dpw commented Jan 29, 2015

I'm not sure.

But we shouldn't be recommending that people install non-distro libs into system-wide locations, because then we risk breaking stuff for them. Which means you need to set the appropriate environment variables to 'go build' to make it use the alternate libpcap and associated header file.

If we are going to document how to build under other distros, it might be better simply to recommend building in a debian/ubuntu container.

@rade
Copy link
Member

rade commented Jan 29, 2015

If we are going to document how to build under other distros, it might be better simply to recommend building in a debian/ubuntu container.

Well, we already have the vagrant instructions.

Perhaps we just need to tweak the docs in some other way, e.g. put the vagrant section first.

@aanm
Copy link
Author

aanm commented Jan 29, 2015

@dpw
If I may, and in my humble opinion, one of the points of weave's favor should be to have docker networking running on multiple hosts. That multi architecture structure should allow weave to run on different distros and not only on debian/ubuntu. I think it's better to fix those issues now than in the future when it could probably be irreversible.

@rade
Yes, I think it would probably be better to have the "easy" mode first and then distros related.

@rade
Copy link
Member

rade commented Jan 29, 2015

@aanm you don't need to build weave in order to run it.

@aanm
Copy link
Author

aanm commented Jan 29, 2015

@rade Oh yeah, I completely forgot about that.
@dpw Forget what I said :-)

@dpw
Copy link
Contributor

dpw commented Jan 29, 2015

Well, we already have the vagrant instructions.

Perhaps we just need to tweak the docs in some other way, e.g. put the vagrant section first.

Haven't you heard my opinion of vagrant? Or are you just teasing?

What's wrong with recommending building in a container?

@rade
Copy link
Member

rade commented Jan 29, 2015

What's wrong with recommending building in a container?

Nothing. But somebody would actually have to make that work and document it.

@aanm
Copy link
Author

aanm commented Jan 29, 2015

I thought you were talking about using weave (as release) inside vagrant and not building it

@dpw
Copy link
Contributor

dpw commented Feb 2, 2015

@dpw iirc you mentioned that you ran into a bunch of problems building weave on Fedora. Anything other than the above?

I suspect that the WEAVETOOLS_EXES build step doesn't work under fedora with selinux enabled (due to the use of the docker run -v option).

@rade
Copy link
Member

rade commented Feb 28, 2015

This has been superseded by #387.

@rade rade closed this as completed Feb 28, 2015
@rade rade added this to the 0.10.0 milestone Apr 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants