2010-04-04 140 views
5

我在运行10.5.8的Intel Core 2 Duo Macbook上安装了SBCL(通过macports/darwinport)。我已经安装了几个库是这样的:在Mac OS X上安装CLSQL

(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库知之甚少,所以我甚至不知道从哪里开始。

谢谢!

+0

顺便说一下,你有没有试过quicklisp来处理instalations? – PuercoPop 2012-10-27 18:39:06

+0

应该注意'asdf-install'在这一点上被视为弃用。我能够使用'quicklisp'来解决类似的情况。 – cwallenpoole 2015-02-02 17:24:38

回答

0

有说明here,你有没有完成所有的准备步骤?

0

进展:由this Asterisk bug report启发(“包括bundle1.o打破老虎和豹”),我在~/.sbcl/site/clsql-5.1.1/uffi/Makefile删除所有4位-bundle /usr/lib/bundle1.o并重新安装,并在临死前进一步了。

我现在看到的:

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/clsql-5.1.1/uffi/clsql_uffi.dylib文件通过生成文件

想法建?

+0

*来自匿名用户的评论添加为编辑:* FIX: 相关问题似乎是由于实际的.dylib文件虽然创建的不是真正的动态共享库。为此,在删除-bundle /usr/lib/bundle1.o时,向这些相同的行添加-dynamiclib。 – Rob 2011-04-07 08:23:13