LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2010, 04:02 PM   #1
leen22
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
GloMoSim installation in linux problem


hi everybody
I'm trying to install glomosim in fedora linux
I was following the guide to glomosim steps and I faced a problem in this step:

<< Now, you have to change some environmental parameters according to the destination folder which you put the Parsec.
You can create a file called “.bashrc” inside the root or home folder (if it does not already exist), and include the
following:
export PCC_DIRECTORY=/home/parsec
PATH=$PATH:$PCC_DIRECTORY/bin
export PATH
*Your PCC_DIRECTORY should be set to the targeted destination folder which you created earlier.
Now, type:
$ pcc >>

every time I tried to type pcc
this message appears : bash: pcc: command not found
anybody help me with this please
 
Old 10-06-2010, 10:55 AM   #2
ordinary
Member
 
Registered: Apr 2007
Location: the Rocket City
Distribution: Debian, Ubuntu, CentOS; in days past Fedora, Solaris, SunOS, 4.2BSD, 4.3BSD, SVR4, AIX, HP-UX
Posts: 101

Rep: Reputation: Disabled
Placing stuff in .bashrc does not make it available immediately. It will be available on new instances of bash, so...

Assuming you are using bash, and assuming you have edited .bashrc correctly, and assuming pcc is in /home/parsec/bin, you probably just need to make bash re-read .bashrc. Starting a new instance of bash will do that. While logging off and logging back on is not necessary, that may be the easiest way to accomplish this.

Oh, and welcome.
 
Old 10-08-2010, 11:04 AM   #3
leen22
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks
it works now
 
Old 03-31-2015, 11:38 AM   #4
Shraddha Shinde
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Rep: Reputation: Disabled
Glomosim installation

I tried installing Glomosim in ubuntu with the help of some commands but as soon as i run the make command i get the error as
pcc -g -O3 -I../include/ -I../transport -I../transport/tcp -I../application -I../mac -I../main -I../network -I../radio -clock longlong -lm -c ../main/glomo.pc
make: pcc: Command not found
make: *** [../main/glomo.o] Error 127


And also i have installed wine software to install all .exe files in ubuntu but still it says there is no windows program configured to open this type of file. And while running the pcc.exe in glomosim/parsec/bin it does not even open.

Please do help
 
Old 03-31-2015, 12:37 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Re post #4, @Shraddha Shinde.

$ cd Glomosim-2.03/parsec/redhat-7.2/bin/
$ file pcc
pcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), ...

Conclusion : A 32bits OS is required. Like Ubuntu 12.04 - i386.
 
Old 03-31-2015, 12:45 PM   #6
Shraddha Shinde
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Rep: Reputation: Disabled
now i get this
pcc: ERROR: cannot open `pcc' (No such file or directory)

Copied the whole path correctly and i do have a 32 bit os bt still im getting this error
 
Old 03-31-2015, 03:24 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Re #6.

Please copy pcc (and parsec) to /usr/local/bin/.
$ sudo cp Glomosim-2.03/parsec/redhat-7.2/bin/pcc /usr/local/bin/
 
Old 04-01-2015, 02:03 AM   #8
Shraddha Shinde
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Rep: Reputation: Disabled
it says cp: cannot stat `Glomosim-2.03/parsec/redhat-7.2/bin/pcc': No such file or directory
 
Old 04-01-2015, 05:52 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Re post #8.

The first command is always $ pwd
... to decide your location.

'cp Glomosim-2.03/parsec/redhat-7.2/bin/pcc <dest>' cannot be done from a random location.

You can also do : 1) $ cd Glomosim-2.03/parsec/redhat-7.2/bin/
2) $ sudo cp pcc /usr/local/bin/
.... But again, your location must of course be the folder/ with Glomosim-2.03/,
.. to do $ cd Glomosim-2.03/parsec/redhat-7.2/bin/

-

Last edited by knudfl; 04-01-2015 at 05:53 AM.
 
  


Reply

Tags
glomosim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] CentOS Linux 5.3 Linux installation/partition problem sanjaydelhi Linux - Newbie 5 12-01-2010 12:09 PM
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 11:32 PM
Glomosim contiang Linux - Security 0 04-11-2005 12:48 AM


All times are GMT -5. The time now is 08:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration