在 Mac OS X 上安装 CLSQL

发布于 2024-08-27 19:08:45 字数 1075 浏览 8 评论 0原文

我在运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

套路撩心 2024-09-03 19:08:45

使用 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/

咽泪装欢 2024-09-03 19:08:45

这里有说明,您是否已完成所有准备步骤?

There are instructions here, have you done all of the preparation steps?

心意如水 2024-09-03 19:08:45

进展:受到此 Asterisk 错误报告 的启发(“包括bundle1.o 破坏了 Tiger和 Leopard”),我从 ~/.sbcl/site/clsql-5.1.1/uffi/Makefile 中的所有 4 个位置删除了 -bundle /usr/lib/bundle1.o code> 并重新安装,在死亡之前它又进一步了。

我现在看到:

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING {1193E621}>:
  Couldn't load foreign library "clsql_uffi". (searched CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS*)

这有点奇怪,因为:

  • 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:

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING {1193E621}>:
  Couldn't load foreign library "clsql_uffi". (searched CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS*)

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 makefile

Ideas?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文