PDA

View Full Version : how to make .deb from source or binary??



maq21
June 11th, 2008, 09:41 AM
hi all
im new here and i wnana know how to make .deb from source code or binary code

Jad
June 14th, 2008, 08:25 AM
Hello,
you can watch MOTU videos on Ubuntu Developer channel on Youtube http://www.youtube.com/watch?v=VyEl3w7SFK4

and read MOTU fine documentations https://wiki.ubuntu.com/MOTU

emad_ramlawi
March 9th, 2009, 12:20 PM
download ALIEN it can convert tar.gz and other formats to DEB

elitenoobboy
March 11th, 2009, 01:19 AM
What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?

wildman4god
April 14th, 2009, 04:16 PM
What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?


Just unpack it in nautilus by right-clicking it and selecting extract, much easier than command line.

sundar_ima
May 13th, 2009, 08:56 PM
What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?

To make Debian package you should have build-essential and checkinstall packages installed in your system. If you dont have both then fire up synoptic package manager (system-->>administration-->>synoptic packa...) search for above packages, mark it and install(apply). i also assume that you do not have any dependency issue with the source package.

Say your source package name is "abcd"

1. move abcd to home folder (places -->> home folder)
2. Extract abcd (right click on abcd and select option extract here)
3. Open terminal (Application -->> Accessories -->> Termial)
4. Type following commands

cd abcd
./configure
make
sudo checkinstall

checkinstall is the command creates debian package for you. at the end, terminal will show you where the .deb package is located.

Hope this will work for you...

YellowRatBastard
May 18th, 2009, 07:42 PM
Hi there. I guess the question is: why would you? there are tens of thousands of debian -and ubuntu, packages for pretty much anything you could imagine or require. Since you are a self-professed nooby, creating .deb packages should be the least of your concerns.

Some of the reasons for making your own .deb package are architecture-specific performance optimization and memory usage optimization... are you telling me you've already covered everything there is to know and are ready to tackle the above mentioned?

On the other hand, please consider the following... packages you create are not supported by the community, you'll have a hell of a time trying to update or upgrade those packages and removal of such packages is rarely clean.

I suggest you try to accumulate as much knowledge as possible and please, the number one advice i always give: Use Ubuntu/Linux and nothing but ubuntu/linux everywhere. And i mean everywhere... on your home PC, laptop, server if you have one and at work. Total immersion is still the best way to learn.

Good luck

elitenoobboy
May 19th, 2009, 03:50 AM
Hi there. I guess the question is: why would you? there are tens of thousands of debian -and ubuntu, packages for pretty much anything you could imagine or require. Since you are a self-professed nooby, creating .deb packages should be the least of your concerns.

The reason I need to is that there are a large number of programs out there that I want/need and are not in a repository or in deb format, or that are not up to date and/or buggy.


Some of the reasons for making your own .deb package are architecture-specific performance optimization and memory usage optimization... are you telling me you've already covered everything there is to know and are ready to tackle the above mentioned?

So building a deb yourself makes it run faster on that specific system?


On the other hand, please consider the following... packages you create are not supported by the community, you'll have a hell of a time trying to update or upgrade those packages and removal of such packages is rarely clean.

Which is why I generally avoid it if possible. That and getting the build environment and config dependencies correct can be a bitch. As for it's removal not being clean, that is easily solved by just reinstalling the system then restoring just the users data. Upgrading to a new distro version instead of installing from scratch has proven to be quite buggy for me in the past. Systems tend to pick up cruft as time goes along anyway.

specialk1st
March 19th, 2010, 10:53 PM
To make Debian package you should have build-essential and checkinstall packages installed in your system. If you dont have both then fire up synoptic package manager (system-->>administration-->>synoptic packa...) search for above packages, mark it and install(apply). i also assume that you do not have any dependency issue with the source package.

Say your source package name is "abcd"

1. move abcd to home folder (places -->> home folder)
2. Extract abcd (right click on abcd and select option extract here)
3. Open terminal (Application -->> Accessories -->> Termial)
4. Type following commands

cd abcd
./configure
make
sudo checkinstall

checkinstall is the command creates debian package for you. at the end, terminal will show you where the .deb package is located.

Hope this will work for you...

Hi, thank you very much for the step-by-step explanation.

I am having this problem...

When I type: "./configure"
I get this error: "bash: ./configure: No such file or directory"

Am I missing something? What should I do now?

Thank you in advance for your help.

celldweller1591
August 15th, 2010, 06:34 PM
Type this & then run the above :
sudo apt-get install build-essential checkinstall

apandada1
December 18th, 2012, 08:00 AM
I installed build-essential & checkinstall but having the same problem after typing ./configure

I am getting this

ubuntu@ubuntu:~/stormcloud-master$ ./configure
bash: ./configure: No such file or directory

rushikesh988
January 13th, 2013, 10:52 AM
I installed build-essential & checkinstall but having the same problem after typing ./configure

I am getting this

ubuntu@ubuntu:~/stormcloud-master$ ./configure
bash: ./configure: No such file or directory
I am not the expert of ubuntu but as per my guess
there is always a configure.sh file in source code .. if you are getting that error means you have not created that..
normally configure.sh contains some bash setting that needed for installing the software.

MG&TL
January 13th, 2013, 11:37 AM
there is always a configure.sh file in source code .. if you are getting that error means you have not created that..
normally configure.sh contains some bash setting that needed for installing the software.

Guess is wrong, sorry. Some bits of software which use GNU autoconf (mercifully, it seems, a dying breed), have a "configure" script either supplied, or generated by "autogen.sh"

As for stormcloud, which it appears is what the OP is trying to build, is completely weird. It's not like anything I've seen before, I think it has something to do with Node.js.

@OP: Either use checkinstall (which I believe works for some projects only), or install using the install rule of the build system (just copy files, not always a good idea), or work out how to run the program without installing it.