Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-22-2008, 07:08 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Question Building .deb with customized prefix path

Hello ALL!

I need to create a .deb package of my customized build of python and this .deb package must be installed into /opt dir. How do I do it? Please, some help!!! I stuck

What I did...
I have built my python. It isn't like ./configure && make && make install. I made quite some manual work. So, now in ~/my_python I have _binary_ version of python, which I want to be installed on a target platform in /opt dir. Not in /usr/local!

In ~/my_python I create simple Makefile with default targets (all, my_python, clean, distclean, install). In order to "build" my_python I run tar -cjvf with sub-dirs in ~/my_python. Install is just copy tar.bz2 to /opt/my_python and untar it there.
When I try to run dpkg-gencontrol -pmy_python it generates dpkg-gencontrol: error: control file must have at least one binary package part. I don't understand, what does it mean?? If I look into ~/my_python/debian/my_python/it has all the files I'm supposed to install.

And why does it attempt to install everything to /usr dir? What if I want to install it into other place?

Kind regards,

PS. I guess creating just simple bash/perl script to copy and untar everything is way easier. I try to use dpkg for two reasons: upgrade/downgrade/uninstall and dependency check. If one has an idea on how to check dependencies from within bash/perl script, please, tell me!

it's Ubuntu 6.06.1 LTS, Linux vmubuntu 2.6.15-26-server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help building deb package of qemu fakie_flip Programming 0 10-28-2007 04:54 PM
Building my own .deb package (help on postinst config) Hungry ghost Debian 3 01-28-2007 10:49 AM
LXer: Building customized financial documents with free spreadsheets LXer Syndicated Linux News 0 11-08-2006 03:54 AM
Default prefix path when installing from source jrdioko Linux - Newbie 5 01-05-2006 09:40 PM
building optimized deb-src packages (debian/rules) Rounan Debian 1 02-17-2004 12:03 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration