LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2011, 03:36 PM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Automating the package configure script errors


Hi everyone,
Need help in doing a tedious thing and no idea how to achieve this. The thing I am after is Makefile which generates after ./configure script runs successfully. Now the thing is when
we run the `configure` script it may get stuck because of lots of reasons like needs mandatory options to pass with configure,
library/header file is missing, etc. So I want to automate this problems as far as I can. As I am not installing the package so apt-get/yum won't hold here for me.

So what should be your suggestions on achieving this. Should I study the configure script and the sample Makefile's inside the package
Thank you.

Last edited by tanveer; 03-31-2011 at 03:56 PM.
 
Old 03-31-2011, 04:42 PM   #2
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
What package are you trying to install?

Are you trying to make your own package from your own software? Read a good tutorial on the automake process.

Are you trying to modify another package? Read a good tutorial on the auto make process.

Most people don't edit the ./configure script by hand for complicated programs. You edit other files and rerun autoconf. Many simple programs often don't even have a ./configure script because a simple Makefile is good enough. Sometimes the ./configure script is a completely customized thing that wasn't created by the automake process.

Last edited by lumak; 03-31-2011 at 04:45 PM.
 
Old 04-01-2011, 01:58 AM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Quote:
Are you trying to make your own package from your own software?
No, I am just downloading packages from internet like amanda, bacula, emacs, chkconfig and trying to run ./configure from my program to get the Makefile. Now say amanda it's gives compilation error to pass the option --with-user=USER .. another package may say lib6...so.6 is missing.
Now through my program I want to automatically resolve these issues cause I need to run configure successfully to get the `Makefile` which is I am mainly after.
From the exit status I can know that configure failed but how to know for what it failed. Say even if I parse the config.log and see that its asking for --with-user parameter but in some other package it will ask for something else may be a library file. Thats the problem.

Thanks.
 
Old 04-01-2011, 07:51 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Automation methods : 1) RPM systems : rpmbuild -bb <app>.spec :
The missing 'Buildrequires' will be listed.

2) Debian systems : a) apt-get build-dep <source-name>
..... will install all dependencies.
b) apt-get -b <source-name>=<version> : Will build the packages.
Example : http://www.linuxquestions.org/questi...-deb-855498/#2


Sometimes plain "configure" can be used. Most often some options are required.
And then there are the other "ten" build system : No 'configure'.
http://www.linuxquestions.org/questi...rce-826421/#10

It is also possible to write an automation script for every application.
Example : ftp://ftp.astro.rug.nl/gipsy/gipsy_install.csh
..

Last edited by knudfl; 04-01-2011 at 07:54 AM.
 
Old 04-01-2011, 11:29 PM   #5
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
All I have is a source file like amanda-2.5.1p2.tar.gz and after untar it I am running the configure script of that through my tool and If error comes I have to handle by my tool to resolve that automatically. I am also looking into your links too.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Interactive script soupbone38 Programming 1 04-16-2009 09:50 AM
LXer: Ubuntu TIP: Automating Package Installation – apt-get to the rescue LXer Syndicated Linux News 0 11-27-2008 06:50 PM
Automating package management nny0000 Linux - Software 4 06-18-2004 08:24 PM
Automating a playlist using shell script... DesiLILO Linux - Newbie 4 04-02-2004 11:03 PM
FTP Script (Automating) noodle123 Linux - General 2 10-16-2002 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:02 PM.

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