libtokyocabinet.dylib, file is not of required architecture

5 views
Skip to first unread message

3abbess

unread,
Oct 29, 2009, 11:15:10 AM10/29/09
to Tokyo Cabinet Users
Hi there i'm getting some troubles when i want to install the tokyo
cabinet perl Api ..

i'm using max os snow leopard ..

Heeeeeeeeelp ! :s

Flinn Mueller

unread,
Oct 29, 2009, 11:18:45 AM10/29/09
to tokyocabi...@googlegroups.com
are you setting an environment variable ARCH="x86_64" when you compile?

abbath bs

unread,
Oct 29, 2009, 12:16:24 PM10/29/09
to tokyocabi...@googlegroups.com
Yes i'm getting the same problem, i've edited the makefile and changed the MACOSX_DEPLOYMENT_TARGET=10.5 then added the -arch x86_64

:s

2009/10/29 Flinn Mueller <thefli...@gmail.com>

3abbess

unread,
Oct 29, 2009, 12:20:35 PM10/29/09
to Tokyo Cabinet Users
And this is the log :

$>make
cp tcftest.pl blib/lib/tcftest.pl
cp memsize.pl blib/lib/memsize.pl
cp TokyoCabinet.pod blib/lib/TokyoCabinet.pod
cp tcatest.pl blib/lib/tcatest.pl
cp TokyoCabinet.pm blib/lib/TokyoCabinet.pm
cp tcttest.pl blib/lib/tcttest.pl
cp tchtest.pl blib/lib/tchtest.pl
cp tcbtest.pl blib/lib/tcbtest.pl
/opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp -
typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap TokyoCabinet.xs >
TokyoCabinet.xsc && mv TokyoCabinet.xsc TokyoCabinet.c
/usr/bin/gcc-4.0 -c -I/usr/local/include -fno-common -DPERL_DARWIN -I/
opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/
local/include -I/opt/local/include -O3 -DVERSION=\"1.32\" -
DXS_VERSION=\"1.32\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/
CORE" TokyoCabinet.c
Running Mkbootstrap for TokyoCabinet ()
chmod 644 TokyoCabinet.bs
rm -f blib/arch/auto/TokyoCabinet/TokyoCabinet.bundle
LD_RUN_PATH="/usr/local/lib:/usr/lib" env
MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.0 -L/opt/local/lib -
bundle -undefined dynamic_lookup -L/usr/local/lib TokyoCabinet.o -o
blib/arch/auto/TokyoCabinet/TokyoCabinet.bundle \
-L/usr/local/lib -ltokyocabinet -lbz2 -lz -lpthread -lm -lc \

ld: warning: in /usr/local/lib/libtokyocabinet.dylib, file is not of
required architecture
chmod 755 blib/arch/auto/TokyoCabinet/TokyoCabinet.bundle
cp TokyoCabinet.bs blib/arch/auto/TokyoCabinet/TokyoCabinet.bs
chmod 644 blib/arch/auto/TokyoCabinet/TokyoCabinet.bs
Manifying blib/man3/TokyoCabinet.3pm


$>make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-Iblib/lib" "-Iblib/arch"
test.pl
Can't load './blib/arch/auto/TokyoCabinet/TokyoCabinet.bundle' for
module TokyoCabinet: dlopen(./blib/arch/auto/TokyoCabinet/
TokyoCabinet.bundle, 2): Symbol not found: _tcversion
Referenced from: /Users/houssembensalem/Documents/mining/docs/tokyo/
tokyocabinet-perl-1.32/blib/arch/auto/TokyoCabinet/TokyoCabinet.bundle
Expected in: dynamic lookup
at test.pl line 7
Compilation failed in require at test.pl line 7.
BEGIN failed--compilation aborted at test.pl line 7.
# Looks like your test died before it could output anything.
make: *** [test_dynamic] Error 255


On 29 oct, 17:16, abbath bs <houssem.bensa...@gmail.com> wrote:
> Yes i'm getting the same problem, i've edited the makefile and changed the
> MACOSX_DEPLOYMENT_TARGET=10.5 then added the -arch x86_64
>
> :s
>
> 2009/10/29 Flinn Mueller <theflinns...@gmail.com>
Reply all
Reply to author
Forward
0 new messages