Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler

Status
Not open for further replies.

saitan

Technical User
Jan 31, 2002
11
0
0
DE
I need help.
I want to install a compiler and so I've downloaded the file
gcc-3.1-sol8-sparc-local.gz from sunfreeware.com

I've installed it.
(pgkadd -d gcc-3.1-sol8-sparc-local)

and now? I can't find the 'make' file`..

or what did i do wrong? or what do I have to do now?


(I'm sorry for my bad english)
 
I'm guessing that "make" doesn't come with the gcc compiler... Maybe you also need to install GNU make?
 
Have a look in /usr/ccs/bin, that is where it is on the system I checked.
 
Now I've downloaded and installed make-3.79.1-sol8-sparc-local.gz but when I want to compile xmms and run the configure script it says:

loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking for a BSD compatible install... /space/xmms-1.2.7/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... /space/xmms-1.2.7/configure: make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for prefix by checking for xmms... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

but gcc is installed(!)...

what did I do wrong?
 
I ran into a simular problem.

What I had to do was create a symbolic link from cc to gcc

/usr/local/sbin/cc -> /usr/local/bin/gcc

-Danny
dan@snoboarder.net






 
now I've tried that (symbolic link)
but the system says
/usr/local/sbin/cc: not found

Do I have to install 'cc' now?
and where can I find it?
 

what is your path to gcc ?

Your path may be different from what I have given you. What we are really interested in the path to gcc


# find / -name gcc -print

/usr/local/bin/gcc << path to gcc on my solaris box


from there create the sym link using the correct path.

Your error seems to indicate that cc can't be found which might mean your sym link is incorrect, but maybe not.

You may also have an option to specify the gcc complier when run the configure script.


-Danny
dan@snoboarder.net






 
the file usr/local/bin/gcc exists

now I typed in '/usr/local/bin/gcc -> /usr/local/sbin/cc'
there was no error.

but the compiler can't still be found
 
the command to create a sym link is

ln /usr/local/bin/gcc /usr/local/sbin/cc -Danny
dan@snoboarder.net






 
i've tried it, but nothing happend.
I habe an empty file in /usr/local/sbin/, but that's it.

maybe I've forgotten to install something...?
and if I type 'make':

# make
make: not found

and 'cc'
# cc
/usr/ucb/cc: language optional software package not installed

 
It appears the required path to the &quot;cc&quot; complier is different on your system

You should create a sym link using the actual paths on your system, not the ones I referenced above.

something like:

ln /usr/local/bin/gcc /usr/ucb/cc

-Danny
dan@snoboarder.net






 
I installed gcc last week and it worked well, I think you have Path problem

Why don't to you say
# whereis make

make: /usr/ccs/bin/make
run
#/usr/ccs/bin/make
instead of
#make
.

Farah regal
good luck
&quot;think twice and hit enter once&quot;
 
I want to install cc on my ultra 10. Or actually I want to install gcc but I need to install cc first. Where do I ge ahold of cc?
 
I want to install cc on my ultra 10. Or actually I want to install gcc but I need to install cc first. Where do I ge ahold of cc?
 
I want to install cc on my ultra 10. Or actually I want to install gcc but I need to install cc first. Where do I ge ahold of cc?
 
CC is a system shell variable that gets updated when u install a compiler; or one needs to update it manually through user profile.

Once u install GCC / CC, u need to update ur PATH variable with the path of GCC/ CC, and update the cc variable with path of GCC/CC in the user profile..

Well, GCC and CC are compilers only. GCC is a GNU freeware whereas CC is Solaris C compiler. U will get Solaris C compiler alongwith ur Solaris installation CD kit.. It will be an evaluation version for a month. LAter on, u need to register it with Sun by paying the cost.

Same goes for make utility.. While installing Solaris, if u install Solaris with Development support, u will get make utility with the installation (located under /usr/ccs/bin/) otherwise, u can get it seperately from gnu.org or sunfreeware.com and get it installed. Later installing, do not forget to update the path variable as to where the make utility is located.

Hope this helps..

Regds,



- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top