sudo apt-get install apache2-prefork-dev apache2-mpm-prefork libapreq2-dev r-base-dev
What error does it show ?, omit libapreq2-dev