我在运行10.5.8的英特尔酷睿2双核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上构建?这些天我对Mac上的C库知之甚少,所以我甚至不知道从哪里开始。
谢谢!
发布于 2016-09-09 01:22:25
使用Quicklisp可能比使用“裸体”ASDF容易得多。看一看https://www.quicklisp.org/beta/
发布于 2010-04-19 22:20:52
这里有说明here,你做好了所有的准备步骤了吗?
发布于 2010-06-07 09:56:00
进展:受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* is (#P"/Users/ken/.sbcl/site/clsql-5.1.1/uffi/")clsql-uffi-loader.lisp the of (uffi:foreign-library-types),is ("dylib" "bundle")构建的~/.sbcl/site/clsql-5.1.1/uffi/clsql_uffi.dylib文件
想法?
https://stackoverflow.com/questions/2573347
复制相似问题