If I run /usr/local/bin/bk, an application called Wish creates a small window and my command prompt changes to %
If I run /usr/local/bin/bk version -s,
I get Error in startup script: couldn't read file "version": no such file or directory
My guess is that the installer couldn’t create the symlink it wanted, and my attempt doesn’t work because /Applications/BitKeeper.app/Contents/MacOS/BitKeeper might not be the correct thing to symlink anyway.
I’m headed to bed so will be slow to reply to any suggestions on how to proceed.
I don’t think OS X allows sudo anymore. What the installer does is that it tries
to add /Applications/BitKeeper.app/Contents/Resources/bitkeeper to /etc/paths.d/10-BitKeeper.
However, that shouldn’t be necessary. Simply restarting a new shell should be enough.
By default on MacOS X, /etc/profile will run:
```eval `/usr/libexec/path_helper -s````
and that should build a path from the contents of /etc/paths and files in /etc/paths.d.
MacOSX 10.11 does some magic where /usr/bin was not writeable by anybody, ever. To work around this, our postinstall script detects that situation and will create /etc/paths.d/10-BitKeeper with the correct contents.
See man path_helper for information about that command.
But restarting shell didn’t seem to help. I’m using iTerm2, so I quit that and restarted, but no luck. I also tried Terminal, but that didn’t work either.
Though my /etc/profile seems fine
$ cat /etc/profile
System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval /usr/libexec/path_helper -s
fi
if [ “${BASH-no}” != “no” ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
When I ran /usr/libexec/path_helper manually, it seems to have solved it:
$ ls -al /usr/libexec/path_helper
-rwxr-xr-x 1 root wheel 18896 Dec 3 15:36 /usr/libexec/path_helper
$ eval /usr/libexec/path_helper -s
$
$ bk version -s
7.2ce
Thank you @ob and @georgn for helping me get started!
Certainly, if you are manually setting your PATH in your own profile/bashrc then you’ll break what we were attempting to achieve. Glad you’re over this particular hump.