Wednesday, June 15, 2016

12.04 - Permission denied when running make install



I'm trying to install llvm. I cloned the repository and ran ./configure. Now, I need to run sudo make install. When I run this, I get the following errors:



harshilsharma63@ubuntu:~/llvm$ sudo make install

[sudo] password for harshilsharma63:
llvm[0]: Installing include files
make: execvp: /home/harshilsharma63/llvm/autoconf/mkinstalldirs: Permission denied
make: *** [install-local] Error 127
harshilsharma63@ubuntu:~/llvm$ sudo make install
llvm[0]: Installing include files
make: execvp: /home/harshilsharma63/llvm/autoconf/mkinstalldirs: Permission denied
make: *** [install-local] Error 127



I have installed build-essentials. I cloned the repository using svm in fedora and copied the downloaded files from Fedora -> Windows -> Ubuntu.



Note: I'm using Ubuntu 12.04



It seems like it's trying to execute a file /home/harshilsharma63/llvm/autoconf/mkinstalldirs but it doesn't have the permission to do this.
Just try to make this file runnable:



sudo chmod a+x /home/harshilsharma63/llvm/autoconf/mkinstalldirs



Then try to clean the make and do it again:



sudo make clean
./configure
make
sudo make install

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...