I'm trying to install PHP5, by compiling it myself.

I'm doing this on Crunchbang Linux, version 11. Specifically, the version using the 3.2 kernel. Crunchbang 11 is based on Debian. This is a 64-bit Virtual machine, running on a 64-bit Win7 Professional. Using Virtualbox 4.2

This is my sources.list file

## Compatible with Debian Squeeze, but use at your own risk.
deb http://packages.crunchbang.org/waldorf waldorf main
#deb-src http://packages.crunchbang.org/waldorf waldorf main

## Debian Multimedia Mirror
deb http://packages.crunchbang.org/statler-mm squeeze main non-free
#deb-src http://packages.crunchbang.org/statler-mm squeeze main non-free

## Debian Mozilla Mirror
deb http://packages.crunchbang.org/statler-mozilla squeeze-backports iceweasel-release
#deb-src http://packages.crunchbang.org/statler-mozilla squeeze-backports iceweasel-release

deb http://ftp.debian.org/debian/ squeeze main contrib non-free
#deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main
#deb-src http://security.debian.org/ squeeze/updates main

deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
#deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

When I try to do sudo apt-get build-dep php5, I get the following output:

Reading package lists...
Done Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

I'm not sure what's going on here. Can anyone point out what's missing in my setup?
Also, since I'm under 300 reputation on ServerFault, I can't add the "crunchbang" tag.

closed as off topic by Michael Hampton, Iain Oct 6 '12 at 21:03

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Your question is off topic for serverfault as it doesn't appear to relates to servers, networking or desktop infrastructure support in a professional capacity. It may be on topic for unix.stackexchange.com but please search to see if there are questions that have answers that may help you first. – Iain Oct 6 '12 at 21:10
  • @HopelessN00b It's the default crunchbang sources.list. I didn't make it. The rest of the setup is just fine. It's a virtual machine meant for running php on linux. Criticizing that makes you come off as a condescending unix hipster. – Koen027 Oct 7 '12 at 19:30
  • @Iain I'm trying to compile PHP, with the obvious goal of running webpages off this VM. PHP is serverside application. So how is that not server-related? Oh and I just read the faq. Since when is serverfault limited to things in a professional capacity? Wasn't like that when it started. This means serverfault has basically declared itself to be of a higher class than all the other stackexchange sites. what a nice concept >_> – Koen027 Oct 7 '12 at 19:33
  • Context is important to us meta.serverfault.com/questions/3714/… – Iain Oct 7 '12 at 19:37
  • Not a higher class, just a different class. And anyway, that discussion belongs on meta, where it's been hashed out thousands of times already... – Michael Hampton Oct 7 '12 at 20:42

You commented out all the source repositories in your /etc/apt/sources.list. Uncomment them.

Not the answer you're looking for? Browse other questions tagged or ask your own question.