LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-10-2008, 08:05 AM   #1
ikinnu
Member
 
Registered: Jun 2007
Posts: 64

Rep: Reputation: 15
apache compile error


Hi,
I am trying to compile apache version 2.0.52 on my solaris box and got the below error.

checking for chosen layout... apr
checking for gcc... no
checking for cc... cc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr

could not get any info from config.log.
Can someone please help.
 
Old 07-10-2008, 08:29 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
checking for gcc... no
That means the configure script cannot find gcc. If the box runs Solaris 10, then gcc is installed in /usr/sfw/bin. So add this directory along with /usr/ccs/bin in your PATH. If you don't have gcc you can get it from sunfreeware, along with its dependencies (it installs in /usr/local/bin).

Regards

Last edited by bathory; 07-10-2008 at 08:30 AM.
 
Old 07-10-2008, 09:20 AM   #3
ikinnu
Member
 
Registered: Jun 2007
Posts: 64

Original Poster
Rep: Reputation: 15
I have cc do i still need gcc?
 
Old 07-10-2008, 09:30 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
solaris cc is different from gcc (gnu cc), so when you compile things from source it's always better to use the gnu compiler.
 
Old 07-11-2008, 04:35 AM   #5
ikinnu
Member
 
Registered: Jun 2007
Posts: 64

Original Poster
Rep: Reputation: 15
so it won't work without gcc.
could you please give me what are the flags i need to set for cc?
 
Old 07-11-2008, 04:40 AM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You'll be hardpressed to get it work work with Sun's compiler. It would be better to go over to http://www.sunfreeware.com/ and download the correct package for your system.
 
Old 07-11-2008, 08:59 PM   #7
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
Remember to get make and openssl etc. too from sunfreeware, may I also point out that solaris isnt Linux though
 
Old 07-17-2008, 05:23 AM   #8
ikinnu
Member
 
Registered: Jun 2007
Posts: 64

Original Poster
Rep: Reputation: 15
Yeah! its quite different fro Linux But i've managed today to successfully compile and install it. Thanks a lot for your prompt replies as always.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
Apache HTTP web server 2.2.8 compile error gully300 Linux - Server 7 06-17-2008 02:16 AM
Apache and PHP compile error rnturn SUSE / openSUSE 2 06-29-2007 09:42 PM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
apache 2.0.54 compile error slackwbas Linux - Software 0 10-12-2005 07:39 AM

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

All times are GMT -5. The time now is 02:43 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
Open Source Consulting | Domain Registration