LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 10-13-2014, 11:10 AM   #91
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

← #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 )

-
 
Old 10-13-2014, 12:49 PM   #92
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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
 
Old 10-13-2014, 02:03 PM   #93
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #92 .

Mac OS X : Seems complicated ....
https://www.virtualbox.org/wiki/Mac%...20instructions

Windows© : A very easy install, if I remember right :
" Simpler than the simplest puzzle game ".
https://www.virtualbox.org/wiki/Downloads

-
 
Old 10-16-2014, 09:05 AM   #94
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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
 
Old 10-16-2014, 11:05 AM   #95
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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++".

-
 
Old 10-16-2014, 12:24 PM   #96
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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
 
Old 10-16-2014, 12:46 PM   #97
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #96 .
Quote:
x86_64 ... should I use another version of Ubuntu ? ?
Is OK, when this works : $ ns-*** multi_udpflows.tcl
 
Old 10-16-2014, 12:59 PM   #98
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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
 
Old 10-16-2014, 01:24 PM   #99
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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.
 
Old 10-16-2014, 02:16 PM   #100
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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??
 
Old 10-16-2014, 03:44 PM   #101
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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???
 
Old 10-16-2014, 03:54 PM   #102
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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.

-
 
Old 10-17-2014, 06:11 AM   #103
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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???
 
Old 10-17-2014, 06:28 AM   #104
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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.
 
Old 10-17-2014, 07:06 AM   #105
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
Sorry but i forget to write, i did the export command before ./install
The ns file should be in the ns-2.30 folder?
 
  


Reply

Tags
edca, hcca, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration