Не получается запустить ./configure для nginx
Используя make install, вы автоматически создаете себе проблемы. Делайте .deb и ставьте в случае, если нет в apt. А вообще

sysadmin@Gateway18:~$ apt-cache search nginx
collectd-core - statistics collection and monitoring daemon (core system)
fcgiwrap - simple server to run CGI applications over FastCGI
gitweb - fast, scalable, distributed revision control system (web interface)
gunicorn - Event-based HTTP/WSGI server
libplack-middleware-file-sass-perl - Sass and SCSS support for all Plack-based P                                                                                        SGI frameworks
nginx - small, but very powerful and efficient web server and mail proxy
nginx-common - small, but very powerful and efficient web server (common files)
nginx-doc - small, but very powerful and efficient web server (documentation)
nginx-extras - nginx web server with full set of core modules and extras
nginx-extras-dbg - Debugging symbols for nginx (extras)
nginx-full - nginx web server with full set of core modules
nginx-full-dbg - Debugging symbols for nginx (full)
nginx-light - nginx web server with minimal set of core modules
nginx-light-dbg - Debugging symbols for nginx (light)
nginx-naxsi - nginx web server with naxsi 0.44 included
nginx-naxsi-dbg - Debugging symbols for nginx (naxsi)
stud - scalable TLS unwrapping daemon
uwsgi-extra - fast, self-healing application container server (extra files)

Расскажите нам нахрена вы его собираете из исходников, и нахрена вы php собираете из исходников, gcc вы тоже собрали из исходников 8)?
Все в целом ставится из apt-get install или aptitude install.