On 2007-10-16, Emmanuel Hainry wrote:
Citando Adam Funk :
I'm trying to do `sudo port install ghc` on my old PowerBook and it's taking longer than I can leave the laptop sitting around to do it. I tried hitting Ctl-C and then running the same command again (this always worked when fink, which I recently switched from, was building from source packages) but I just get an insurmountable error (as far as I can tell) and have to start over again.
I know that normally make-driven builds can be interrupted and resumed, but I'm new to MacPorts. How can I do this?
Most ports can be interrupted during build and macports will try to resume the phase that was not completed. If it is in the build phase and make is used, it should work. ghc is one exception, so unfortunately, in this case, there is no way (that I know of) to use what was already built. To convince yourself, you can go into the build directory (something like /opt/local/var/macports/build/_*ghc/work/ghc*) and type make, you should get the same error).
I suppose ghc is the big dependency hump I'll have to get over.
However, if you just put your powerbook to sleep instead of interrupting the build, the build would go on when you wake it up again.
That works, thanks. (Now on day 2 of building ghc!)