[KDE/Mac] kdesrc-build
Ian Wadham
iandw.au at gmail.com
Fri Nov 28 01:19:38 UTC 2014
Hi Jeremy,
On 28/11/2014, at 1:34 AM, Jeremy Whiting wrote:
> Thanks for the tips. Do I need to add something to my path or something to get kdesrc-build to find the perl installed by mac ports?
MacPorts should have set this up automatically by adding something like this to your ~/.profile file:
# MacPorts Installer addition on 2011-06-18_at_13:16:17: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export MANPATH=/opt/local/share/man:/usr/share/man
My full $PATH is thus /opt/local/bin:/opt/local/sbin:/Users/ianw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Note that OSX uses ~/.profile where Linux would use ~/.bashrc or some such.
> I've just installed p5.12-json and p5.12-lwp-useragent-determined and all dependencies, but I'm getting this when I try to run kdesrc-build:
I think you might follow René's advice on those, when you feel like tidying up, but they
will do for now. You can use sudo port deactivate or sudo port uninstall to tidy them away.
> kdesrc-build encountered an exceptional error condition: Runtime Error: Logical module groups require the Perl JSON module Can't continue, so stopping now.
>
> I'm ok at perl but wouldn't know where to start to figure out why it doesn't see the json module, any ideas?
If your path is like the above and the required Perl modules are in your "port installed"
output, you should have no problems getting kdesrc-build to run, BUT… here are
some problems I had when running kdesrc-build for the first time:
a) I tried the "separate user" approach recommended by kdesrc-build doco, but
ran into a number of problems, which I ascribed to not having, in the new user's
home area, all the bits of "config" I had accumulated over previous months, such
git setup for KDE and encryption setup for login to "push" to KDE rep[ositories.
I strongly recommend the "same user, separate directory" approach. I use /kdedev
drwxr-xr-x 28 ianw admin 952 24 Sep 13:19 /kdedev
b) I was doing a lot of early trials of kdesrc-build with --pretend and just a raw rc file
(no previous clones from anongit or anywhere). It appears kdesrc-build is not too
happy with an empty landscape. Michael suggested I run something like
"kdesrc-build --src-only kdelibs" to prime the pump. That failed with the separate
user approach, but worked fine with /kdedev under user "ianw" and I have had no
further problems with kdesrc-build.
I'd forgotten about this, but I found some old emails… If you have any more problems,
please do not hesitate to write again.
Cheers, Ian W.
More information about the kde-mac
mailing list