[MacPorts] #24193: I can't use Cunit , installed but doesn't work. 10.6
MacPorts
noreply at macports.org
Wed Mar 24 12:34:41 PDT 2010
#24193: I can't use Cunit , installed but doesn't work. 10.6
--------------------------------+-------------------------------------------
Reporter: iliesaya@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: cunit | Port:
--------------------------------+-------------------------------------------
Hi everybody,
I'm using mac os x 10.6 (snow leopard).
Macport is installed, and i followed this tutorial to install Cunit (
http://cunit.darwinports.com/ )
$ port installed
The following ports are currently installed:
cunit @2.1-0_1 (active)
ncurses @5.7_0+darwin_10 (active)
ncursesw @5.7_0+darwin_10 (active)
When I try to use it like this :
#include "CUnit/Basic.h"
and in my Makefile CC = gcc -lcunit
I get this kind of error:
error: CUnit/Basic.h: No such file or directory
If I compile like this :
$ gcc -I/opt/local/include/ -L/opt/local/lib irc.c -lcunit -o irc
there is no error, it compile , but at the execution I get this:
$ ./irc
dyld: Symbol not found: _acs_map
Referenced from: /opt/local/lib/libcunit.1.dylib
Expected in: flat namespace
in /opt/local/lib/libcunit.1.dylib
Trace/BPT trap
:( What can I do ?
May be my $PATH variable is wrong:
$ echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/X11R6/bin
Please help me, I really need to use Cunit.
Thank you.
--
Ticket URL: <http://trac.macports.org/ticket/24193>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list