problems about installation during set Environment varibales

kunzhang's picture
Submitted by kunzhang on Mon, 07/30/2012 - 00:47

Hi, everyone,

According to the file of CFDEM coupling, after saving the ~/.bashrc, a new terminal should be opened. And in my new-opened terminal, it shows: make new dirs /home/kun/CFDEM/.../kun-PUBLIC-2.1.x? (y/n).

Is it the right steps? and when I choose y, it shows as follows:
mkdir: cannot create directory `kun-PUBLIC-2.1.x': Permission denied
bash: cd: kun-PUBLIC-2.1.x: No such file or directory
mkdir: cannot create directory `run': Permission denied
mkdir: cannot create directory `log': Permission denied

How to fix it up? Thanks for your help.

alice's picture

alice | Mon, 07/30/2012 - 08:15

hello kunzhang,
is it possible that the main directory for the CFDEM installation was created by the root? In that case you will get a permission denied if you try to add or delete folders.
Cheers,
alice

kunzhang's picture

kunzhang | Mon, 07/30/2012 - 19:08

Thanks for your kind reply. I did create the CFDEM folder under root. Also, I created the OpenFoam and LIGGGHTS folders under root. So I will install them again, and see if it will be fixed up.

kunzhang

leandrodijon | Mon, 09/03/2012 - 19:20

Hi you all!

After saving the ~/.bashrc file, I typed the lines $CFDEM_PROJECT_DIR
$CFDEM_SRC_DIR, $CFDEM_LIGGGHTS_SRC_DIR but the message "...: is a directory" did not appeared.
Is there any spacial way to paste the lines in the file ~/.bashrc?

Thank you very much!

Leandro Dijon

cgoniva's picture

cgoniva | Tue, 09/04/2012 - 13:40

Hi Leandro,

what message do you get, when opening a new terminal and typing e.g. $CFDEM_PROJECT_DIR

Cheers,
Chris

leandrodijon | Tue, 09/04/2012 - 14:32

There is no message. Nothing happens...
And when I type cfdemSysTest I receive the message: command not found.

I just copied and pasted the lines at the end of the ~/.bashrc file. Is it right?

Thank you for the help!

Leandro Dijon

alice's picture

alice | Thu, 09/06/2012 - 09:28

Hello Leandro,
the fact that there is no message indicates that the variables are not set. Are you sure that you uncommented them or that you pasted the lines into the correct file?
Cheers,
Alice

shokeyi | Wed, 01/09/2013 - 21:19

Hi Leandro,
Did you work it out? I have the same situation as you met. It shows the environment variables have not been set. Do you know where should the lines put? Thank you.