PDA

View Full Version : [ubuntu] apt-get pass configure options



arthurccube
January 22nd, 2010, 08:56 AM
Hi Guys,

I am using apt-get install for nginx.

I need to pass the options "./configure --add-module=/path/to/my/push_module" as if I am going to build from source.

Is it possible?

Thanks a bunch
Arthur

diesch
January 23rd, 2010, 01:20 AM
To which program you need to pass this options?

arthurccube
January 23rd, 2010, 05:00 AM
Nginx!

arthurccube
January 23rd, 2010, 05:01 AM
I am using the Comet (Push Server), so I need to add the push server module.

diesch
January 23rd, 2010, 06:53 AM
Sorry, I don't understand what you want to do.

apt-get is for installing .deb packages, it can't do anything else. From your description it seems to me that software you want to install isn't a .deb package but something else, maybe a .tar.gz containing source code.

arthurccube
January 23rd, 2010, 06:00 PM
Hi,

Let me clarify it a bit.

I want to install nginx with a module called nginx_http_push_module. The module if install from source is as follows:

(http://pushmodule.slact.net/)
./configure --add-module=path/to/nginx_http_push_module


However, I want to use "apt-get install nginx" to install nginx together w/ the module.

How can I do so?

Thanks!
Arthur

diesch
January 23rd, 2010, 09:03 PM
No. You have to install the nginx package using apt-get and then install the module either direkt from source or by first creating a packge from source and then installing that package.

If you want to create a package see https://wiki.ubuntu.com/PackagingGuide/

arthurccube
January 24th, 2010, 02:41 AM
Hi Diesch,

Thanks for your reply again! I am coping w/ what apt-get doing now.

Normally, e.g. if I install nginx + openssl, I can
1. apt-get install nginx package
2. apt-get install openssl package

Nevertheless, I don't know if the module package can be install as normal, since:
"Modules are added by compiling them along with the Nginx source."

Can I create a package for the Nginx Push Module **via compiling the pre-installed nginx package**?, i.e.
1. apt-get install nginx
2. apt-get install push_module // compiling them along with the Nginx source.

I have no experience in making packages, sorry for the stupid questions if it is too obvious.

Arthur