LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2012, 05:35 PM   #1
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Rep: Reputation: Disabled
Apache install on Slackware


Hi everyone, having a problem with installing apache from source.

I did a base install of slackware 13 with no X for a test server.

Now when i download and extract apache i run the command "./configure --prefix=/home/httpd --enable-modules=so" i get the output 'Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util"

even if i run --with-included-apr at the end of the command i get "checking for C compiler default output file name...
configure: error: in `/usr/local/src/httpd-2.2.11/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr"

any help would be very grateful

Thanks
 
Old 02-13-2012, 06:58 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
You have to install apr-util package
BTW, why install apache from source ?

For gcc error, make sure you installed mostly all packages in /d slackware directory

and also glibc (not glibc-solibs)

Last edited by Cedrik; 02-13-2012 at 07:01 PM.
 
Old 02-13-2012, 07:03 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,023

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by Cedrik View Post
BTW, why install apache from source ?
This.

Slackware comes with Apache. Why not use the pre-built package?
 
Old 02-13-2012, 10:01 PM   #4
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
Guys thanks for the replies.

I did install apache from the package instead in the end. I suppose i just wanted to jump in the deep end and learn how to install things from source rather going for the easy way out. I might uninstall and try again.

You guys might be shouting/tuting/shaking your heads at your screen thinking why are you doing that, if there's other software you may suggest for me to install from source rather than apache would be grateful for any suggestions.

Just a newbie trying to learn the system i guess

Thanks
 
Old 02-13-2012, 10:25 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
You could start with something small like yad.
 
Old 02-14-2012, 04:24 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You have to install:
apr-util
apr-util-devel
packages.

Another thing is that the solution was to pass it the following during configure:

# SSL_BASE=../openssl-0.9.7a/ EAPI_MM=../mm-1.2.1/ ./configure --prefix=<path-to-apache> --enable-module=ssl --enable-module=so --with-included-apr
 
Old 02-14-2012, 05:29 AM   #7
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
Great stuff! thanks lads
 
Old 02-14-2012, 05:56 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,565
Blog Entries: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
You have to install:
apr-util
apr-util-devel
packages.
Not with Slackware, libs aren't split into runtime and developer versions.
 
Old 02-14-2012, 12:11 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
By the way, the Slackware way is not to install from source, but to compile the code and make a package from it. Also true for most other distributions.
 
Old 02-14-2012, 01:26 PM   #10
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
@TobiSGD. Thanks, I don't mean to be annoying but why do most tutorials show you to install from source rather a package?
 
Old 02-14-2012, 01:40 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Installing from source is rather easy (configure && make && make install) and more or less the same in any distribution, correctly making a package needs a bit more. On Slackware it is easy using its packaging tools, but making correct packages for Debian or RedHat is more complicated.
If they want to show the correct way in their tutorials they would have to include tutorials for every distribution out there.
 
Old 02-14-2012, 02:32 PM   #12
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
@TobiSGD. Suppose I guess when you know how. I downloaded slack dvd iso, logged into as root, partitioned the drives and then ran setup and followed the basic install. I havent loaded anything since yet. I have been advised to install most of d from slackware. I take that this is whats needed to install and compile from source?
 
Old 02-14-2012, 02:40 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Actually, if you are new to Slackware, it is recommended to do a full install, then you have all the dependencies, all that is needed to compile from source and all that is needed to make and install packages.
There are several good guides for making Slackware packages on the net, you should also read the SlackBook.

---------- Post added 14th Feb 2012 at 20:41 ----------

Actually, if you are new to Slackware, it is recommended to do a full install, then you have all the dependencies, all that is needed to compile from source and all that is needed to make and install packages.
There are several good guides for making Slackware packages on the net, you should also read the SlackBook.
 
Old 02-14-2012, 03:28 PM   #14
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
So do your recommend I reinstall the OS or shall I try add the dependencies manually?
 
Old 02-14-2012, 03:40 PM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Quote:
Originally Posted by paulwoodman View Post
So do your recommend I reinstall the OS or shall I try add the dependencies manually?
It's up to you but if I were you I'd go with the full installation. It's quicker and much more straight forward. It lets you focus on eg. configuring apache straight away.
 
  


Reply


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
How-To run Apache, php, MySQL on startup and install phpMyAdmin - Slackware 12.2 Penthux Slackware 22 10-07-2012 11:44 PM
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 02:14 AM
Cpanel: Install Apache in different folder than: /usr/local/apache xbaez Linux - Server 0 10-05-2009 11:32 PM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 03:13 PM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration