在 Mac OS X 上安装 CLSQL
我在运行 10.5.8 的 Intel Core 2 Duo Macbook 上安装了 SBCL(通过 macports/darwinports)。我已经安装了几个这样的库:
(require 'asdf)
(require 'asdf-install)
(asdf-install:install 'cl-who)
但是当我在下载后尝试以这种方式安装 CLSQL ('clsql
) 时,我得到了这个:
...
; registering #<SYSTEM CLSQL-UFFI {123D9E01}> as CLSQL-UFFI
; $ cd /Users/ken/.sbcl/site/clsql-5.0.5/uffi/; make
cc -arch x86_64 -arch i386 -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress clsql_uffi.c -o clsql_uffi.dylib
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture i386
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture x86_64
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Nf/Nf4o5ArDFaWBH2OwtnWM3E+++TQ/-Tmp-//ccJyZxou.out (No such file or directory)
make: *** [clsql_uffi.so] Error 1
是否有我忘记的东西,或者有什么技巧可以让它到在 Mac OS X 上构建?这些天我对 Mac 上的 C 库知之甚少,所以我什至不知道从哪里开始。
谢谢!
I have SBCL installed (via macports/darwinports) on my Intel Core 2 Duo Macbook running 10.5.8. I've installed several libraries like this:
(require 'asdf)
(require 'asdf-install)
(asdf-install:install 'cl-who)
But when I tried to install CLSQL this way ('clsql
) after it downloaded, I got this:
...
; registering #<SYSTEM CLSQL-UFFI {123D9E01}> as CLSQL-UFFI
; $ cd /Users/ken/.sbcl/site/clsql-5.0.5/uffi/; make
cc -arch x86_64 -arch i386 -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress clsql_uffi.c -o clsql_uffi.dylib
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture i386
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture x86_64
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Nf/Nf4o5ArDFaWBH2OwtnWM3E+++TQ/-Tmp-//ccJyZxou.out (No such file or directory)
make: *** [clsql_uffi.so] Error 1
Is there something I forgot, or some trick to get it to build on Mac OS X? I know very little about C libraries on the Mac these days, so I don't even know where to start on this.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Quicklisp 代替“裸”ASDF 可能会容易得多。看看 https://www.quicklisp.org/beta/
It might be a lot easier to use Quicklisp insteak of a "naked" ASDF. Take a look at https://www.quicklisp.org/beta/
这里有说明,您是否已完成所有准备步骤?
There are instructions here, have you done all of the preparation steps?
进展:受到此 Asterisk 错误报告 的启发(“包括bundle1.o 破坏了 Tiger和 Leopard”),我从
~/.sbcl/site/clsql-5.1.1/uffi/Makefile
中的所有 4 个位置删除了-bundle /usr/lib/bundle1.o
code> 并重新安装,在死亡之前它又进一步了。我现在看到:
这有点奇怪,因为:
clsql-sys:*foreign-library-search-paths*
是(#P"/Users/ken/ .sbcl/site/clsql-5.1.1/uffi/")
clsql-uffi-loader.lisp
尝试所有(uffi :foreign-library-types)
,即("dylib" "bundle")
有一个
~/.sbcl/site/由makefile构建的clsql-5.1.1/uffi/clsql_uffi.dylib
文件想法?
Progress: inspired by this Asterisk bug report ("Including bundle1.o breaks Tiger and Leopard"), I removed
-bundle /usr/lib/bundle1.o
from all 4 places in~/.sbcl/site/clsql-5.1.1/uffi/Makefile
and reinstalled, and it got further before dying.I'm now seeing:
This is kind of bizarre, since:
clsql-sys:*foreign-library-search-paths*
is(#P"/Users/ken/.sbcl/site/clsql-5.1.1/uffi/")
clsql-uffi-loader.lisp
tries all of(uffi:foreign-library-types)
, which is("dylib" "bundle")
there is a
~/.sbcl/site/clsql-5.1.1/uffi/clsql_uffi.dylib
file built by the makefileIdeas?