I'm still new to Ubuntu/Linux use

I'm installing Emacs (version 25.1)
that I've downloaded source files,
uncompressed and extracted the files using `tar`

It seems I have to use .`/configure`.
Computer works for a while and gives me this result:

---

```
checking for X... no
checking for X... true
configure: error: You seem to be running X, but no X development libraries
were found.  You should install the relevant development files for X
and for the toolkit you want, such as Gtk+ or Motif.  Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
  --without-x
to configure.

```

---

I looked in internet about this problem and a reply in a thread says to use:

```
sudo apt-get build-dep emacs23

```

and this will install everything needed to compile `emac23` package
but when I do this I get :

```
E: Unable to find a source package for emacs25.1

```

In software and updates screen I've enabled the source code option. I checked
in `etc/apt/sources.list.d` folder and it is empty. 

I'm not sure what to do. If everything fails will compiling `emacs` without x window support cause problems later?

Should I try to manually install x development files, toolkit files,files for image handling. How is how do I do this.

**Edit:**

So I installed Emacs using pre-built package. used command :

```
sudo apt-get install emacs

```

**Edit 2:**

In 2019 I'm now using VIM editor, so can't address this question now. But if you have an answer feel free to leave below