Installing ns2.35 in Mac OS (Snow Leopard)

Installing ns 2.35 RC8 in Mac OS X (snow leopard) is given below
Step 1: Download xcode ( install it in Mac OS(Xcode is different for Mac OS Lion and Mac OS Snow Leopard)
Step 2: Download the ns-allinone-2.35-rc8.tar.gz from this location
Step 3: Go to Terminal in Mac (by using Finder)
Step 4: Untar the ns2.35 package using the following commands
tar zxvf ns-allinone-2.35-rc8.tar.gz
cd ns-allinone-2.35-rc8
Step 5: You need to verify the path for ‘xlibdirs’ and ‘xincdirs’ in various configuration files of ns2. But NS-2.35 by default has it all. you need not specify it
But if you want to install ns-2.34 and earlier versions, all the configuration files in to be added as per this blog post
Step 6: Once installed successfully, the path information will be shown. Set the PATH, LD_LIBRARY_PATH information in the following file .profile or .bash_profile (from Mac 10.4 onwards, it is bash shell, so you can use .bash_profile)
If the .profile file is not there create it (the folder in which the .profile created should be at /Users/VIT ) and this file is hidden file, you need to handle it with terminal
Once the path is set, execute the command ‘source .profile’ (without quotes) and logout and login back
That’s it.


Popular Posts