The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH problems ysk UNIX for Advanced & Expert Users 1 07-19-2007 05:16 AM
Problems AIX and SAN. fjgonzalez AIX 4 07-18-2007 05:15 PM
Problems with Last By_Jam UNIX for Advanced & Expert Users 3 09-29-2006 03:12 AM
Few problems vivekshankar UNIX for Dummies Questions & Answers 3 05-21-2005 12:26 PM
'make' problems (compliation problems?) xyyz UNIX for Advanced & Expert Users 5 11-05-2001 10:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-08-2004
AJA AJA is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 17
gcc problems

I downloaded and installed the gcc binaries recently. I am now trying to compile openssh, but I get bad compiler issues when I try this.

in the openssh directory, I run:

./configure

(mind you, I have usr/local/bin/gcc in my PATH)

but the output says checking for gcc... no

Why can't it find my gcc to compile this?

When I run the evn command to view my PATH is see:
PATH=/usr/bin:/usr/sbin:/bin:/usr/local/bin/gcc:/usr/ucb:/usr/apps/matrix/scripts:/usr/oracle/app/bin:usr/local/bin:/usr/ccs/bin:/usr/ucb:/etc:.:/usr/dt/bin:/usr/openwin/bin

When I run the whereis gcc and which gcc commands I get conflicting output:

bash-2.05# whereis gcc
gcc: /usr/local/bin/gcc
bash-2.05# which gcc
no gcc in /usr/bin /usr/sbin /bin /usr/local/bin/gcc /usr/ucb /usr/apps/matrix/scripts /usr/oracle/app/bin usr/local/bin /usr/ccs/bin /usr/ucb /etc . /usr/dt/bin /usr/openwin/bin

whereis finds gcc, but which cannot?

Also, how can I set gcc as my default compiler?

I am running Solaris9 on SPARC FYI. thanks and please help asap. I've spent too much time on this already.--thanks--AJ

Last edited by AJA; 03-08-2004 at 02:15 PM..
  #2 (permalink)  
Old 03-08-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
I don't know how to fix your gcc problem. But if you're in a hurry, why not simply download binary versions of openssh from sunfreeware? You could be finished in less than half an hour.
  #3 (permalink)  
Old 03-08-2004
AJA AJA is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 17
I'm only in a hurry because I've wasted too much time looking at this. I'm sure it's something simple I'm missing. I woudl download the binaries, but I need to get this compiler setup so I don't have to mess with getting binaries anymore.
  #4 (permalink)  
Old 03-08-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
1) did you install gcc to a folder named /usr/local/bin/gcc?

or is that the direct path to exectute gcc?

2) if gcc is in /usr/local/bin you are not defineing the path correctly.

it would be. $export PATH=$PATH:/usr/local/bin

that would put gcc in your path properly
  #5 (permalink)  
Old 03-08-2004
AJA AJA is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 17
that is the direct path to the executable, but I changed it to just /usr/local/bin and still, nothing. I know there is a way that you can set the CC to gcc, but I forget how.
  #6 (permalink)  
Old 03-08-2004
AJA AJA is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 17
should there be a CC=gcc or something like this in the environment variables?
  #7 (permalink)  
Old 03-08-2004
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Many ./configure scripts allow you to specify an envvar like CC to explicit name the compiler to be used. For most configure scripts, you can see the options you can pass or envvar you can set by ./configure --help

May be something like

CC=/usr/local/bin/gcc ./configure

will help you.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0