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
OSX El Capitan PCP Installation failure #48
Comments
|
Attaching a installer file. |
|
damn, upload won't work for some reason, I've pasted it as a gist: |
|
Looks like it all goes pear-shaped here (EPERM?) ... very strange, because the uninstall of the previous version seems to rmdir that path successfully. Oct 14 09:07:43 paul installd[373]: ./postupgrade: /bin/mkdir -p /usr/include/pcp |
|
so, after the El Capitan upgrade,
|
|
weirdly.. Even as |
|
and here it is... https://en.wikipedia.org/wiki/System_Integrity_Protection |
|
Interesting read, thanks Paul - it sounds like we should start building PCP on Mac such that binaries, headers, etc end up in /usr/local rather than /usr (from that article anyway). OOC, is /usr/local/bin on the default path on El Capitan, or would such a move break things? |
|
I can't say I'm 100% sure because I've probably modified my local account, but my
|
pcpemail
commented
Oct 17, 2015
|
Random two cents: I had a look at this out of curiosity and found that the powell:~ serhei$ ls -l /etc/paths -rw-r--r-- 1 root wheel 45 22 Aug 17:35 /etc/paths powell:~ serhei$ ls -l /etc/paths.d total 16 -rw-r--r-- 1 root wheel 13 11 Aug 2014 40-XQuartz -rw-r--r-- 1 root wheel 22 27 Jul 22:13 TeX powell:~ serhei$ cat /etc/paths.d/40-XQuartz /opt/X11/bin powell:~ serhei$ cat /etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin So there seem to be a lot of tricks available for software to put itself on I know for a fact that I installed XQuartz (which installs under /opt There are also package managers for OS X, namely MacPorts and Homebrew. -- Serguei Makarov On Thu, Oct 15, 2015 at 9:49 PM, Paul Smith notifications@github.com
|
|
I tried a few things, having found that https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md The gist being to change the ownership of from the installer log:
I can't create this directory even with What's needed in |
|
The PCP API header files (like pmapi.h, pmda.h, etc) are put there for people building tools using C/C++. They can safely transition to being below /usr/local/include though. |
natoscott
added a commit
that referenced
this issue
Nov 24, 2015
|
Verified fix in upstream master branch, El Capitan with SIP enabled will be able to build PCP from release pcp-3.10.9 onward. |
natoscott
closed this
Nov 25, 2015
|
Nathan while we wait for further work on #52 could you provide a link to a DMG from your OSX build for 3.10.9 ? I could really do with that to use and share around here in Aconex. |
|
Hi Paul, I don't have a working Qt installation on this build machine atm, so you probably don't want this build. I'll make sure its resolved before next release though (2 weeks). Also, no need to wait for me on the PackageMaker vs pkgbuild problem -- if someone else could investigate the necessary changes to the "build/mac/build-installer" script to support pkgbuild (or even just provide the right incantation/options for pkgbuild use), that would be extremely helpful. |
|
I actually tried to get I'm not even sure if I have a Qt installation locally either. I guess I would like to know, and help document what is required to build on OSX, right now it doesn't work for me, and for others I guess, so whatever machine you are building the OSX images for is a single point of failure, because it will be tricky to setup another machine to create any future builds if we are not able to correctly document or script the steps needed to install the necessary bits? I will endevour to keep poking about, and I will reach out to IRC too when I get a chance to work on this to see if we can collaborate together. I'll use other Engineers here at Aconex to help test the steps needed too so we can be sure we have a repeatable series of steps. |
|
Does not help El Capitan per se, but I now have a successful Mac OS X 10.8.0 build and a recipe. |
|
Hi Ken! I see these commits with interest. I dug a little into your README, and notice that we might have a simpler way. I notice there is still reference to MacPorts, however that system has generally been out of favour for new, and replaced with something called HomeBrew: I think you could get away without needing the manual installation steps if you use Homebrew by using: brew install libmicrohttpd pixman cairo libpng xz Once you have Homebrew installed. I am still having an issue however, I'll post the logs here shortly. |
|
Here's the build error from the non-verbose running:
|
|
Maybe that's a cairo version compatability issue, here's the version Homebrew has installed:
|
|
other package version:
|
|
Paul, Your build is failing because the libmicrohttpd that the PCP build is linking against is for the wrong arch. Is it possible that you have multiple libmicrohttpd's installed ... one from HomeBrew and one the PCP build is finding? |
|
:-P You are of course correct Ken, but in the spirit of hoping that we get more OSX users actually building this thing, it may be a good idea to 'bend a little' to the momentum of where the OSX community is. The more esoteric the environment, the less likely it will be for anyone to bother.. Loads of Devs will have Homebrew; they'll be up and going quicker if we do a bit more following.. :) Anyway, in the spirit of Borot, I bring you "GREAT SUCCESS". I have discovered the need to use Homebrew to install the dependencies with the So what I did was:
Then I get a cleanly built tree:
Of course I still can't see a DMG being built anywhere, but I'll take it as a success that a clean checkout of your tree with the Homebrew install is working cleanly, this is awesome. Thanks! |
|
so the configure is still looking for PackageMaker, which is just simply not available for later versions of OSX anymore (I really think it's stupid of Apple to do this) From the
So somehow need to work out how to change PackageMaker -> pkgbuild, I can't yet make head or tails of it as yet, because I'm not sure what PackageMaker was doing originally.. |
|
ok so getting somewhere, I realise now the difference between a
This creates the
So the last remaining trick I think is that the Also, late breaking, the |
|
Just documenting where I got to in the end before Beer-O'Clock, I started trying to hack the
This doesn't really work... The I wonder if there are more errors going on during the build where it's literally not building anything still.. All I have for the Mac build is a directory shell of Mac-y things needed, but not the actual PCP binaries... Unless they're somewhere I am too stupid to see. |
|
Hi Paul - good progress! A few random hints that might help ... | ... what is actually missing is the actual contents of PCP binaries. That pcp-3.10.9/build/mac/idb file is the key here. It tells the packaging tool where to find the built binaries and where theshould up when installed. You should see a pcp-3.10.9/src/pmlogger/pmlogger binary, which that idb file references (and maps to a usr/local/bin/pmlogger end point). | I wonder if there are more errors going on during the build where it's literally not building anything still.. When you use Makepkgs, there is a ./Logs/pcp file that will give you all the details about what got built, what got packaged, etc... skip to the end for any errors. | So somehow need to work out how to change PackageMaker -> pkgbuild, I can't yet make We'll want to get to the point where the configure.ac script detects pkgbuild and passes that down to the build/mac directory for use in that part of the build. We may want a separate build-installer alike script for pkgbuild if its a very different packaging process to PackageMaker. |
|
pcp-3.10.9/build/mac/idb is literally not there, I will have to dig in to On Fri, Dec 4, 2015 at 5:31 PM Nathan Scott notifications@github.com
|
|
I get a sense that maybe my The text:
and many many many of that ilk is possibly telling... |
|
btw, I think this issue needs to be re-opened (it's closed - but I can't build).. I am getting a bit further, the I'll see if I can have the build-installer further to check for pkgbuild a bit more. |
|
| btw, I think this issue needs to be re-opened (it's closed - but I can't build).. Yep, sure - done. There are actually a couple of known issues remaining here... | [...] only works if the PackageMaker or it's ilk is discovered This is the first problem - "no build support for /usr/bin/pkgbuild". After that there is a second issue that the GUI tools cannot successfully build with Qt5 yet, and Qt4 cannot be installed on El Capitan. Some work has been done on the second issue, but there's a fair way to go yet (there's a cascading issue that we need Qwt6.1, which supports Qt5, but pmchart needs work to adapt to the interface changes there). It's never easy is it? |
natoscott
reopened this
Dec 9, 2015
|
Ok I have forked and committed one change that I have managed to get to work on El Capitan using Homebrew ( I make no claims that this is the right way to do it, I'm sure if we want to have dual PackageMaker/pkgbuild support much more work needs to be done. But the bloody thing now works on my OSX so I'll take it for now!:
|
|
Incidentally @natoscott your reference to QT and El Capitan, Homebrew seems to have ways to install
I'm going to try a Where did you find that QT won't work on El Capitan ? |
|
| Homebrew seems to have ways to install qt and qt5 and when looking at qt it looks to be version 4: Oh, that's interesting and that might well work (its a rebuild, I believe, and not binaries from qt.io). | Where did you find that QT won't work on El Capitan ? I attempted to install both the current version (5.x) and the latest 4.8.x from qt.io - the latter fails to install, the former is a-OK. AIUI 5.x is the tested-on-El-Capitan version (by the folk releasing Qt). |
|
I'm getting closer, looks like a non |
|
close, but not breaking out the cigars just yet:
|
|
Looks like it is there as part of Homebrew install, but in this location:
|
tallpsmith commentedOct 13, 2015
I upgraded my OSX to the latest El Capitan release, noticed pmchart was no longer on the path, so tried to just reinstall it, but it failed.
I've attached the full install log, I suspect permissions of some PCP directories have been borked by some part of the El Capitan upgrade.
I'll see if I can work out a hack to fix it, but it may need some changes to the PCP installer ?