![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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.. |
|
||||
|
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.
|
|
||||
|
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 |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|