LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-06-2012, 04:39 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Rep: Reputation: 15
Post C compiler cannot create executables Solaris 10


Hello,

I am attempting to install nagios-plugins and nrpe on a Solaris 10. I've unpacked the nagios-plugins tar file into /usr/local/src:

Code:
[infobright01-dc2:/usr/local/src] root% ls -l
total 5137
drwxrwxrwx  16 root     root          47 Mar  6 17:24 nagios-plugins-1.4.15
-rw-r--r--   1 root     root     2095419 Mar  6 15:39 nagios-plugins-1.4.15.tar.gz
-rw-r--r--   1 root     root      405725 Mar  6 15:39 nrpe-2.12.tar.gz
I have my CC flag exported to this value:
Code:
[infobright01-dc2:/usr/local/src] root% echo $CC
/usr/local/bin/gcc
And if I cd to the nagios-plugins directory and run the ./configure command I run into an error:

Code:
[infobright01-dc2:/usr/local/src/nagios-plugins-1.4.15] root% ./configure 
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for gcc... /usr/local/bin/gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
If I have a look at config.log this is what I see:

Code:
[infobright01-dc2:/usr/local/src/nagios-plugins-1.4.15] root% tail -30 config.log 
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/build-aux/install-sh -c -d'
np_mysql_config=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
with_trusted_path=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "nagios-plugins"
#define PACKAGE_TARNAME "nagios-plugins"
#define PACKAGE_VERSION "1.4.15"
#define PACKAGE_STRING "nagios-plugins 1.4.15"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "nagios-plugins"
#define VERSION "1.4.15"

configure: exit 77
I was hoping I ask some advice on how I may get beyond this point.

Thank you
 
Old 03-06-2012, 04:41 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,760

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
/usr/local/bin/gcc isn't part of Solaris. You might have better results with the gcc release bundled with the OS in /usr/sfw/bin/gcc.
 
Old 03-06-2012, 04:59 PM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Original Poster
Rep: Reputation: 15
Hello and thank you for your input. I don't actually have a gcc at this location:

Code:
[infobright01-dc2:~] root% ls -l /opt/sfw/bin/
curl         curl-config  libtool      libtoolize   rsync        sudo         top
Which is why I installed this package from sunfreeware.com:

Code:
-rw-r--r--   1 dunphy   dunphy   80072192 Mar  6 17:21 gcc-3.4.6-sol10-x86-local
Could the location of my gcc be part of the problem?
Code:
[infobright01-dc2:~] root% ls -l /usr/local/bin/gcc
-rwxr-xr-x   1 bin      bin       139168 Sep  4  2006 /usr/local/bin/gcc
Thank you
 
Old 03-06-2012, 07:38 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,760

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You have a non developer Solaris installation. There are likely multiple packages missing that prevent gcc to work. I would suggest reinstalling Solaris and choose full install instead of end user or similar.
 
Old 03-06-2012, 07:49 PM   #5
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Original Poster
Rep: Reputation: 15
gcc error

Quote:
Originally Posted by jlliagre View Post
You have a non developer Solaris installation. There are likely multiple packages missing that prevent gcc to work. I would suggest reinstalling Solaris and choose full install instead of end user or similar.
That's odd. Sadly re-installation is not possible as this is a production database server on a very large website. They use a lot of custom packages in this shop, I'm not clear on why they would not have installed gcc.
 
Old 03-06-2012, 08:05 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,760

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You can still install the missing packages from the Solaris installation media. One issue is to find which ones they are, that's why I suggested reinstalling.
 
Old 03-06-2012, 08:21 PM   #7
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Original Poster
Rep: Reputation: 15
gcc error

Quote:
Originally Posted by jlliagre View Post
You can still install the missing packages from the Solaris installation media. One issue is to find which ones they are, that's why I suggested reinstalling.
OK sounds good. Thanks for your input!
 
  


Reply

Tags
solaris 10 x86


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
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 09:14 AM
[SOLVED] C compiler cannot create executables mlangdn Slackware 15 04-16-2010 09:23 PM
C compiler cannot create executables nedzer Linux - Newbie 13 01-21-2009 12:15 PM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
C compiler cannot create executables... Sfpiano Linux - Software 9 12-11-2003 10:28 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration