LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2004, 01:35 PM   #1
tcma
Member
 
Registered: Aug 2004
Distribution: gentoo, Fedora Core
Posts: 54

Rep: Reputation: 15
mv: cannot overwrite directory `/home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma


I downloaded buildroot.gz from http://www.uclibc.org/cgi-bin/cvsweb/buildroot
by clicking "Download tarball".
This is the process of creating a uClibc toolchain.

# make

...
linux-2.4.27/Documentation/parisc/registers
linux-2.4.27/Documentation/parisc/00-INDEX
linux-2.4.27/Documentation/parisc/IODC.txt
linux-2.4.27/Documentation/parisc/debugging
linux-2.4.27/Documentation/cris/
linux-2.4.27/Documentation/cris/README
linux-2.4.27/Documentation/SAK.txt
linux-2.4.27/Documentation/mips/
linux-2.4.27/Documentation/mips/time.README
linux-2.4.27/Documentation/mips/GT64120.README
linux-2.4.27/Documentation/mips/pci/
linux-2.4.27/Documentation/mips/pci/pci.README
linux-2.4.27/Documentation/power/
linux-2.4.27/Documentation/power/pci.txt
# Rename the dir from the downloaded version to the AFTER patch version
mv -f /home/tcma/src/buildroot/build_i386/linux-2.4.27 /home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma
mv: cannot overwrite directory `/home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma/linux-2.4.27'
make: *** [/home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma/.unpacked] Error 1



Linux version 2.6.8-gentoo-r4 (root@rose) (gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #3
 
Old 10-05-2004, 03:46 PM   #2
sjalex
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
permissions?

Had you already tried to do this once before you got the error? Because it doesn't seem right to me that that directory should exist.

Here's something relevant, if that's the case: from the man page for mv (gnu fileutils-4.0)

- If the last argument names an existing directory, mv moves each other given file into a file
- with the same name in that directory. Otherwise, if only two files are given, it renames the
- first as the second. It is an error if the last argument is not a directory and more than
- two files are given.

- Thus, `mv /a/x/y /b' will rename the file /a/x/y into /b/y if /b was an existing directory,
- and into /b otherwise.


in other words, when you do this:

- mv -f /home/tcma/src/buildroot/build_i386/linux-2.4.27 /home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma

you're actually trying to copy the first directory --into-- the second rather than over it, as would happen with a file.

The simplest fix for this is to remove the offending existing directory (/home/tcma/src/buildroot/build_i386/linux-2.4.27-tcma) provided you don't need it there for some reason? As it seems to be breaking your Makefile.

Good luck,

Stephen
 
  


Reply



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
Bash - rename directory to overwrite existing LarsWestergren Linux - Newbie 18 04-04-2013 02:07 PM
updating kernel, no '/usr/src/linux' directory? rubbercash SUSE / openSUSE 2 04-30-2005 01:00 PM
cd /usr/src cd linux no such file or directory Peacedog Slackware 2 12-31-2003 03:20 PM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 08:05 AM
overwrite directory copy medamnit Linux - Newbie 1 05-26-2002 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 PM.

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
Open Source Consulting | Domain Registration