Results 1 to 6 of 6

Thread: mkdir cannot create directory : not a directory

  1. #1
    Join Date
    Mar 2009
    Beans
    4

    mkdir cannot create directory : not a directory

    I'm trying to install pygobject-3.0.4 from source (installing from source is new to me) and make install appears to be exiting with error:

    /bin/mkdir: cannot create directory `/usr/bin/python': Not a directory

    /usr/bin/python is the symbolic link to my python installation, so I don't know why pygobject wants to make a directory there, if that is indeed what's going on.

    I've been looking around in the source directory for whichever shell script is trying to mkdir there, but can't find it? A little lost here and grateful for any help

  2. #2
    Join Date
    Feb 2008
    Location
    London, On, Canada
    Beans
    88

    Re: mkdir cannot create directory : not a directory

    Manually creating the directory can work in these situations. Sometimes it's is a permissions issue. Can you give me more information? The documentation you are using, what part you are at. More text from your shell.

  3. #3
    monkeybrain2012 is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Oct 2012
    Beans
    874

    Re: mkdir cannot create directory : not a directory

    Try "sudo make install"

  4. #4
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: mkdir cannot create directory : not a directory

    Quote Originally Posted by Randwulff View Post
    I'm trying to install pygobject-3.0.4 from source (installing from source is new to me) and make install appears to be exiting with error:

    /bin/mkdir: cannot create directory `/usr/bin/python': Not a directory

    /usr/bin/python is the symbolic link to my python installation, so I don't know why pygobject wants to make a directory there, if that is indeed what's going on.

    I've been looking around in the source directory for whichever shell script is trying to mkdir there, but can't find it? A little lost here and grateful for any help

    Technical explanation: If the file exists, you can't make a directory with the same name:

    Code:
    sander@R540:~$ touch blabla
    sander@R540:~$ mkdir blabla
    mkdir: cannot create directory `blabla': File exists
    sander@R540:~$
    But why is pygobject trying to make that directory?

    What is the ./configure you use? Did you just run "./configure", or did you add parameters or settings?
    Last edited by sanderj; February 3rd, 2013 at 09:16 AM.

  5. #5
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mkdir cannot create directory : not a directory

    Quote Originally Posted by Randwulff View Post
    I'm trying to install pygobject-3.0.4 from source (installing from source is new to me) and make install appears to be exiting with error:

    /bin/mkdir: cannot create directory `/usr/bin/python': Not a directory

    /usr/bin/python is the symbolic link to my python installation, so I don't know why pygobject wants to make a directory there, if that is indeed what's going on.

    I've been looking around in the source directory for whichever shell script is trying to mkdir there, but can't find it? A little lost here and grateful for any help
    hi
    i don't know what " pygobject-3.0.4 " is. but it's buggy. python is a link to pythonX.Y and that's the real python software. be lucky that it don't works. if the system haven't an ey on it you get rid of your python.
    cheers
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  6. #6
    Join Date
    Dec 2013
    Beans
    1

    Re: mkdir cannot create directory : not a directory

    Hello ,I am new to Ubuntu. I am trying to install Lemur(indri) on ubuntu 12. I 've just followed the commands cd,./configure --prefix=/install/path
    ./make
    but when I procced to make install it gives this result
    ./make install
    nikol@nikol-laptop:~/Downloads/indri-5.5$ sudo make install
    /usr/bin/install -c -m 755 -d /home/nikol/Downloads/indri-5.5/INSTALL/bin
    /usr/bin/install: cannot create directory `/home/nikol/Downloads/indri-5.5/INSTALL': Not a directory
    make: *** [/home/nikol/Downloads/indri-5.5/INSTALL/bin] Error 1.

    Could anyone help me please?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •