LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GloMoSim installation in linux problem (https://www.linuxquestions.org/questions/linux-newbie-8/glomosim-installation-in-linux-problem-836384/)

leen22 10-05-2010 03:02 PM

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

ordinary 10-06-2010 09:55 AM

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.

leen22 10-08-2010 10:04 AM

Thanks
it works now

Shraddha Shinde 03-31-2015 10:38 AM

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

knudfl 03-31-2015 11:37 AM

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.

Shraddha Shinde 03-31-2015 11:45 AM

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

knudfl 03-31-2015 02:24 PM

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/

Shraddha Shinde 04-01-2015 01:03 AM

it says cp: cannot stat `Glomosim-2.03/parsec/redhat-7.2/bin/pcc': No such file or directory

knudfl 04-01-2015 04:52 AM

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/

-


All times are GMT -5. The time now is 03:01 AM.