2

I am trying to install prodigal.

I downloaded it and extracted it in a particular location and in terminal I when I used the command:

make Install

After reaching that location it showed error:

install -d -m 0755 /usr/local/bin
install -m 0755 prodigal /usr/local/bin
install: cannot create regular file '/usr/local/bin/prodigal': Permission denied
Makefile:43: recipe for target 'install' failed
make: *** [install] Error 1

I also tried to change the INSTALLDIR in the make file and then wrote make install. It made a directory(from home to prodigal) in the prodigal folder itself and again error came like

install -d -m 0755 /usr/local/bin
install -m 0755 prodigal /usr/local/bin

Do I need to change something else in make file?

Yaron
  • 13,453
chhaya
  • 37
  • 1
  • 2

1 Answers1

4

If you wish to install the program in a system owned folder you should use sudo in order to run the command as root.

sudo make install

or (depending on the correct spelling of the install command)

sudo make Install

Note: it might be possible to install the program without using sudo in your home directory. However - this option will require more changes in the Makefile to set all relevant paths to point to your home-directory.

terdon
  • 104,119
Yaron
  • 13,453