我想知道是否有人设法在其 macOS 机器上从源代码安装unison的最新版本(这里我正在尝试使用 Catalina)。我按照这里的步骤操作:
我确认我已经安装了 XCode(否则忘记编译任何东西 :)
我通过运行克隆了官方 Git 存储库
git clone https://github.com/bcpierce00/unison.git
我移动到新创建的目录
unison
cd unison
正如文档中提到的那样,我然后运行
make
命令告诉它构建文本 UI:make UISTYLE=text
结果应该是一个名为的可执行文件,unison
但我得到了以下错误:
Blablabla$ make UISTYLE=text
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src UISTYLE=text
UISTYLE = text
Building for Unix
NATIVE = true
THREADS = false
STATIC = false
OSTYPE =
OSARCH = osx
ocamlopt: ubase/rx.mli ---> ubase/rx.cmi
ocamlopt -g -unsafe-string -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -ccopt -mmacosx-version-min=10.6 -c /Users/Shared/unison/src/ubase/rx.mli
make[1]: ocamlopt: No such file or directory
make[1]: *** [ubase/rx.cmi] Error 1
make: *** [text] Error 2
sudo port install ocaml
sudo port install opam
然后我重新运行相同的
make
命令make UISTYLE=text
这次结果看起来更好,并以:
/Applications/Xcode.app/Contents/Developer/usr/bin/make tags
if [ -f "`which etags`" ]; then \
etags *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
*Makefile* \
; fi
- 但是,仍然没有任何
unison
文件可见。
问题是......因为没有错误消息,这个可执行文件在哪里?