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

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,
 
./install
 
i have found the following error
 
error:
 
   -bash: ./install: Permission denied
 

please give me a proper solution, thanx in advance.. Smile | :)
Posted 4-Jan-12 6:46am
Comments
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.
--SA

1 solution

Rate this: bad
good
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: http://en.wikipedia.org/wiki/Sudo[^].

—SA
  Permalink  
v2
Comments
Richard MacCutchan at 4-Jan-12 12:30pm
   
Of course!
SAKryukov at 4-Jan-12 12:34pm
   
Aha, thank you, Richard.
--SA
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.
--SA
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
   
5'ed!
SAKryukov at 4-Jan-12 18:50pm
   
Thank you, Espen.
--SA
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.
 
IMPORTANT NOTICES:
 
(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
into LD_LIBRARY_PATH.
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)

  Print Answers RSS
0 Maciej Los 290
1 OriginalGriff 275
2 Sergey Alexandrovich Kryukov 195
3 BillWoodruff 140
4 ProgramFOX 140
0 OriginalGriff 6,524
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,218
3 Manas Bhardwaj 4,657
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 4 Jan 2012
Copyright © CodeProject, 1999-2014
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