LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-13-2015, 07:36 PM   #16
ranoucha
LQ Newbie
 
Registered: Nov 2015
Posts: 8

Rep: Reputation: Disabled

i want to run run.tcl in order to study the hls protocol
 
Old 11-13-2015, 08:01 PM   #17
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
Re #15.

Repeat : What's the reply from the command 'uname -m' ?

I.e. there can be a (huge) difference between a 32bits OS and a 64bits OS.
So is your Ubuntu 14.04 "i686" or "x86_64" ?



-
 
Old 11-14-2015, 05:39 AM   #18
ranoucha
LQ Newbie
 
Registered: Nov 2015
Posts: 8

Rep: Reputation: Disabled
i have Ubuntu 14.04 "i686" in virtual machine
 
Old 11-14-2015, 06:41 AM   #19
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
Re #18.

? Did you do exactly as this http://network-simulator-ns-2.7690.n...g-td29371.html
I.e. $ tar xvf ns-allinone-2.35_gcc482.tar.gz ( The 'Nov 2014 update' )
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < GPSR-hls_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install

... If you did any different, like using the old 2011 version of ns-allinone-2.35,
... then please make a new build :
You can have as many times ns-allinone-2* as you want, installed at the same time.
But : Do not add any *PATH text to .bashrc . Not required.



So far I made a build test with an Ubuntu 14.04.3 - i686, that was updated a couple of weeks ago.
No issues with the `ssoumayaa.tcl' simulation.



-
 
Old 11-17-2015, 10:56 AM   #20
ranoucha
LQ Newbie
 
Registered: Nov 2015
Posts: 8

Rep: Reputation: Disabled
Dear Knudfl;
I did exactly as this code :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz ( Patched for gcc-4.8.2 and -4.9.1 ).
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < GPSR-hls_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns-gpsr-hls
$ sudo cp ns-gpsr-hls /usr/local/bin/
... Then you can do: $ ns-gpsr-hls ssoumayaa.tcl
... from the examples, gpsr-hls-examples-05.14.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
but i had this problem:

num_nodes is set 2
INITIALIZE THE LIST xListHead
Starting Simulation...
Segmentation fault (core dumped)

Last edited by ranoucha; 11-17-2015 at 10:57 AM.
 
Old 11-17-2015, 12:18 PM   #21
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
Re #20.

It's an increasing problem finding OS`s which can run the old ns2 code.
My "test OS, Ubuntu 14.04.3 - i686" is on an old "Intel CPU 2140, 1.60GHz (dual core)".
And is still working with $ ns235-hls ssoumayaa.tcl
? How about the other files.tcl ?
{ AGT-on__hls.tcl, hls.tcl, smac_hls.tcl, smac_ssoumayaa.tcl,
ssoumayaa-0.tcl, ssoumayaa-802.15.4.tcl, tes-gpsr.tcl } ?

Other "run time method / application" : gpsr-hls-2.33-ubuntu10_i386.deb, 4.5MB
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... Download the package, click the package, and it is installed.
Provides /usr/local/bin/ns-hls

Other build solution : Install e.g. CentOS 6.7 in a new "Virtual Machine"
http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso
>> CentOS-6.7-i386-LiveDVD.iso

The unsupported Ubuntu 10.10 - i386 can also be used.


-
 
Old 12-27-2015, 05:22 PM   #22
ranoucha
LQ Newbie
 
Registered: Nov 2015
Posts: 8

Rep: Reputation: Disabled
Dear Knudfl,
How i can run the gpsr-hls-2.33-ubuntu10_i386.deb, 4.5MB
i installed the package gpsr-hls-2.33-ubuntu10_i386.deb, 4.5MB in my ubuntu
how i can run my hls.tcl using this package?!
Thank you
 
Old 01-06-2016, 06:57 PM   #23
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
Re #22.

gpsr-hls-2.33-ubuntu10_i386.deb provides /usr/local/bin/ns-hls

Simulation : $ ns-hls my-hls.tcl
 
Old 01-27-2016, 05:20 PM   #24
ranoucha
LQ Newbie
 
Registered: Nov 2015
Posts: 8

Rep: Reputation: Disabled
Dear Knudfl,
I tried to do my best during these three months to run the program, but i have the same errors. I have a 64-bit system and I work with VM with ubuntu 32 bits i want to ask you if i schould work with 32bit system from the beginning!?
 
