- ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- ns-2 installation on Mac OS X (Leopard)
Keymaster
The following link provides a proceedure for installing ns2.31 on OS X 10.5.5
http://sites.google.com/site/pengjungwu/install-ns2-31-on-osx
Hopefully the same procedure will work for you.
Participant
@CharlesPandian wrote:
The following link provides a proceedure for installing ns2.31 on OS X 10.5.5
http://sites.google.com/site/pengjungwu/install-ns2-31-on-osx
Hopefully the same procedure will work for you.
Yes, I have already seen and used that site a while back. It doesn’t address the nam installation failure unfortunately.
Keymaster
I found a solution in a previous post at
http://mailman.isi.edu/pipermail/ns-developers/2007-March.txt
/usr/bin/ld: Undefined symbols:
_TkCreateXEventSource
collect2: ld returned 1 exit status
make: *** [nam] Error 1
The issue is still in tcl/tk shipped by Apple: nam Makefile tries to
link with tcl/tk in /usr/lib. I sorted out this way: first, I created
a link to the core osx library inside nam directory:
$: cd nam-1.13
$: ln -s /System/Library/Frameworks/CoreFoundation.framework/Versions/
A/CoreFoundation libhack.dylib
Then I linked nam with static tcl/tk in ns-allinone:
$: g++ -o nam
tkcompat.o
tkUnixInit.o
xwd.o
netview.o
netmodel.o
edge.o
packet.o
node.o
main.o
trace.o
queue.o
drop.o
animation.o
agent.o
feature.o
route.o
transform.o
paint.o
state.o
monitor.o
anetmodel.o
random.o
rng.o
view.o
graphview.o
netgraph.o
tracehook.o
lan.o
psview.o
group.o
editview.o
tag.o
address.o
animator.o
wnetmodel.o
nam_stream.o
enetmodel.o
testview.o
parser.o
trafficsource.o
lossmodel.o
queuehandle.o
gen/version.o
gen/nam_tcl.o
../tcl8.4.14/unix/libtcl8.4.a
../tk8.4.14/unix/libtk8.4.a
../tcl8.4.14/unix/libtclstub8.4.a
-L/Users/gringoli/Work/ns-tutto/ns-allinone-2.31/tclcl-1.19 -ltclcl
-L/Users/gringoli/Work/ns-tutto/ns-allinone-2.31/otcl-1.13 -lotcl
-L/Users/gringoli/Work/ns-tutto/ns-allinone-2.31/lib
-L/Users/gringoli/Work/ns-tutto/ns-allinone-2.31/lib
-L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lm -L. -lhack
Regards,
FG
It seems to be a solution for the problem with tcl/tk shipped by Apple.
After experimenting with it, kindly post the result here.
Discuss Through WhatsApp