Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Mac Install package does not include pmwebd? #5
Comments
|
Yes, currently the only solution would be to compile from source - the build needs to find an installed libmicrohttpd library, which isn't there by default on Mac OS X. We could add a static library into the build environment for the pre-built dmg files we ship with PCP releases - I'll look into that. |
JohnMorales
commented
Apr 14, 2015
|
installing libmicrohttpd gets me closer, but now I get the following:
|
|
@JohnMorales this patch should solve that build problem - can you confirm? thanks |
JohnMorales
commented
Apr 15, 2015
|
Fixed the compile, but won't link, it's looking for the 386 version, not sure what configure flag I need to get it to compile a 64 bit version. I tried
|
|
I'm guessing a bit here, but I think the PCP build generates universal (i386+x86_64) binaries, and you may be linking a libmicrohttpd that is x86_64 only. Where did your microhttpd library come from? (not sure if there's a way to check if its built "universal", off the to of my head) |
|
OK, reproduced it locally - it is indeed the universal binary issue. You can dodge this bullet by modifying two PCP build files - src/include/builddefs.in and src/include/buildrules - look for the references to "-arch i386". If you remove those (leaving the -arch x86_64), then do a make clean, then rebuild everything, you should get a build that completes. |
|
BTW, just found that in the libmicrohttpd sources (http://ftp.gnu.org/gnu/libmicrohttpd/) there is a note in the INSTALL file about how to build the library as a Universal binary on Mac OS X. |
|
ftp://ftp.pcp.io/projects/pcp/download/mac/pcp-3.10.4-2.dmg includes pmwebd with a static-linked libmicrohttpd. |
|
The -2 package is reported to be working fine. |
natoscott
closed this
May 13, 2015
pcpemail
referenced this issue
Aug 16, 2016
Closed
pmcd causes complete system lockup on CentOS 7 on VMware #107
AntonisFK
commented
Jun 8, 2017
|
I installed pcp on mac os x using pcp-3.11.9-1.pkg and Im having the same problem. |
southwolf commentedApr 8, 2015
I installed PCP using the pcp-3.10.0-1.dmg, but there is no pmwebd installed, making me unable to use webapi. Do I have to compile from source? Thank you.