Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-13-2014, 11:10 AM
|
#91
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #90 .
Download a new "ns-allinone-2.30.tar.gz" from ...
http://sourceforge.net/projects/nsna...ar.gz/download
.. and unpack in a new folder in /home/<user-name>/ with :
$ tar xvf ns-allinone-2.30.tar.gz
Using any Windows© tools to unpack :
The permissions may change, and you get " Permission denied".
? Why in the first place use a "look alike Linux OS" like Cygwin,
... when you easily can install the real thing in 'VirtualBox' ?
( See post #72 : OS suggestion : CentOS 6.5
http://ftp.sunet.se/pub/Linux/distri...386-LiveCD.iso
>>> CentOS-6.5-i386-LiveCD.iso )
-
|
|
|
10-13-2014, 12:49 PM
|
#92
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
I have installed the ns-allinone-2.30.tar.gz" from ...
http://sourceforge.net/projects/nsna...ar.gz/download and tried all the command.
But when i wrote: $ cp ns ns-edca, the output is:
cp: cannot stat `ns': No such file or directory ( i check it, no file ns)
I will take ur advice and stop working on cygwin and try to install a virtual box.
Can u recommend me a site that help me to install a virtual box and linux on mac? or it is preferred that it be installed on windows?
Thank you
|
|
|
10-16-2014, 09:05 AM
|
#94
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
I have installed the virtual box and Ubuntu 14.04.1 and tried to install the ns-allinone-2.30 from the site : http://sourceforge.net/projects/nsna...ar.gz/download
however, when I use ur commands, there no "ns file" in the ns-2.30 folder for : $ cp ns ns230-edca
I try to use a version that has this file, but when I try to copy it from a usb, it stopped when the downloads becomes 95 Mb
is there any site that it can give me the ns2.30 including the ns file?
thank you
|
|
|
10-16-2014, 11:05 AM
|
#95
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #94 .
Ubuntu 14.04.1 : Which version ? i686 or x86_64 ?
Q1) This command will show : $ uname -m
Q2) No 'ns' ? Where is the "make-log.txt" you were asked for ?
$ cd ns-2.30/ && make 2>&1 | tee make-log.txt
Anyway, you cannot compile ns-allinone-2.30
with the default Ubuntu 14.04 compilers.
When you have answered "Q1)", you will get links to a usable "gcc/g++".
-
|
|
|
10-16-2014, 12:24 PM
|
#96
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
R1) x86_64
should I use another version of Ubuntu??
I installed ns-allinone-2.30 where there is ns in ns2.30 to do: $cp ns ns230-edca
|
|
|
10-16-2014, 12:46 PM
|
#97
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #96 .
Quote:
x86_64 ... should I use another version of Ubuntu ? ?
|
Is OK, when this works : $ ns-*** multi_udpflows.tcl
|
|
|
10-16-2014, 12:59 PM
|
#98
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
im sorry for all my questions
I write:
$ tar xvf ns-allinone-2.30.tar.gz
$ cd ns-allinone-2.30/
$ patch -p0 < EDCA-802.11e_ns230.patch
$ ./install (post #77)
however I've got : bash: ./install: Permission denied
but im using it as an administrator
|
|
|
10-16-2014, 01:24 PM
|
#99
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #98 .
First thing to do :
Download / install the gcc34/g++34 compilers, and nam : Post #12 here ..
http://www.linuxquestions.org/questi...4175521400/#12
Then it is :
$ tar xvf ns-allinone-2.30.tar.gz
$ cd ns-allinone-2.30/
$ patch -p0 < EDCA-802.11e_ns230.patch
$ export CC=gcc34 CXX=g++34
$ ./install
Permission denied : ?Did you unpack in Ubuntu with
$ 'tar xvf ns-allinone-2.30.tar.gz' ?
Important : Do not unpack as "administrator".
No 'sudo', no using `root´ for any ns2 command !
( Except for 'sudo make install',
and 'sudo cp ns-edca /usr/local/bin/' ).
`Permission denied' can also be caused by using
a Windows© tool for the unpack.
-
Last edited by knudfl; 10-17-2014 at 06:28 AM.
|
|
|
10-16-2014, 02:16 PM
|
#100
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
im sorry for all my questions but im a beginner in ns2 and Linux
Q1) can u told me the size of the gcc34/g++34 compilers, and nam that should be downloaded and where they should be in Ubuntu??
Q2) the size of the unpack file should be 67455 Kb?
Q3)gcc34 and g++ 4 is suitable with this version of Ubuntu or should I use Ubuntu with 32 bit??
|
|
|
10-16-2014, 03:44 PM
|
#101
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
I have use the command: $gcc -v, ive got there is gcc version 4.8.2
concerning the g++, I have use : $sudo apt-get install g++. Is it okay???
ans $sudo apt-get instakl nam but ive got:
E:unable to locate package nam.
then I tried $tar xvf ns-allinone-2.30.tar.gz to unpack the file, but it gives: tar: Error is not recoverable:: existing now
can u help me please???
|
|
|
10-16-2014, 03:54 PM
|
#102
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #100 .
Add 1. Package sizes :
compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb = 4.3 MB.
compat-gcc-34-c++_3.4.6-20_amd64.deb = 12.6 MB.
nam_1.15-10-ubuntu14_amd64.deb = 2.3 MB
Where should they be in Ubuntu ? → Like the text says :
Click the packages, and they will be installed.
It's all automatically done.
If you want to know the file locations for an installed package,
please do : $ dpkg -L <package-name>
... Like $ dpkg -L nam
Add 2 : Which file ?
Add 3 : As you can see, the packages have suffix `amd64'
.. and are not usable with a 32bits OS.
See post #99, where I show the EDCA build, in Ubuntu 14.04 - 64.
--------
For your information, a ready to install complete package,
ns-2.30 + EDCA would be about 4 MB only.
I.e. very few files are required to run the executable "ns230-edca".
It's at build time that you need a lot of space / a lot of files.
-
|
|
|
10-17-2014, 06:11 AM
|
#103
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
I have installed the ns-allinone-2.30.tar.gz and unpack it. I followed all the steps: install the compilers, then
$tar xvf ns-allinone-2.30.tar.gz
$cd ns-allinone-2.30
$patch -p0 < EDCA-802.11e_ns230.patch
$./install
$cd ns-2.30/
$cp ns ns230-edca
I've got : cp: cannot stat "ns" : No such file or directory
there is no file "ns" in the ns-2.30 folder, however I unpacked the installed file
how can I solve it???
|
|
|
10-17-2014, 06:28 AM
|
#104
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #103 .
HOWTO use the gcc34 /g++34 compilers ...
#12 http://www.linuxquestions.org/questi...4175521400/#12
I.e. your build command must be :
$ export CC=gcc34 CXX=g++34 && ./install
Why not read post #99 in this thread ?
$ export CC=gcc34 CXX=g++34
$ ./install
-
Last edited by knudfl; 10-17-2014 at 06:35 AM.
|
|
|
10-17-2014, 07:06 AM
|
#105
|
Member
Registered: Sep 2014
Posts: 45
Rep:
|
Sorry but i forget to write, i did the export command before ./install
The ns file should be in the ns-2.30 folder?
|
|
|
All times are GMT -5. The time now is 07:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|