Permission Denied when using ./configure

Solution 1:

I had this error because I was trying to run the command on a mounted partition that had the "noexec" flag on.

After remounting to remove this flag, everything worked fine. With this command:

sudo mount -o remount,exec /media/MOUNTEDDISKNAME

Solution 2:

This happens because you are trying to install from other drives. Copy the content in the home directory then try installing using ./configure. It will work. Also change the permission using chmod a+x -R command.