Click to See Complete Forum and Search --> : Solaris and Gcc


kallador
04-03-2001, 06:26 PM
ok i have gcc installed and all on the solaris box, running Solaris 8 Beta Refresh, witch i never ran into this problem with linux before

gcc cannot create executables ? is the error i get when i try to compile anything.
i also get this with my MacOSx Final witch i cannot figure it out actualy.

i am fairly new to solaris but i am learning though.it's a bit differnt then Linux.

Calvin_1976
04-03-2001, 10:41 PM
What is the error message? I had a problem like that because the assembler wasnt in the path.

kallador
04-04-2001, 04:32 AM
[localhost :Desktop/stuff/*****X] root# ./configure
Welcome to the *****X-1.0c18 configuration

checking for EMX OS/2 environment... checking for gcc... no
checking for cc... cc
checking whether the C compiler works... no
configure: error: C compiler cannot create executables
[localhost :Desktop/stuff/*****X] root#

RTFM
04-04-2001, 09:58 AM
....
get gcc
....

rppp01
04-04-2001, 10:03 AM
Is gcc in your path? Where did you get gcc from? If you go to http://sunfreeware.com, you can download the package of gcc, and install it. Append your path, and you should be ok.

Shadoglare
04-04-2001, 11:00 AM
When I installed gcc I ended up having to make a link called "cc" that pointed to it (or in one case I just renamed it to "cc").
No matter what you do it seems like the system looks for "cc", which almost always screws up when trying to compile.

kallador
04-04-2001, 10:24 PM
ok well for one. /usr/bin/gcc
and /usr/bin/cc
are both there just i still get that error
C compiler cannot create executables


next is sunfreeware.com was it? well i wasn't able to download crap from there :/ then i try the ftp, witch keeps closing when barly logining in so i dunno.

kallador
04-06-2001, 08:05 PM
i am an idiot heh anyhow i figured it out.
it's not hard actualy just to add the path names.
like so
PATH=$PATH:/usr/local/bin:/usr/local/sbin
etc..
then export PATH
witch is nearly the same way as in linux in witch i cannot beleave i forgot this command :/