Problem installing PECL UploadProgress

While installing uploadprogress using pecl, if you came across the below error ::

checking whether the C compiler works… configure: error: cannot run C compiled programs.


Then it means that the executable permission is not set on /tmp or /var/tmp


  [email protected][~]# mount | grep /tmp
 /usr/tmpDSK on /tmp type ext2 (rw,noexec,nosuid)
 /tmp on /var/tmp type none (rw,noexec,nosuid,bind)

So, in-order to complete the pecl installation just remount the /tmp and /var/tmp with executable permissions as :

[email protected][#] mount -o remount rw /tmp
[email protected][#] mount -o remount rw /var/tmp

And now just try the pecl install uploadprogress and it will work like a charm.


That’s all you are done.