Thursday, October 29, 2009

GloMoSim with Ubuntu

  • Download GloMoSim from here
  • Uncompress glomosim-2.03.tar.gz file
$tar -xzvf glomosim-2.03.tar.gz

  • Set Environment variable
$ gedit ~/.bashrc
Then add following lines
PCC_DIRECTORY=GloMoSim_ROOT/glomosim-2.03/parsec/redhat-7.2
export PCC_DIRECTORY


  • Copy both files pcc and parsecc from glomosim-2.03/parsec/redhat-7.2/bin/ dir and copy into usr/bin dir
$ sudo cp glomosim-2.03/parsec/redhat-7.2/bin/pcc glomosim-2.03/parsec/redhat-7.2/bin/parsecc usr/bin


  • Goto glomosim-2.03/glomosim/main dir and run make.
$ cd glomosim-2.03/glomosim/main
$ make

16 comments:

Unknown said...

hi rupesh,
I followed ur above steps. But when I run make I get the error..

Please set the PCC_DIRECTORY environmental variable
to the Parsec directory (has include, bin and runtime directories in it).
make: *** [../main/glomo.o] Aborted

XtheWiz said...

hi kpniraj,

Could you try to change GloMoSimRoot to your absoluste path to your GloMoSim directory?

I think tis can solve your question
....

LAKSHAYA AGNANI said...

Hey Rupesh
I tried to go as per your way...but i am not able to copy the files in usr/bin....When doing it through terminal i am getting the message that the usr/bin doesn't exist and when doing it manually the permission is being denied....Pls help me
Regards
Lakshaya Agnani

Unknown said...

/usr/bin/ld: i386 architecture of input file `/opt/glomosim-2.03/parsec/redhat-7.2/runtime/gel_longlong.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/opt/glomosim-2.03/parsec/redhat-7.2/runtime/main.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
Failed linking '../bin/radio_range'



I am installing it on amd64 arch and getting this error. can you tell me how to install it in ubuntu amd64

dheeru said...

hi rupesh ,
when i type make in main folder i get the following error msg


No file contains driver entity
Failed making an initialization file.
make: *** [../bin/glomosim] Error 1


i don't understandt whats the problem is ...i'm using ubuntu 10.10


thanks in advance...

Unknown said...

Hi dheeru

In response to your error, you're getting this because you're setting the environment variable for parsec wrong.

Make sure that when you type $PCC_DIRECTORY you get the directory that you expect.

Zak said...

hi rupesh,
I have set the PCC_DIRECTORY correctly and when I "pcc" at the prompt, it says "no input files.". However, when I try "make" at the main directory, it starts making glomosim until it stops and says:

No file contains driver entity
Failed making an initialization file.
make: *** [../bin/glomosim] Error 1

I'm sure about the PCC_DIRECTORY and my os is netBSD.
please note that I don't have permissions for usr/bin so I'm using another directory and adding a path for it.

thank you

Mukul Shukla said...

Hi Rupesh,

I am trying to install GloMosim for my research on Ubuntu 11.10. I want to use 64 bit Ubuntu. Will GloMoSim compile on 64 bit Ubuntu?

hai ramanji said...

glomosim-2.03>glomosim>main>make

the output is
g++: error: /home/parsec/redhat-7.2/bin/runtime/gel_longlong.o: No such file or directory
g++: error: /home/parsec/redhat-7.2/bin/runtime/main.o : No such file or directory

Failed linking: ..bin/radio_range


vipinkumar4483 said...

hi rupesh ,
when i type make in main folder i get the following error msg


No file contains driver entity
Failed making an initialization file.
make: *** [../bin/glomosim] Error 1


ANSWER
Hi dheeru
you should try to set installation directory path at bashrc file as below

$ gedit ~/.bashrc
Then add following lines
PCC_DIRECTORY=/GloMoSim_ROOT/glomosim-2.03/parsec/redhat-7.2
export PCC_DIRECTORY

Run> source ~/.bashrc
to check the updated path type at terminal
$PCC_DIRECTORY
u should find ur directory path

GoTO Glomosim/main directory
Run make

Auralius Manurung said...
This comment has been removed by the author.
Auralius Manurung said...

Keep in mind that the pcc binary provided within the glomosim is 32-bit version. IT WON'T WORK IN 64-BIT MACHINE. I searched if I could find the 64-bit pcc, I could not find. pcc seems to be available in 32-bit only. Correct me if I am wrong. You can successfully compile, but you won't be able to link all the compiled object files. USE 32-BIT machine. Unless, we can have access to the source of pcc, we can recompile it for 64-bit machine.

Unknown said...

thanks alot Auralius, it really helpfull

Unknown said...

how to add new routing protocol in glomosim??

Shantel1209 said...

hey, the link that you have provided for the download of Glomosim does not work. could you please post another link or any other alternate way of the download?

Unknown said...

link to download GloMoSim :
http://140.120.108.141:8080/share.cgi?ssid=0m70bzz