Old 01-28-2016, 02:59 AM   #25
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
Re post #24, @ranoucha.

Please read post #21 ... to know the "Linux OS" options for GPSR-hls.
! ! ! No 64bits OS`s are mentioned !
Use either an old Ubuntu like Ubuntu 9.10-i386 or CentOS-6.7-i386.

Should be easy to set up both in two additional virtual machines.

! Ubuntu 14.04 -<any version> cannot be used for building ns2 + GPSR-hls !




-

Last edited by knudfl; 01-28-2016 at 03:01 AM.
 
Old 05-23-2016, 03:27 AM   #26
lttp
LQ Newbie
 
Registered: May 2016
Posts: 7

Rep: Reputation: Disabled
Code:
> patch GPSR in ns-2.35 

$ tar xvf ns-allinone-2.35_gcc482.tar.gz ( Patched for gcc-4.8.2 and -4.9.1 ). 
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
$ cd ns-allinone-2.35/ 
$ patch -p0 < GPSR-hls_ns235.patch 
https://drive.google.com/file/d/0B7S255p3kFXNcGFJbGttY2dLT2M/view?usp=sharing
$ ./install 
$ cd ns-2.35/ 
$ cp ns ns-gpsr-hls 
$ sudo cp ns-gpsr-hls /usr/local/bin/ 
... Then you can do: $ ns-gpsr-hls ssoumayaa.tcl 
... from the examples, gpsr-hls-examples-05.14.tar.gz 
https://drive.google.com/file/d/0B7S255p3kFXNVDVyb190WVdyOVE/view?usp=sharing


i'm using ns2.35, ubuntu 14.04 x86 64bits. when i make command: ./install, at the end it noticed: ns make failed. can anyone help me

Last edited by lttp; 05-23-2016 at 04:36 AM.
 
Old 05-23-2016, 04:33 AM   #27
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
Re #26.
Quote:
I have sucseccfully run GPSR in ns2 ...
.
... command: ./install, at the end it noticed: ns make failed.
? Which success ?


Generally ns2 is for a 32bits OS.
(We have about four ns2 patches requiring 64bits. Else : 32bits is to prefer.)
GPSR-hls requires a 32bits OS.

So please install an OS for ns2. E.g. Ubuntu 14.04 - i386/i686 can do the most.
( Some patches will require and old/oldish 32bits OS.)

14.04.4 - i386 http://releases.ubuntu.com/14.04/ubu...sktop-i386.iso

Easy install : 1) Install VirtualBox $ sudo apt-get install virtualbox
2) Install Ubuntu-14.04.4 into VirtualBox.


-

Last edited by knudfl; 05-23-2016 at 04:35 AM.
 
Old 05-23-2016, 12:14 PM   #28
lttp
LQ Newbie
 
Registered: May 2016
Posts: 7

Rep: Reputation: Disabled
Thank you

Last edited by lttp; 05-23-2016 at 12:23 PM.
 
Old 05-23-2016, 12:30 PM   #29
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
Re #28. Please do not quote entire posts. A "one word reference" will do.

Segmentation fault :
Seems that Ubuntu 14.04 has been updated (libc6) to a state not compatible with ns2.
I guess that CentOS 6 - i386/i686 can still be used...
http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso

I will check, and report back.


-
 
Old 05-25-2016, 05:17 AM   #30
lttp
LQ Newbie
 
Registered: May 2016
Posts: 7

Rep: Reputation: Disabled
I simulated the example from https://drive.google.com/file/d/0B7S...ew?usp=sharing
But when I did mine, it come to and end: Floating point exception(core dumped)
here is my code
https://drive.google.com/file/d/0B0B...ew?usp=sharing
U have any ideas for this?
thank you

Last edited by lttp; 05-25-2016 at 05:30 AM.
 
  


Reply

Tags
gpsr, gpsr-hls, gpsr-keliu#50, 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
GPSR on ns2.35 nad_y Linux - Software 22 08-07-2015 07:21 AM
[SOLVED] GPSR on NS2.34 farfattou Linux - Software 17 01-10-2015 08:29 AM
gpsr in ns2 navidsal Linux - Software 1 12-05-2014 04:46 AM
[SOLVED] GPSR in ns2 aidin8790 Linux - Software 36 07-05-2014 02:56 AM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM

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

All times are GMT -5. The time now is 07:32 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