LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot create directory even if file exists (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-create-directory-even-if-file-exists-732490/)

pratikvimal 06-12-2009 10:12 AM

cannot create directory even if file exists
 
command: pratik@ubuntu:/opt/tinyos-2.x/support/sdk/c$ ./bootstrap

Error: mkdir: cannot create directory `config-aux': File exists
./bootstrap: line 2: aclocal: command not found
./bootstrap: line 3: autoheader: command not found
./bootstrap: line 4: autoconf: command not found
./bootstrap: line 5: automake: command not found

Please help me solve this problem

Regards,
Pratik

cmnorton 06-12-2009 10:19 AM

Extra slash?
 
Do you need an extra '/' between your username and the command?

Otherwise, you'd need to post the contents of the command file you are trying to execute.

pixellany 06-12-2009 10:23 AM

I don't see the extra "/"---I think he posted his whole prompt with user name and current working directory. The command is "./bootstrap"

As cm* says, we need to see what's in that script.

pratikvimal 06-12-2009 10:28 AM

@pixellany
yeah i posted it with current working directory. The exact command is "./bootstrap"

contents of the file are:

mkdir config-aux
aclocal
autoheader
autoconf
automake -a -c

waiting for the reply

NightHorse 06-12-2009 10:34 AM

you have a file with the same name as the directory the script trying to make.

Also check if you have:
aclocal
autoheader
autoconf
automake

I tried running aclocal on my ubuntu and it told me what packages include it. May be you should try the same.

pixellany 06-12-2009 10:35 AM

OK---one step at a time.

First, mkdir will not create a directory when there is already a file with the same name. Do you in fact have such a file in the directory where you are running the command? Perhaps you need to run the command somewhere else...

Next, none of those other four commands are on my machine. Do you know that they are on yours? ---e.g. did you install some kind of package that includes them? If so, is the path in your PATH variable?

pratikvimal 06-15-2009 01:01 AM

@pixellany & NightHorse
I have installed Tinyos which includes these files and folders.

pixellany 06-15-2009 03:51 AM

Quote:

Originally Posted by pratikvimal (Post 3574011)
@pixellany & NightHorse
I have installed Tinyos which includes these files and folders.

OK--fine--but you did not answer any of the other questions. What do you still need help with?


All times are GMT -5. The time now is 06:23 AM.