Problem installing PECL packages

While installing pecl packages  using pecl command, if you came across the below error , like ::

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

root@server1[~]# 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 : 

root@server1[#] mount -o remount rw /tmp
root@server1[#] mount -o remount rw /tmp


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



Problem installing PECL packages

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork me on GitHub