Find the answer to your Linux question:
Results 1 to 5 of 5
I have moved to a new place and they expect me to work without root access to my machine, but I need to compile and make some software. However I ...
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    15

    Can I "Make Install" with just admin rights

    I have moved to a new place and they expect me to work without root access to my machine, but I need to compile and make some software. However I get the following error:

    mkdir: cannot create directory `/usr/local/ope': Permission denied
    chmod: cannot access `/usr/local/ope': No such file or directory
    mkdir: cannot create directory `/usr/local/ope': No such file or directory
    chmod: cannot access `/usr/local/ope/bin': No such file or directory
    make[1]: *** [/usr/local/ope/bin] Error 1
    make[1]: Target `_installall' not remade because of errors.

    I have been allegedly been given admin rights - but do I need root to do this?

    Thanks

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    usually make command is run as normal user, to compile application, you can run make install command as root to install outside of home directory, try putting "sudo make install" instead if you have sudo access

    also, you can configure software to be installed under your home directory, and make sure that you add that directory to the path

  3. #3
    Just Joined!
    Join Date
    Jan 2006
    Posts
    15
    So cannot I not install outside home directory without root?

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you can't install outside the home directory without root or having sudo privileges, no

  5. #5
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    correct.
    You need root to write outside your $HOME.

    Question:
    This is your machine, not a multiuser system?

    On a multiuser system I would hesitate to install (random) files to the system, even if I had root privileges.
    Imho, packages are a *must* there or the machine will be chaotic soon (no offense).



    Other than that:
    You can always add --prefix to your configure line and install that software in your $HOME
    You must always face the curtain with a bow.

Posting Permissions

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