You are not logged in.

#1 2011-12-29 21:39:41

kenw232
Member
Registered: 2011-12-29
Posts: 15

Newbie compiling from sources question

I'm new to arch.  I'd like to get to the point of compiling and installing from sources such as bind-9.7.4-P1.tar.gz.  When I extract and configure the command "configure" isn't found. 
-bash: configure: command not found

Anyone know what package name this is in?  I can't find it anywhere.

Offline

#2 2011-12-29 21:47:37

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: Newbie compiling from sources question

configure is in the bind source.

[lars@x201 downloads]$ ls -l bind-9.7.4-P1/configure
-rwxr-xr-x 1 lars users 905182 20 jul 02:00 bind-9.7.4-P1/configure

But why don't you install bind with pacman?

Edit: Btw, you should type './configure', not just 'configure' unless it's in your $PATH (which it isn't).

Last edited by Lars Stokholm (2011-12-29 21:49:13)

Offline

#3 2011-12-29 21:47:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Newbie compiling from sources question

Use ABS to build from source.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2011-12-29 22:45:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: Newbie compiling from sources question

Ken, if I'm reading the question right I think you're missing an important piece.

Configure isn't a tool that you should have installed somewhere.  It is a common name for a script file that should be included with every source tarball.  Each program or package has *it's own* configure script, as they all differ.

So, as indicated above, when you get the tarball, you first untar it, then cd into the directory that was created.  In that directory there should be a file called 'configure' which is a shell script that is executed by "./configure" in order to configure that specific package (ie this creates the Makefile(s) for the next step).

Once that is done you would type "make".  Make, unlike configure, is a tool that you should have installed.

Of course in arch, PKGBUILDS and the ABS automate much of this for you.  Learn to use the arch tools so that your installed packages can be kept track of by pacman.

Last edited by Trilby (2011-12-29 22:46:24)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2011-12-29 22:47:08

kenw232
Member
Registered: 2011-12-29
Posts: 15

Re: Newbie compiling from sources question

Lars Stokholm wrote:

configure is in the bind source.

[lars@x201 downloads]$ ls -l bind-9.7.4-P1/configure
-rwxr-xr-x 1 lars users 905182 20 jul 02:00 bind-9.7.4-P1/configure

But why don't you install bind with pacman?

Edit: Btw, you should type './configure', not just 'configure' unless it's in your $PATH (which it isn't).

Right ./configure.  Thats why.  Its fine, I can compile from sources now.

Offline

#6 2011-12-29 22:57:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Newbie compiling from sources question

But why do you want to?

Offline

#7 2011-12-29 23:36:05

kenw232
Member
Registered: 2011-12-29
Posts: 15

Re: Newbie compiling from sources question

I just like to do thing my way, thats all.

I noticed on my server I have no telnet command.  So I go to http://www.archlinux.org/packages/?sort … =&limit=50 to search for telnet but its not found anywhere.  what package can I install that has telnet in it?

Offline

#8 2011-12-29 23:37:58

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Newbie compiling from sources question

kenw232 wrote:

I noticed on my server I have no telnet command.  So I go to http://www.archlinux.org/packages/?sort … =&limit=50 to search for telnet but its not found anywhere.  what package can I install that has telnet in it?

$ pkgfile telnet
core/inetutils

Offline

#9 2011-12-29 23:52:59

kenw232
Member
Registered: 2011-12-29
Posts: 15

Re: Newbie compiling from sources question

Thanks.  Now I'm trying to install MySQL from source and I get "C compiler cannot create executable".

cloud(/temp/mysql-5.1.60): CPPFLAGS="-I/usr/lib" CFLAGS="-O3 -mcpu=i686 -march=i686 -O3 -pipe -fomit-frame-pointer -ffixed-ebp" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/apps/mysql --with-mysqld-user=mysql --with-big-tables --without-debug --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static
checking build system type... x86_64-unknown-linux-gnu
(stuff)
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/temp/mysql-5.1.60':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Any idea?

Offline

#10 2011-12-29 23:56:20

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Newbie compiling from sources question

@kenw232,

You do know that the more packages you compile from source - instead of a "pacman compatible" system like AUR or ABS - the greater the chance that using pacman at any time in the future will totally break your system installation.

If you do not want to do it "properly", ABS, then NEVER use pacman to update your system in the future.

EDIT: If you want complete control over every aspect of your system then I'd recommend looking into something like Linux from Scratch.

Last edited by headkase (2011-12-30 00:05:05)

Offline

#11 2011-12-30 00:06:54

kenw232
Member
Registered: 2011-12-29
Posts: 15

Re: Newbie compiling from sources question

I fixed it. had to remove -mcpu=i686 -march=i686 from the CPPFLAGS there.

Offline

#12 2011-12-30 00:59:06

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Newbie compiling from sources question

headkase wrote:

If you want complete control over every aspect of your system then I'd recommend looking into something like Linux from Scratch.

I second this.

From my own experience (I did run a LFS-only system for nearly 2 years) there is nothing you can learn more about the innards of a Linux system (not even Gentoo). You can even build your completely own LFS system parallel to Arch. And after you've done so you will become an even more proficient Archer!

But beware, you'll need lots of time if you want to do it right- time to learn and time to build. Yet, it is fun.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB