LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2012, 11:56 PM   #1
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241
Blog Entries: 1

Rep: Reputation: 9
Thumbs up Where is ./configure ?? Having problem building from source!


Hi,

Can someone tell me what is wrong here okay, but I have checked a couple different sources regarding building an application from source, and I always get to the part where they tell me run the
Code:
./configure
command. And every time I always get the bash prompt error:

Code:
bash: ./configure: No such file or directory
And this is happening in not just one distribution but now in a couple of different ones. Specifically, for an example, okay I am trying to follow this to make myself an .rpm of linuxmint-cinnamon. So first I downloaded the source tar.gz, then changed to the linuxmint-cinnamon directory
Code:
kevin@linux-wrkq:~> cd linuxmint-Cinnamon-9e88200
kevin@linux-wrkq:~/linuxmint-Cinnamon-9e88200> ./configure
bash: ./configure: No such file or directory
kevin@linux-wrkq:~/linuxmint-Cinnamon-9e88200>
and so I cannot go further without configuring it, I am assuming? This is my first time trying to build from source, and not just this package but there are others I would like to build but there is never this ./configure anywhere.

Can someone help guide me?

Thanks.

Last edited by barnac1e; 08-04-2012 at 11:59 PM. Reason: typo
 
Old 08-05-2012, 12:31 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to read the instructions specific to the software you're building. While many pieces of software use a configure script, this isn't always the case. Check what has been extracted from the tarball. If there are README or INSTALL files, start by reading those.
 
Old 08-05-2012, 01:45 AM   #3
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241

Original Poster
Blog Entries: 1

Rep: Reputation: 9
Yes, I know that. But why isn't there a program or whatever that is this ./configure? I know about the README or INSTALL, but because the BASH is giving a not found error, it means this ./configure isn't installed. So if a source file needed the ./configure based on the README, I still wouldn't have it, right?
 
Old 08-05-2012, 02:40 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The configure script is not "installed" on your system; it's present in the source tarball (or if needed, there's usually a script to generate it). That's why you use "./" - to run the script called "configure" in the current directory. If there's no configure script or a script that generates it (I've forgotten what this is usually called), it's because the developers of the software chose not to do things that way (i.e. using Autotools).
 
Old 08-05-2012, 02:46 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Not all source packages use configure, some will use 'make' files instead
 
Old 08-05-2012, 03:40 AM   #6
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
I gave a try at it (downloaded file "linuxmint-Cinnamon-1.5.2-0-g24a55b1.tar.gz") and looked at the archive's root directory contents. Indeed, there's no configure script, but there'e an "autogen.sh" one. You have to run it first to generate a configure script, then you can proceed with the usual ./configure && make && make install. Beware that gnome-common is required.
If you want to know a little more about this source configuration system, read on.
GNU autotools
The configure script is a script automatically generated by GNU-autotools programs. Basically, you write a specification file (namely, configure.ac -- auto conf --) and then the autoconf program generates a configure script based on it.
Given that the configure script is only an auto-generated script if you're using GNU-autotools (some projects write their configure script by hand, such as the ffmpeg project) and, if changes are made to the configuration of the source files, those are to be made inside the specification file for configure (configure.ac), the configure script is generally not added to source versioning systems such as the one used by the cinnamon project (which is git, by the way), so you have to manually generate it when checking out the source files from the git repository (and that's why there's an autogen.sh script).
Generally speaking, however, source tarballs using GNU-autotools usually contain an already generated and ready to use configure script, but that's because they've been preprocessed for release as a source tarball. The source tarballs available for Cinnamon are just GitHub-autogenerated archives, so they lack the preprocessing which would've produced the configure script.
Long story short, always look at what the tarball contains and read the README and INSTALL files usually found inside of it, to understand what build system the project is using and how to successfully invoke it.
 
1 members found this post helpful.
  


Reply

Tags
./configure, .rpm, make, source



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
configure problem while building qt-x11-free-3.3.3 (BLFS) jomen Linux - Software 9 12-03-2015 04:50 PM
Having a problem building Nestopia 1.4.0 from source swalker23 Linux - Newbie 8 10-02-2008 06:41 PM
Building Pidgin from source, problem regarding XML parser gogul2k Linux - Software 7 09-25-2008 12:29 PM
synCE: Problem building (dependency) pywbxml from source sonichedgehog Linux - Software 1 02-05-2008 02:52 AM
Configure problem while building rpm with krpmbuilder on SUSE 10.0 OSS Zsub SUSE / openSUSE 4 09-15-2006 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 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