On Fri, 21 Dec 2001, Robert L. Harris wrote:

>
> I did the apt-get source and it dropped the source in my current
> directory. When I go to configure it doesn't build, missing
> "/root/qt/debian/objprelink" and it doesn't get auto-configured to match
> the paths etc of my pre-packaged version.

You don't use ./configure. Debian does it all for you (using the
debian/rules file). I suggest you look at some documentation, perhaps the
Debian Packaging Manual, now only in stable. I think it is being
obsoleted, unfortunately. Here is a brief summary. I assume here that the
command apt-get source was issued in the home directory.

First, check that all build-depends are satisfied. A recent version of
apt, testing or more recent can be used for this. Do

apt-get build-dep mutt

But this can also be done by hand by looking at the .dsc (Debian Source
Control) file that should have been downloaded along with your sources.
Just look at the line for Build-dependencies. It may be necessary to
recursively build from source of these packages are not available in
binary form. This will probably not be an issue for you if you are running
testing or more recent.

cd into the directory that was created for you by dpkg-source. It will
look something like mutt-version_number/

Then type (as user)

dpkg-buildpackage -b -uc -rfakeroot

It will build your package for you at the top level where sources were
placed (home direcory) and then you just need to install doing

dpkg -i mutt.version...deb

If you are root, this is even easier, just do (as root)

apt-get source -b mutt

but this is not recommended for obvious reasons.

This question comes up so often, someone really ought to write a
mini-Howto or something. But it is really very easy.

I hope this helps. Let me know if I can be of assistance.

                                Sincerely, Faheem Mitha.

Reply via email to