0
I used to be able to run make like normal, but now I have to run make as super user or else it will fail saying that the c compiler can't create executables. Why did this happen?
0
I used to be able to run make like normal, but now I have to run make as super user or else it will fail saying that the c compiler can't create executables. Why did this happen?
3
Might be that you did sudo make once by mistake, and now make wont work since it might need to rewrite files or write to dirs which were created under sudo and thus unwritable by normal user.
2
There is a distinction between make
and make install
. Make only compile your stuff, make install copies the executables in the system. Then make install has often to be executed as root (sudo make install
) to get write access to destination directories (/bin, /sbin, /usr/bin ...). Stating that make
itself fails to compile without root privilege is awkward indeed.
make
will create the object files.
6You don't have write permissions in the output directory with your current user. – Daniel Beck – 2012-05-02T14:46:40.520