Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Linux Ubuntu

hi i m using Ubuntu 11.10 and i m trying to install ns2.34 on it,
after going to the specific path, when i m using this command,
i have found the following error
   -bash: ./install: Permission denied

please give me a proper solution, thanx in advance.. Smile | :)
Posted 4-Jan-12 6:46am
Richard MacCutchan at 4-Jan-12 12:17pm
Check the settings of the script with ls -l ./install, and adjust as necessary.
SAKryukov at 4-Jan-12 12:25pm
This is a permission problem; it should be run under "sudo" -- I answered, please see.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It's normal, as installations usually require superuser permissions. Run:
sudo ./install

You will be prompted for your account login password; to pass, your account also needs to have sufficient privileges to play as a superuser. Please see:[^].

Richard MacCutchan at 4-Jan-12 12:30pm
Of course!
SAKryukov at 4-Jan-12 12:34pm
Aha, thank you, Richard.
Tasawer Nawaz at 4-Jan-12 12:46pm
sori to say , i have already try this, but when i m using this , i get following error..
sudo: ./install: command not found
Espen Harlinn at 4-Jan-12 16:33pm
do a 'pwd' and 'ls -l'
SAKryukov at 4-Jan-12 18:49pm
I based my answer on your report in the ./install. Check up that the install file is there, check up everything "ls -l". Make sure you do this attempt on the same directory as the first one, otherwise your observation contradict to each other. I gave your the explanation of what happened, now use it. Unfortunately, I don't have access to your hard drive. Learn what install and sudo do, separately, and combine them.
Tasawer Nawaz at 5-Jan-12 12:25pm
yes install file is there. but i cant understand this line, "Make sure you do this attempt on the same directory as the first one,", plz explain it..??
Espen Harlinn at 4-Jan-12 16:30pm
SAKryukov at 4-Jan-12 18:50pm
Thank you, Espen.
Tasawer Nawaz at 16-Jan-12 9:48am
After installation i have found this,
dont know how to proceed, please help,..
Please put /home/tassi/Desktop/NS-Installation/ns-allinone-2.34/bin:/home/tassi/Desktop/NS-Installation/ns-allinone-2.34/tcl8.4.18/unix:/home/tassi/Desktop/NS-Installation/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
(1) You MUST put /home/tassi/Desktop/NS-Installation/ns-allinone-2.34/otcl-1.13, /home/tassi/Desktop/NS-Installation/ns-allinone-2.34/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/tassi/Desktop/NS-Installation/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.

After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web03 | 2.8.150326.1 | Last Updated 4 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100